ffmpeg
1873
Comment:
|
3768
|
Deletions are marked like this. | Additions are marked like this. |
Line 4: | Line 4: |
== Compiling ffmpeg from version in the repositories == |
|
Line 23: | Line 25: |
{{{ ./configure --enable-gpl --enable-pp --enable-zlib --enable-vorbis \ |
{{{./configure --enable-gpl --enable-pp --enable-zlib --enable-vorbis \ |
Line 45: | Line 47: |
== Compiling ffmpeg from upstream cvs snapshots == === Remove ffmpeg === {{{sudo apt-get remove ffmpeg }}} === Get pre-requisites === {{{sudo apt-get install liba52-dev libdts-dev libgsm1-dev libvorbis-dev libxvidcore4 libxvidcore-dev libdc1394-dev libfaac-dev liblame-dev libx264-dev libfaad2-dev libtheora-dev libsdl1.2-dev }}} === Grab the ffmpeg source === {{{wget http://ffmpeg.mplayerhq.hu/ffmpeg-export-snapshot.tar.bz2 tar jxvf ffmpeg-export-snapshot.tar.bz2 cd ffmpeg-export-*}}} === Configure === {{{./configure --enable-gpl --enable-pp --enable-pthreads \ --enable-libvorbis --enable-libogg --enable-liba52 \ --enable-libgsm --enable-dc1394 \ --disable-debug --enable-shared --enable-libxvid \ --enable-libfaac --enable-libmp3lame \ --enable-libx264 --enable-libfaad --enable-libtheora \ --enable-x11grab --enable-swscaler \ --prefix=/usr/local }}} === Compile === {{{make }}} === Install === {{{sudo make install }}} === Test === {{{export LD_LIBRARY_PATH=/usr/local/lib/ ffmpeg -version FFmpeg version SVN-r9450, Copyright (c) 2000-2007 Fabrice Bellard, et al. configuration: --enable-gpl --enable-pp --enable-pthreads --enable-libvorbis --enable-libogg --enable-liba52 --enable-libgsm --enable-dc1394 --disable-debug --enable-shared --enable-libxvid --enable-libfaac --enable-libmp3lame --enable-libx264 --enable-libfaad --enable-libtheora --enable-x11grab --enable-swscaler --prefix=/usr/local libavutil version: 49.4.1 libavcodec version: 51.40.4 libavformat version: 51.12.1 built on Jul 4 2007 21:14:05, gcc: 4.1.3 20070629 (prerelease) (Ubuntu 4.1.2-13ubuntu2) ffmpeg SVN-r9450 libavutil 3212289 libavcodec 3352580 libavformat 3345409 }}} |
Fixing ffmpeg on Ubuntu
For a litany of legal reasons, ffmpeg does not come with all of the necessary things enabled for you to encode video for the iPod Video by default. Therefore, we need to build it from source and install some other libraries and programs, as well. Make sure you have multiverse and universe enabled.
Compiling ffmpeg from version in the repositories
In the terminal, run:
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
apt-get source ffmpeg
cd ffmpeg-*/
*This is all in one line:
{{{./configure --enable-gpl --enable-pp --enable-zlib --enable-vorbis \
- --enable-libogg --enable-theora --enable-a52 --enable-dts \ --enable-dc1394 --enable-libgsm --disable-debug --enable-mp3lame \ --enable-faad --enable-faac --enable-xvid
}}}
make
sudo checkinstall -D make install
*Only!!! If the above command doesn't work try this (reasons are explained below):
sudo make install
It will go through a bunch of stuff and prompt you on the last command for a few things. First, hit y to create docs, then just hit enter at the EOF question. Next, it will take you to the name and version. Edit #2 (name) to be ffmpeg, then edit #3 (version) to be something newer than what it is...so, either 1.cvsxxxxxx or some other way. If your installation fails because it claims that it was downgrading ffmpeg, you may use "sudo make install" instead of "sudo checkinstall -D make install", but you will not have a dpkg for it. If you go thise route, you can always uninstall by returning to this directory and typing "sudo make uninstall". If you don't mind not having a dpkg for it, then I'd recommend going straight to a sudo make install. Now, ffmpeg is fixed, time to move onto gtkpod's abilities.
Compiling ffmpeg from upstream cvs snapshots
Remove ffmpeg
{{{sudo apt-get remove ffmpeg }}}
Get pre-requisites
{{{sudo apt-get install liba52-dev libdts-dev libgsm1-dev libvorbis-dev libxvidcore4 libxvidcore-dev libdc1394-dev libfaac-dev liblame-dev libx264-dev libfaad2-dev libtheora-dev libsdl1.2-dev }}}
Grab the ffmpeg source
{{{wget http://ffmpeg.mplayerhq.hu/ffmpeg-export-snapshot.tar.bz2 tar jxvf ffmpeg-export-snapshot.tar.bz2 cd ffmpeg-export-*}}}
Configure
{{{./configure --enable-gpl --enable-pp --enable-pthreads \
- --enable-libvorbis --enable-libogg --enable-liba52 \ --enable-libgsm --enable-dc1394 \ --disable-debug --enable-shared --enable-libxvid \ --enable-libfaac --enable-libmp3lame \ --enable-libx264 --enable-libfaad --enable-libtheora \
- --enable-x11grab --enable-swscaler \
- --prefix=/usr/local
- --enable-x11grab --enable-swscaler \
}}}
Compile
ffmpeg (last edited 2011-08-23 22:36:00 by 98-65-174-206)