07-15-2021, 08:55 AM
If you are a content creator and there are borders on each side which makes the content to be smaller and less readable. Luckily, it is in the middle of the screen, so the following command will crop the image to its 1/1.29 of the size, stretch it back to 720p and reencodes it for YouTube copying the audio stream.
If your source video is different, just play around with the 1.29 constant to get the desired output. Use
option to encode just the first 10 seconds of the video to speed testing up:
That is all.
Code:
ffmpeg -i intput.mp4 -vf "crop=iw/1.29:ih/1.29,scale=-1:720" -y output.mp4
If your source video is different, just play around with the 1.29 constant to get the desired output. Use
Code:
-t
Code:
ffmpeg -i intput.mp4 -vf "crop=iw/1.29:ih/1.29,scale=-1:720" -t 00:00:10.0 -y output.mp4
That is all.