Installation of FFmpeg

Before we start making animations, we need to install either FFmpeg, avconv, MEncoder, or ImageMagick on our system. These additional dependencies are not bundled with Matplotlib, and so we need to install them separately. We are going to walk you through the steps of installing FFmpeg.

For Debian-based Linux users, FFmpeg can be installed by issuing the following command in the terminal:

sudo apt-get install ffmpeg
FFmpeg may not be available on Ubuntu 14.04 or earlier. To install FFmpeg on Ubuntu 14.04, please follow the steps below: 

 

sudo add-apt-repository ppa:mc3man/trusty-media

Press Enter to confirm the addition of the repository.

Also note that with apt-get a sudo apt-get dist-upgrade is needed for initial setup & with some package upgrades
More info: https://launchpad.net/~mc3man/+archive/ubuntu/trusty-media
Press [ENTER] to continue or ctrl-c to cancel adding it

Update and upgrade a few packages before installing FFmpeg.

sudo apt-get update
sudo apt-get dist-upgrade

Finally, proceed with the normal procedure of installing FFmpeg via apt-get:
sudo apt-get install ffmpeg

For Mac users, Homebrew (https://brew.sh/) is the simplest way to search and install the FFmpeg package. For those who don't have Homebrew, you can paste the following code in your terminal to install it:

/usr/bin/ruby -e "$(curl -fsSL https://raw.githubusercontent.com/Homebrew/install/master/install)"

After that, we can install FFmpeg by issuing the following command in the terminal app:

brew install ffmpeg
Alternatively, you may install FFmpeg by copying the binaries (https://evermeet.cx/ffmpeg/) to the system path (for example, /usr/local/bin). Readers may visit the following page for more details: http://www.renevolution.com/ffmpeg/2013/03/16/how-to-install-ffmpeg-on-mac-os-x.html

The installation steps for Windows users are quite a bit more involved, as we need to download the executable ourselves, followed by adding the executable to the system path. Therefore, we have prepared a series of screen captures to guide you through the process. 

First, we need to obtain a prebuilt binary from http://ffmpeg.zeranoe.com/builds/. Choose the CPU architecture that matches with your system, and select the latest release and static linked libraries.

Next, we need to extract the downloaded ZIP file to the C drive as c:ffmpeg, and add the folder c:ffmpegin to the Path variable. To do this, go to Control Panel and click on the System and Security link, followed by clicking on System. In the System window, click on the Advanced system settings link to the left:

In the pop-up System Properties window, click on the Environmental Variables… button:

Select the Path entry, and click on the Edit… button:

In the Edit environmental variable window, create a new entry that shows c:ffmpegin. Click on OK in all pop-up windows to save your changes. Restart Command Prompt and Jupyter Notebook and you are good to go.

Visit Wikihow (http://www.wikihow.com/Install-FFmpeg-on-Windows) for instructions on installing FFmpeg on Windows 7.
..................Content has been hidden....................

You can't read the all page of ebook, please click here login for view all page.
Reset