个人工具

UbuntuWiki:ffmpeg

来自Ubuntu中文

Oneleaf讨论 | 贡献2007年5月14日 (一) 03:07的版本 (New page: {{From|https://wiki.ubuntu.com/ffmpeg}} {{Languages|php5}} Fixing ffmpeg on Ubuntu For a litany of legal reasons, ffmpeg does not come with all of the necessary things enabled for you to ...)

(差异) ←上一版本 | 最后版本 (差异) | 下一版本→ (差异)
跳转至: 导航, 搜索

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.

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.