Chinaunix首页 | 论坛 | 博客
  • 博客访问: 2376762
  • 博文数量: 609
  • 博客积分: 10061
  • 博客等级: 上将
  • 技术积分: 5920
  • 用 户 组: 普通用户
  • 注册时间: 2008-06-25 08:30
文章分类

全部博文(609)

文章存档

2010年(13)

2009年(39)

2008年(558)

我的朋友

分类: LINUX

2008-08-05 10:04:30

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!
-----------------------------------------------------------------------------------

 
阅读(570) | 评论(0) | 转发(0) |
给主人留下些什么吧!~~