Install FFmpeg on Windows - Step-by-Step Guide

Following is a step-by-step guide that you can follow and have your video processing library up and running on Windows OS in about 20 minutes.


  1. A Windows 11 running computer.
  2. Archiver for files (This guide uses 7-Zip).
  3. Accessibility to Windows PowerShell or the Command Prompt.
  4. Administrative Rights.

Install FFmpeg on Windows 10/11

Step 1: Download the FFmpeg package

  1. Visit the official website to get the latest version of the FFmpeg package and binary files.

    Tap the window icon as shown below and click the Windows builds from file. This redirects you to a page having FFmpeg binaries made especially for Windows, which come with all the hardware libraries you could want.

  1. Scroll down and you will find the git master builds, download the first one. ​​This link will download the latest version of FFmpeg files to your computer in a compressed format.

Step 2: Unzip the downloaded files

  1. First, you must download a program that can decompress folders with the .7z file extensions, such as WinRAR or 7Zip, to proceed.
  2. Right-click the Start/Windows button and select File Explorer.
  3. On the left side, select the Downloads folder.
  4. Right-click the ffmpeg-*-git-*full build.7z file (the file name will vary depending on the current release).
  5. Wait for the files to extract after selecting Extract Here. With this, a brand-new folder with the exact name as the.7z file is created.
  6. Now, rename the extracted folder.

Step 3: Add the PATH environment variable

  1. To start FFmpeg from the command line, add the FFmpeg directory to your PATH environment variable. There is no need to type the complete path to FFmpeg to perform FFmpeg instructions at the command prompt. Follow:

  2. Click the Start option, search for Environment Variables, and then click Edit the system environment variables.

  3. Select the Environment Variables button.

  4. Go to the System Variables, find the Path variable, then tap Edit.

  5. Select New and add the path to the ffmpeg bin directory, e.g., C:\ffmpeg\bin.

  6. Restart any command prompt windows or open a new one for the changes to take effect.

Step: 4 Verify the PATH

  1. To open the terminal:

    • Find command prompt or cmd in the start menu.
    • When the Run utility is open, press Win+R and Shift+Right to enter cmd.
  2. Verify whether it’s working, and run ffmpeg -version in the command prompt.

Note: The steps would be the same to download the FFmpeg on Windows 7, - 64 bit, Windows Vista (Windows Vista, an outdated operating system, is no longer supported by Microsoft). It is recommended that you set up Windows 11(the latest version).

Install FFmpeg for python on Windows

You can install FFmpeg for Python on Windows OS by following these steps:

Install the Python bindings for FFmpeg using pip

  1. To download the FFmpeg using python, run the following command in your command prompt:
    pip install ffmpeg-python
    This command will download the latest version of FFmpeg to your computer.

  2. Create a file called “” and paste the below-given code into it. Run a Python script that makes use of FFmpeg to confirm the installation.
    import ffmpeg

  3. Run the file using the command mentioned, and if it shows the output, FFmpeg is installed successfully.

  4. Now, repeat the steps listed above to download FFmpeg on Windows.

How to run FFmpeg commands from a Python Script?

Now that you have installed FFmpeg on Windows for Python, you’d want to know how to execute Python commands from the terminal.

To accomplish this, Subprocess Management is required.

  1. The first step is to import the subprocess module, which enables the user to execute the commands from Python.

  2. Create a variable to represent the exact location of the ffmpeg binary on your PC.
    import subprocess
    ffmpeg = "/usr/local/bin/ffmpeg”

  3. Let’s take an example of how to convert an input video to an MP4 format using python script:
    import subprocess

// Define the FFmpeg command
command = “ffmpeg -i input.mp4 output.mp4”

// Run the FFmpeg command using
result =, shell=True, stdout=subprocess.PIPE,stderr=subprocess.PIPE)

// Check the return code to determine if the command was successful

if result.returncode == 0:
print(“Video conversion is done successfully.”)
print(f"Video conversion is failed with error code {result.returncode}.“)
print(f"FFmpeg error message: {result.stderr.decode()}”)

You have successfully installed FFmpeg on your system.

This article is all about the procedures and commands you must use to install FFmpeg on Windows, with an example at the end.

For more installation guides visit:


I am facing an issue of missing DLL files while trying to run FFmpeg on Windows, what should I do? Any suggestions on this?

1 Like

When you launch FFmpeg on Windows, you may discover missing DLL files and it is a common issue for beginners. To fix this, make sure the necessary DLL files are in the FFmpeg bin directory or in a location specified in the PATH variable. Usually, reliable websites or the FFmpeg website offer missing DLL files for download and to minimize any security concerns, use caution while downloading DLL files and make sure they come from reliable sources.