spdl-southpark-downloader

How to install ffmpeg

You have two options to get ffmpeg working on your system. You can either download a static build or you can properly install ffmpeg in your system to make it available for all programs. To do a full install, choose your platform here:

However, if you use spdl.py as a python library and do not want to use the built-in download function, you don’t event need ffmpeg and you may just skip the installation.

Installation on Unix

Ubuntu and Linux Mint

$ sudo add-apt-repository ppa:mc3man/trusty-media
$ sudo apt-get update
$ sudo apt-get install ffmpeg
$ ffmpeg -version

Debian

To install FFmpeg, first you need to add the following line to your /etc/apt/sources.list file. As per your distribution, change ‘‘ with ‘stretch‘, ‘jessie‘, or ‘wheezy‘.

deb http://www.deb-multimedia.org <mydist> main non-free deb-src http://www.deb-multimedia.org <mydist> main non-free

Then update system package sources and install FFmpeg with the following commands.

$ sudo apt-get update
$ sudo apt-get install deb-multimedia-keyring
$ sudo apt-get update
$ sudo apt-get install ffmpeg

Installation on Mac OS X

The easiest way to install ffmpeg on Mac OS is using homebrew:

$ brew install ffmpeg

Installation on 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.

Other Platforms (Using Static Builds)

To install ffmpeg on other platforms, visit their download site. You can download any ffmpeg binary from there that fits to your platform and save it anywhere on your computer. If it’s not in your environment PATH just point spdl.py to the executeable by adding the --ffmpeg-binary option to the commandline like this:

$ python3 spdl.py all --ffmpeg-binary /path/to/your/downloaded/binary

Everything should work just fine now.