← ServerPilot Docs

How to Install FFmpeg

FFmpeg is a tool for converting video and audio files.

Installing FFmpeg on Ubuntu 16.04 or 18.04

On Ubuntu 16.04 or 18.04, you can install the ffmpeg command by SSH'ing into your server as root and running the following command:

sudo apt-get install ffmpeg

Installing FFmpeg on Ubuntu 14.04

On Ubuntu 14.04, ffmpeg has been removed and replaced with avconv.

You can install avconv by by SSH'ing into your server as root and running the command:

sudo apt-get install libav-tools

However, avconv has different syntax than ffmpeg so your PHP scripts will need to know how to use avconv, not ffmpeg.

If you need the original ffmpeg command, you can install an unofficial ffmpeg package for Ubuntu 14.04 using the following commands as root.

Be sure to make backups of your server before adding unofficial packages to your server.

sudo apt-add-repository ppa:jon-severinsson/ffmpeg
sudo apt-get update
sudo apt-get install ffmpeg

Note that this PPA doesn't provide gstreamer-ffmpeg integration.

Please be aware that ServerPilot won't automatically update third-party packages like the ones installed from PPAs. If you install from this PPA, you'll need to perform your own ffmpeg updates using the following command as root:

sudo apt-get dist-upgrade

Installing FFmpeg on Ubuntu 12.04

On Ubuntu 12.04, you can install the ffmpeg command by SSH'ing into your server as root and running the following command:

sudo apt-get install ffmpeg
Last updated: April 26, 2018

Launch your first site in 5 minutes