I understand that ffmpeg is a powerful tool for video file conversions. I see online in many places people suggesting it for solutions or getting help in how to use it. The problem is I don't even know how to set it up or use it at all. These posts I'm talking about usually take the form "Use ffmpeg [complicated and unreadable line of code]." I'm not really a programmer, but I can do few things, so I think I can figure it out, if I just had a bit of direction.

How do I set up and use ffmpeg in Windows?


FFmpeg is indeed a powerful video encoder/decoder tool¹. It operates in the command line, as opposed to using a GUI. Command line is that black window you find by clicking [windows+r] and typing cmd then hitting enter. This is also called "command prompt". Once setup you enter ffmpeg commands in one of these windows to use it.

Here are the basic steps to "install" and use it:


  1. Go to the ffmpeg download site and download the zip file that best fits your computer's specs. Choose the "static" linking and the "nightly git" version for the most current usability.
  2. Create a folder on your computer to unpack the zip file. This folder will be your "installation" folder. I chose C:\Program Files\ffmpeg\. This is a good idea because you will treat this like a regular program. Unpack the zip file into this folder.
  3. The folder should now contain a number of other folders, including one titled bin where ffmpeg.exe is saved. We're not done yet. Double clicking that file does nothing. Remember, this is a command line program. It runs in cmd.
  4. Before you can use ffmpeg.exe in cmd you have to tell your computer where it can find it. You need to add a new system path. First, right click This PC (Windows 10) or Computer (Windows 7) then click Properties > Advanced System Settings > Advanced tab > Environment Variables.
  5. In the Environment Variables window, click the "Path" row under the "Variable" column, then click Edit Steps to add a System path to Windows
  6. The "Edit environment variable" window looks different for Windows 10 and 7. In Windows 10 click New then paste the path to the folder that you created earlier where ffmpeg.exe is saved. For this example, that is C:\Program Files\ffmpeg\bin\ ![Add new system path Windows 10]]3 In Windows 7 all the variables are listed in a single string, separated by a semicolon. Simply go the the end of the string, type a semicolon (;), then paste in the path. Add new system path Windows 7
  7. Click Ok on all the windows we just opened up.

ffmpeg is now "installed". The Command Prompt will now recognize ffmpeg commands and will attempt to run them. (If you are still having issues with Command Prompt not recognizing ffmpeg try running CMD as an admin. Alternatively, you can use windows powershell instead of cmd. If it still does not work double check to make sure each step was followed to completion.)

Updating ffmpeg

To update ffmpeg, just revisit the download page in step 1 above and download the zip file. Unpack the files and copy them over the old files in the folder you created in step 2.

Using ffmpeg

Using ffmpeg requires that you open a command prompt window, then type ffmpeg specific commands. Here is a typical ffmpeg command:

 ffmpeg -i video.mp4 -vn -ar 44100 -ac 1 -b:a 32k -f mp3 audio.mp3

This command has four parts:

  1. ffmpeg - This command tells cmd that we want to run ffmpeg commands. cmd will first look for ffmpeg.exe in one of the folders from step 6 in the Installation section. If it is found, it will attempt to run the command.
  2. -i video.mp4 - This is an input file. We are going to be doing work on this file.
  3. -vn -ar 44100 -ac 1 -b:a 32k -f mp3 - These are the "arguments". These characters are like mini commands that specify exactly what we want to do. In this case, it is saying create an mp3 file from the input source.
  • -vn - Leave out the video stream
  • -ar 44100 - Specifies audio resolution in hertz.
  • -ac 1 - Audio channels, only 1. This is effectively "make mono".
  • -b:a 32k - Audio bitrate, set to 32 kbps.
  • -f mp3 - Force to MP3 conversion. Without this command, ffmpeg attempts to interpret what you want based on the extension you use in the output file name.
  1. audio.mp3- This is the output file.

As you can probably guess, this short command makes an MP3 audio file from an MP4 file.

To run this command, assuming you have an MP4 file to try this on, follow these steps:

  1. Hit the Windows key + r.
  2. Type cmd then enter.
  3. Change the path to where the file is that you want to work on. Type cd [path]. It should look something like cd C:\Users\name\Desktop\.
  4. Now type the ffmpeg command with the name of your input file. The command will run with some feedback. When it's done, cmd will be available for more commands.

This is the basic way to use ffmpeg. The commands can get far more complicated, but that's only because the program has so much power. Using the ffmpeg documentation, you can learn all the commands and create some very powerful scripts. After that, you can save these scripts into a .bat file so that you just have to double click a file instead of type out the whole command each time. For example, this answer contains a script that will create MP3's from all the MP4's in a folder. Then we would be combining the power of ffmpeg with the power of cmd, and that's a nice place to be when you have to do professional quality video/audio encoding on mountains of files.

  1. As a point if technical accuracy, ffmpeg is itself not an encoder or decoder. It is a program that can be compiled with a large variety of encoders, decoders, muxers, and demuxers, based on user preference. All of these encoders etc, can be used without ffmpeg.
  • 2
    Thanks a lot for this. I was stuck on the first step, the "path environment var"! You have explained it better than anyone else and I now have a proper response from the cmd query "ffmpeg -version". I think I'm on my way. – Elgar Vaivars Feb 4 '18 at 16:17
  • @mcont Would "video encoder/decoder tool" be more accurate? – user24601 Aug 20 '19 at 18:56
  • The developers use the terms "framework" and "solution" to describe it on their website. – stib Aug 21 '19 at 4:09
  • ffmpeg is a framework and most of the encoders and almost all of the decoders are built-in (in libavcodec). It also supports various third-party encoders through wrappers. Those third-party encoders usually have standalone tools. But the built-in modules have to be used through the library API. They aren't standalone. – Gyan Aug 21 '19 at 5:55
  • 1
    The answer provided by user24601 is excellent. However, if you copy the extracted ffmpeg.exe, ffplay.exe, and ffprobe.exe into C:\Windows\System32, you can skip steps 4, 5, and 6, which amend the PATH. Those three files are small, and I have run with that method for over a year with no problem. – K7AAY Aug 18 '20 at 9:39

@DigiVision media gives a very good answer that covers the default way of installing it, I'd like to propose another method that is good for noobs and pros alike:

Chocolatey is a package manager, it's a bit like the Microsoft Store, except that it's actually useful, it's all free, and it runs on the commandline. With chocolatey, installing ffmpeg—and setting up the correct $PATH etc.—is as simple as

choco install ffmpeg

It's way quicker than searching for the right website, finding the download, unzipping it, reading the installation documentation, googling how to set it up, downloading some dependancy etc. etc.

To install Chocolatey you run a command on the commandline, obvs. The website shows you how, but it is a simple cut-n-paste affair. https://chocolatey.org/

You can then check out over 6000 free packages available with choco list <search term here>. There are even non-CLI programs so it's not just for the hardcore. It makes setting up a new install of windows super easy: I have a list of software that I always install and just get chocolatey to do it for me: choco install firefox ffmpeg conemu edgedeflector ditto rainmeter imagemagick… and so on.

As an added bonus upgrading your software is as easy as choco upgrade all

  • Thanks. Unfortunately not all that straight forward. E.g. I'm using Windows 10, Version 10.0.18362 Build 18362 (the most recent as of date) and have admin rights. Pasting the commands for chocolatey installation > Set-ExecutionPolicy Bypass -Scope Process -Force; iex ((New-Object System.Net.WebClient).DownloadString('chocolatey.org/install.ps1')) I get 'Set-ExecutionPolicy' is not recognized as an internal or external command, operable program or batch file. – user1323995 Oct 16 '19 at 10:58
  • Are you running that in a powershell session or a cmd session? – stib Oct 17 '19 at 0:48
  • Cmd! So it only works with powershell? Missed that part. Thanks. – user1323995 Oct 17 '19 at 7:08
