ffmpeg安装
我安装的时候参考了如下:
----------------------------------------------------------------------------------
Rebuilding Ubuntu's ffmpeg Package
Essentially, we're going to download the ffmpeg source packages for Hardy, install some extra codecs and libraries, and then compile new packages from the sources. We need to do this to enable certain proprietary codecs, which Ubuntu cannot legally distribute in the default distribution. Below is a brief run-down...
1. Install necessary tools and libraries (you may need to enable universe/multiverse repositories to get some of these):
sudo aptitude install build-essential devscripts fakeroot dh-make patch diff patchutils liblame-dev libfaad-dev libfaac-dev libxvidcore4-dev liba52 liba52-dev libx264-dev libdts-dev
2. Install the packages needed to build ffmpeg:
sudo apt-get build-dep ffmpeg
3. Grab the ffmpeg source:
apt-get source ffmpeg
4. Enter the resulting source directory, e.g.
cd ffmpeg-0.cvs20070307/
5. Edit the debian rules file, e.g.
vim debian/rules
6. Add the desired confflags to the rules file. Mine look like this:
confflags += --enable-gpl --enable-pp --enable-swscaler --enable-pthreads
confflags += --enable-libvorbis --enable-libtheora --enable-libogg --enable-libgsm
confflags += --enable-liba52 --enable-libdts --enable-dc1394 --enable-libgsm --disable-debug
confflags += --enable-libmp3lame --enable-libfaad --enable-libfaac --enable-xvid --enable-x264
7. Run debuild to build the debian packages:
debuild -us -uc
8. After some time, the build will complete, and in the parent directory you will find several .deb packages. Install them using
dpkg -i *.deb
9. Enjoy your shiny new ffmpeg, with mp3, faad, faac, and h.264 goodness!
-----------------------------------------------------------------------------------
阅读(600) | 评论(0) | 转发(0) |