Last updated: Apr 4, 2024
Reading time·4 min
The error "'ffmpeg' is not recognized as an internal or external command, operable program or batch file" occurs for 2 main reasons:
ffmpeg
installed on your Windows machine.ffmpeg
added to your user's PATH environment variable.'ffmpeg' is not recognized as an internal or external command, operable program or batch file. The term 'ffmpeg' is not recognized as the name of a cmdlet, function, script file, or operable program.
FFmpeg
installed, scroll down to the next subheading.To download and install FFmpeg on Windows:
ffmpeg-git-full
version for the latest release.ffmpeg.7z
file, hover
over 7-Zip
and click on "Extract Here".ffmpeg
.ffmpeg
directory to Local Disk (C:), or in other words C:\
.The next step is to add the path to the ffmpeg
executable file to your user's
PATH environment variable.
The ffmpeg.exe
file is located in the bin
directory in the ffmpeg
folder.
ffmpeg.exe
to your user's PATH environment variableTo add the path to the ffmpeg
executable to your user's PATH environment
variable:
ffmpeg.exe
is located or paste it directly.If you pasted your ffmpeg
folder in Local Disk (C:), then your path should be
the following.
C:\ffmpeg\bin
bin
directory in the ffmpeg
folder because this is where the ffmpeg
executable (ffmpeg.exe
) file is located.When you issue ffmpeg
commands, you are effectively using the ffmpeg.exe
file.
You might also have to restart your PC, but that's not always necessary.
Open a new Command Prompt and run the ffmpeg -version
command to make sure
everything works as expected.
ffmpeg -version
Alternatively, you can install ffmpeg
using
Chocolatey.
To install FFmpeg on Windows if you have Chocolatey installed:
Click on the Search bar and type PowerShell.
Right-click on the PowerShell application and click "Run as administrator".
ffmpeg
.choco install ffmpeg -y
To install Chocolatey:
Set-ExecutionPolicy Bypass -Scope Process -Force; [System.Net.ServicePointManager]::SecurityProtocol = [System.Net.ServicePointManager]::SecurityProtocol -bor 3072; iex ((New-Object System.Net.WebClient).DownloadString('https://community.chocolatey.org/install.ps1'))
choco
to make sure Chocolatey is installed.Now that you have Chocolatey installed, run the following command to install
ffmpeg
.
choco install ffmpeg -y
Note that your shell should still be run using elevated permissions.
Now you should be able to use the ffmpeg
command.
Click on the Search bar, type "cmd" and start the Command Prompt application.
ffmpeg -version
To solve the error "'ffmpeg' is not recognized as an internal or external command, operable program or batch file", make sure:
ffmpeg
installed on your Windows machine.ffmpeg
added to your user's PATH environment variable.You can learn more about the related topics by checking out the following tutorials: