Results tagged “Ubuntu” from Stream #0

Having recently installed Xubuntu Hardy Heron on a laptop, I also needed to install FFmpeg. This post is really just a couple of notes for myself, updating my earlier How-To post regarding installation of FFmpeg on Ubuntu Gutsy.

New apt-get install line:

sudo apt-get install liblame-dev libfaad2-dev libfaac-dev libxvidcore4-dev liba52-0.7.4 liba52-0.7.4-dev libx264-dev libdts-dev libswscale-dev checkinstall build-essential subversion

Here I've added the swscale development libraries. Swscale is used for scaling videos.

If you are ever stuck behind a firewall or proxy, especially one that you have no control over and which does not understand certain SVN commands, there is a nightly Subversion snapshot available for download from the FFmpeg website. This alleviates the need to checkout the source with SVN.

New configure line:

./configure --enable-gpl --enable-libvorbis --enable-libtheora --enable-liba52 --enable-libdc1394 --enable-libgsm --enable-libmp3lame --enable-libfaad --enable-libfaac --enable-libxvid --enable-pthreads --enable-libx264 --enable-shared --enable-swscale --enable-avfilter --enable-postproc --enable-avfilter-lavf

Here I've removed --enable-pp as it is no longer recognised. And I've added --enable-swscale, --enable-avfilter, --enable-avfilter-lavf and --enable-postproc

Avfilter is the new FFmpeg library that replaces the deprecated vhook functionality.

One last note to self is to investigate the possibilities of AVIsynth scripting and FFmpeg.


How-To: Install FFMPEG on Ubuntu Gutsy

|

I wanted to install FFmpeg on my Ubuntu Gutsy Gibbon (7.10) desktop machine. This is so I can encode and transcode video files to various formats locally, and also render projects from the non-linear editor (NLE) PiTiVi.

This post will mainly cover just the commands I used to install FFmpeg on Gutsy, with very little commentary regarding why or how things work. If you want a more in-depth look at installing FFmpeg, you can read about the installation of FFmpeg on my Debian Etch server earlier today - which ultimately moves me closer to on-the-fly video transcoding of user submitted content on Kapital Moto TV

Installing FFmpeg on Ubuntu Gutsy:

sudo apt-get build-dep ffmpeg

sudo apt-get install liblame-dev libfaad2-dev libfaac-dev libxvidcore4-dev liba52-0.7.4 liba52-0.7.4-dev libx264-dev libdts-dev checkinstall build-essential subversion

svn checkout svn://svn.mplayerhq.hu/ffmpeg/trunk ffmpeg

cd ffmpeg

make distclean (I used this because I already had an older SVN snapshot of FFMPEG downloaded, configured and made from last night)

./configure --enable-gpl --enable-pp --enable-libvorbis --enable-libtheora --enable-liba52 --enable-libdc1394 --enable-libgsm --enable-libmp3lame --enable-libfaad --enable-libfaac --enable-libxvid --enable-pthreads --enable-libx264 --enable-shared

make

sudo checkinstall

Some things you might want to do when prompted to by checkinstall:

  • Select 0 change maintainer name
  • Select 3 to set version name. I used svn11213-ubuntu-gutsy-20071213

And that's it FFmpeg installed on Ubuntu Gutsy.

Other links:

Find recent content on the main index or look in the archives to find all content.

Pages