mirror of
https://github.com/joshuaboniface/rffmpeg.git
synced 2026-01-23 02:24:03 +00:00
add args
This commit is contained in:
parent
78c4fca41b
commit
dc4f1a0322
1 changed files with 5 additions and 1 deletions
6
rffmpeg
6
rffmpeg
|
|
@ -468,7 +468,7 @@ def translate_harware_acceleration_args(rffmpeg_command):
|
|||
}
|
||||
|
||||
remove_args = ['-init_hw_device', 'qsv=qs@va', '-hwaccel_flags', '+unsafe_output', '-level', '50']
|
||||
|
||||
add_args = ['-hwaccel_flags', '+unsafe_output', '-threads', '1']
|
||||
|
||||
new_args = []
|
||||
|
||||
|
|
@ -490,6 +490,10 @@ def translate_harware_acceleration_args(rffmpeg_command):
|
|||
else:
|
||||
new_args.append(arg)
|
||||
i += 1
|
||||
|
||||
# Add any additional arguments
|
||||
for arg in add_args:
|
||||
new_args.append(arg)
|
||||
|
||||
return new_args
|
||||
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue