M BUZZ CRAZE NEWS
// news

ffmpeg & ffprobe & libfdk-aac on Ubuntu 14.10 server

By Sarah Rodriguez

How to install properly ffmpeg? (not a duplicate as most of the similar answers don't work properly)

Normally i compile ffmpeg manually with the following guide

leaving out the desktop libs ending up having something like that

(the guide worked perfectly on both 12.04 server & 13.10 desk, NOT on 14.10)

sudo apt-get update
sudo apt-get -y install autoconf automake build-essential libass-dev libfreetype6-dev libgpac-dev libtheora-dev libtool libvorbis-dev pkg-config texi2html zlib1g-dev
mkdir ~/ffmpeg_sources
sudo apt-get install yasm
sudo apt-get install libx264-dev
sudo apt-get install unzip
cd ~/ffmpeg_sources
wget -O fdk-aac.zip
unzip fdk-aac.zip
cd mstorsjo-fdk-aac*
autoreconf -fiv
./configure --prefix="$HOME/ffmpeg_build" --disable-shared
make
make install
make distclean
sudo apt-get install libmp3lame-dev
sudo apt-get install libopus-dev
cd ~/ffmpeg_sources
wget
tar xjvf libvpx-v1.3.0.tar.bz2
cd libvpx-v1.3.0
PATH="$PATH:$HOME/bin" ./configure --prefix="$HOME/ffmpeg_build" --disable-examples
PATH="$PATH:$HOME/bin" make
make install
make clean
cd ~/ffmpeg_sources
wget
tar xjvf ffmpeg-snapshot.tar.bz2
cd ffmpeg
PATH="$PATH:$HOME/bin" PKG_CONFIG_PATH="$HOME/ffmpeg_build/lib/pkgconfig" ./configure --prefix="$HOME/ffmpeg_build" --extra-cflags="-I$HOME/ffmpeg_build/include" --extra-ldflags="-L$HOME/ffmpeg_build/lib" --bindir="$HOME/bin" --enable-gpl --enable-libass --enable-libfdk-aac --enable-libfreetype --enable-libmp3lame --enable-libopus --enable-libtheora --enable-libvorbis --enable-libvpx --enable-libx264 --enable-nonfree
PATH="$PATH:$HOME/bin" make
make install
make distclean
hash -r
echo "MANPATH_MAP $HOME/bin $HOME/ffmpeg_build/share/man" >> ~/.manpath
. ~/.profile

i reinstalled the NEW(was using 12.04) ubuntu 14.10 server 3 times. but i could not get it to work. now i'm testing on a virtual machine and it does not work.

i can't find ffmpeg nor ffprobe.

it simply does not work... i need ffprobe to output json & libfdk-aac

so i googled and found sam's repo

sudo apt-get-repository ppa:samrog131/ppa
sudo apt-get update
sudo apt-get-install ffmpeg-real

create links

sudo ls -sf /opt/ffmpeg/bin/ffmpeg /usr/bin/ffmpeg
sudo ls -sf /opt/ffmpeg/bin/ffprobe /usr/bin/ffprobe //works but NO OUTPUT

the ffmpeg works but i have no output from ffprobe. looks like it's not complete...

ffprobe -v quiet -print_format json -show_streams INPUT

ffprobe unrecognized command....

How i could properly install ffmpeg with all it's sub apps like ffprobe & all the necessary codecs like libfdk-aac & ogg on Ubuntu 14.10 Server 64 bit?

note1: i'm using ffprobe to read the stream info and based on that php/js creates a custom command based on the streams.

note2: i convert my old cameras clips to the now standard multimedia format. (mp4/h264/aac) so m4v just copy the streams, mjpeg is converted, m2ts convert audio ac3 to aac & copy video stream and so on so i prefer libfdk-aac.

note3:with ubuntu 12.04 server i had no direct linkis to the ffmpeg i had to write down the whole path. would be nice to be able to just write ffmpeg or ffprobe.

UPDATE

mc3man/trusty-media appears to be the one that is updated & everything works on 14.04 except that it installs extra libs that are totally useless as i'm using a headless server. libsdl1.2-dev libva-dev libvdpau-dev libx11-dev libxext-dev libxfixes-dev and so enables also --enable-x11grab

Is there a way to omit this libs using this repo? Or can i remove them after the install completely?

14.04

samrog131/ppa

  1. ffprobe does not work ... no output
  2. ffmpeg works and libs are included
  3. installs extra desktop version libs that are not necessary

mc3man/trusty-media

  1. ffprobe works
  2. ffmpeg works
  3. installs extra desktop version libs that are not necessary

jon-severinsson/ffmpeg

  1. ffprobe works
  2. very old version of ffmpeg & is missing important libs
  3. installs extra desktop version libs that are not necessary

14.10

samrog131/ppa

  1. ffprobe does not work ... no output
  2. ffmpeg works and libs are included
  3. installs extra desktop version libs that are not necessary

mc3man/trusty-media

won't fetch can't install ffmpeg

jon-severinsson/ffmpeg

  1. ffprobe works
  2. very old version of ffmpeg & is missing important libs
  3. installs extra desktop version libs that are not necessary

UPDATE2

READ THE QUESTION

I'm on a server , a headless server. NO x11 libs NO Desktop stuff no ffplay

14.10 or 14.04

ffmpeg needs to work

ffprobe needs to work

libfdk_aac

latest versions

the best would be if someone could just tell me what i should change in the compilation guide!

15

2 Answers

says that there are 2 PPAs.

This one provides static binaries:

And this one dynamically built ones:

8

There is a statically compiled version of ffmpeg (), it's a portable version :-D

You can download the static builds from

Once downloaded, you can just unpack the .tar.xz file to /opt/ffmpeg for example and make a symlink to /opt/.../ffmpeg executable file and enjoy your ffmpeg :-)

2

Your Answer

Sign up or log in

Sign up using Google Sign up using Facebook Sign up using Email and Password

Post as a guest

By clicking “Post Your Answer”, you agree to our terms of service, privacy policy and cookie policy