Using FFmpeg, you can change a video’s resolution without having to recompress or convert it. Known as “resizing” or “scaling” the video, this procedure lets you change the video’s dimensions without compromising its original quality.
Here’s how to make this happen:
I assume that you have installed FFmpeg on your system and if not please follow the below given instructions:
Use the scale Filter: The scale filter is a useful tool for scaling videos and is provided by FFmpeg. The following is the basic command to change the resolution:
ffmpeg -i input.mp4 -vf "scale=new_width:new_height" output.mp4
Enter the real name of your input video file instead of input.mp4, and output.mp4 should be the name of the desired output file. Indicate the new resolution in the scale=new_width:new_height
section by giving the desired width and height, for example, 1280:720 for 720p resolution.
For example:
ffmpeg -i input.mp4 -vf "scale=1920:1080" output.mp4
This command resizes the video to 1920x1080 (Full HD) resolution without requiring transcoding. The bitrate, quality, and codec of the original video are retained.