FFmpeg: Scales the output video so it matches the value in python
FFMPEG scales the output video so it matches the value
that you specified in either Max Width or Max Height without exceeding the other value.
sh = source height
sw = source width
height =…