Skip to content

Instantly share code, notes, and snippets.

@LeetCodes
Last active April 27, 2018 10:59
Show Gist options
  • Select an option

  • Save LeetCodes/4e9711f6aecb074a350489e5811df411 to your computer and use it in GitHub Desktop.

Select an option

Save LeetCodes/4e9711f6aecb074a350489e5811df411 to your computer and use it in GitHub Desktop.
Commands for installing ffmpeg on common operating systems.

Installing FFmpeg in Windows

  1. Download a static build from here.
  2. Use 7-Zip to unpack it in the folder of your choice.
  3. Open a command prompt with administrator's rights.
    NOTE: Use CMD.exe, do not use Powershell! The syntax for accessing environment variables is different from the command shown in Step 4 - running it in Powershell will overwrite your System PATH with a bad value.
  4. Run the command (see note below; in Win7 and Win10, you might want to use the Environmental Variables area of the Windows Control Panel to update PATH):
    setx /M PATH "path\to\ffmpeg\bin;%PATH%"
    Do not run setx if you have more than 1024 characters in your system PATH variable. See this post on SuperUser that discusses alternatives. Be sure to alter the command so that path\to reflects the folder path from your root to ffmpeg\bin.
    (Here's another explanation with pictures.)

Installing FFmpeg in OS X

Here are a couple of links to instructions:
http://www.renevolution.com/ffmpeg/2013/03/16/how-to-install-ffmpeg-on-mac-os-x.html
http://www.idiotinside.com/2016/05/01/ffmpeg-mac-os-x/
http://macappstore.org/ffmpeg/

Installing FFmpeg in Ubuntu

sudo add-apt-repository ppa:mc3man/trusty-media  
sudo apt-get update  
sudo apt-get install ffmpeg  
sudo apt-get install frei0r-plugins  

Helpful links for Ubuntu users: http://wiki.razuna.com/display/ecp/FFmpeg+Installation+for+Ubuntu#FFmpegInstallationforUbuntu-Installlibfdk-aac
http://www.webupd8.org/2014/11/ffmpeg-returns-to-official-ubuntu.html
http://linuxg.net/how-to-install-ffmpeg-2-6-1-on-ubuntu-15-04-ubuntu-14-10-ubuntu-14-04-and-derivative-systems/
http://ffmpeg.org/download.html
http://askubuntu.com/questions/432542/is-ffmpeg-missing-from-the-official-repositories-in-14-04

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment