No longer setting explicit width, so that ffmpeg can take care of odd number oddness
This commit is contained in:
parent
7a2736300b
commit
d28be73e2c
@ -83,7 +83,10 @@ def _do_transcode(inpath, outpath, maxheight, encoder='software'):
|
||||
|
||||
# Scale the output if necessary
|
||||
if scale < 1:
|
||||
videosettings_out['vf'] = f'scale={width}:{height}'
|
||||
# The width must be an even number.
|
||||
# Setting width to -2 will allow ffmpeg to automatically deal with
|
||||
# any scalings where the width would have become odd.
|
||||
videosettings_out['vf'] = f'scale=-2:{height}'
|
||||
|
||||
# Apple prores is incompatible with nvidia hardware,
|
||||
# so ignore request for hardware acceleration in that case
|
||||
|
Loading…
x
Reference in New Issue
Block a user