Skip to content

Commit

Permalink
Adjust scale filter for HW acceleration
Browse files Browse the repository at this point in the history
  • Loading branch information
raydouglass committed Oct 22, 2023
1 parent 610cc4e commit 3a6c3df
Showing 1 changed file with 4 additions and 1 deletion.
5 changes: 4 additions & 1 deletion media_management_scripts/convert.py
Original file line number Diff line number Diff line change
Expand Up @@ -139,7 +139,10 @@ def convert_with_config(
args.extend(["-i", input])

if config.scale:
args.extend(["-vf", "scale=-1:{}".format(config.scale)])
if config.hardware_nvidia:
args.extend(["-vf", "scale_cuda=-1:{}".format(config.scale)])
else:
args.extend(["-vf", "scale=-1:{}".format(config.scale)])
if config.hardware_nvidia:
vc = VideoCodec.from_code_name(config.video_codec).nvidia_codec_name
if not vc:
Expand Down

0 comments on commit 3a6c3df

Please sign in to comment.