FFmpeg is a free and open-source video and audio processing software for Windows. It is a command-based utility that consists of various libraries and programs to play, stream, record, and convert video and audio files. Each of its functionalities can be used with respective commands. It also lets you change the dimensions of a video and for that, a specific video resizing command is required. Let’s see what is that command and what are the steps you need to follow to resize a video using the command in Windows 10.
How to resize a video using Command-line through FFmpeg
Steps to resize videos using command are as follow: Let us discuss these steps in detail now. First and foremost, you need to download FFmpeg from ffmpeg.org and then extract the executable files from the folder. After that, go to the sub-folder where the FFmpeg.exe file is present. It is usually found in the bin folder of the main folder. Now, in the address bar, type “CMD” and then press Enter button. It will open up the Command Prompt.
In the CMD, enter a command with the following syntax which is used to resize a video in FFmpeg: ffmpeg -i
Press the Enter button to execute the video resizing above command. It will resize your video in a few seconds or minutes, depending upon the length of your video.
More Video Resizing Commands for FFmpeg:
There are multiple other video resizing commands that you can use, such as:
If you want to resize a video to half of its original size, then use: scale=w=iw/2:h=ih/2To resize a video to double of its original dimensions, use this syntax: scale=w=2iw:h=2ihIn case you want to increase the width to a maximum of 500 pixels while keeping the aspect ratio the same as the input, use: scale=w=‘min(500, iw*3/2):h=-1’
You can download the tool and read more about its commands and syntaxes on ffmpeg.org. FFmpeg is a great tool to process audio and video through Command Line Interface. Its resizing and other commands are pretty easy to use. So, try FFmpeg to change video dimensions using command prompt on Windows 10.