Fahad Khan
Desktop
FFmpeg is a very powerful and great command line tool used for performing various
conversion operations on audio and video files. The good thing about this tool is that it
is absolutely free to use. It is available for Windows, Linux and Mac operating systems.
Not everyone knows how to use it though and for that purpose, Ive come up with this
guide on how to use FFmpeg for Windows OS. From the very first step of downloading
the program to cropping an audio file, this tutorial aims to help you cover the basics, so
that you can play around more later on.
RECOMMENDED READING:10
To verify if your OS is 32-bit or 64-bit, click on the Start icon on the left side of your
desktop then type Run in search bar and in run write the command of dxdiag and press
the Enter key.
Under the heading of System Information, you can easily find the name of the OS and
the version being used (32-bit or 64-bit).
After extracting the files, select all of the files, create a folder in C drive
namedFFmpegTool and paste all the files in this folder as shown below. It is important to
note that you should keep the folder name and drive the same to avoid any problems in
executing commands to perform conversions.
Starting FFmpeg
Go to Run, type cmd and press the Enter key. A command line window will appear as
shown here.
Type cd\ and press the Enter key. It should appear as below.
Now type cd FFmpegTool, this command will allow you to enter into the
FFmpegTool folder which we have created earlier (be careful with the spelling as any
spelling mistake in command will cause an error).
Type cd bin and press the Enter key to access the content in the bin folder. You should
see the following.
Finally, type ffmpeg.exe and press the Enter key. It will take 1 or 2 seconds to execute
the command and you should be able to see the result shown below.
If you see text lines written on your screen (as per the above image) then it means the tool
is working fine and ready to use.
Important Commands
Now, well go through some of the important commands for FFmpeg. Copy the video
in the bin folder on which youll perform the operations. I have copied a video
called samplevideo and will use this video throughout the remainder of this post.
Here -vn is used to extract audio and -ab is used to save audio as 128Kbps MP3 file.
You can change the bit rate to 256Kbps or something else. Just change the value after ab. All of the output files will be stored automatically in the bin folder.
Here -t 00:00:59 represents a part that is created from the start of the video to the 59th
second of video. -ss 00:00:59 shows the starting time stamp for the video. It means that
the 2nd part will start from the 59th second and will continue up to the end of the original
video file.
To convert a video file from one format to another format, the following command is
used:
ffmpeg -i yourvideoname.mp4 -c:v libx264 outputfilename.wmv
The command below is an example of when converting a .mp4 file into a .wmv file.
Here, -ss 00:00:15 is the staring time and -t 45 is the duration of the cropped file.
Conclusion
Weve covered downloading and installing FFmpeg as well as some of the useful
commands that you can use. You can explore the rest of the commands via the help
option of FFmpeg. Just type in ffmpeg -h in command line. This will list all the
available options and commands for these options. So why dont you try it out for
yourself?