免费注册 查看新帖 |

Chinaunix

  平台 论坛 博客 文库
最近访问板块 发新帖
查看: 1248 | 回复: 0
打印 上一主题 下一主题

ffmpeg安装 [复制链接]

论坛徽章:
0
跳转到指定楼层
1 [收藏(0)] [报告]
发表于 2008-08-05 10:04 |只看该作者 |倒序浏览

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

               
               
               
               
               
               
               

本文来自ChinaUnix博客,如果查看原文请点:http://blog.chinaunix.net/u2/72217/showart_1106421.html
您需要登录后才可以回帖 登录 | 注册

本版积分规则 发表回复

  

北京盛拓优讯信息技术有限公司. 版权所有 京ICP备16024965号-6 北京市公安局海淀分局网监中心备案编号:11010802020122 niuxiaotong@pcpop.com 17352615567
未成年举报专区
中国互联网协会会员  联系我们:huangweiwei@itpub.net
感谢所有关心和支持过ChinaUnix的朋友们 转载本站内容请注明原作者名及出处

清除 Cookies - ChinaUnix - Archiver - WAP - TOP