ubuntu ffmpeg 1

参看之前ffmpeg for x86 和 arm到文字,使用svn 安装现x264的时候会出问题,据说是改用git了:git clone git://git.videolan.org/x264.git。参看网上的资料,编译pc上运行的先:
http://ubuntuforums.org/showthread.php?t=786095

安装的次序是,首先,卸载ffmpeg,如果已经通过apt-get安装的话。这里是通过编译安装的,增加对x264的支持。

卸载的命令是:

sudo apt-get purge ffmpeg x264 libx264-dev

安装ffmpeg编译所需的工具和库:

root@ran-desktop:/home/ran/ffmpeg# sudo apt-get install build-essential subversion git-core checkinstall yasm texi2html libfaac-dev libmp3lame-dev libopencore-amrnb-dev libopencore-amrwb-dev libsdl1.2-dev libtheora-dev libvorbis-dev libvpx-dev libx11-dev libxfixes-dev libxvidcore-dev zlib1g-dev

E: 无法找到软件包 libjack-jackd2-dev

这个包是什么东西?

JACK is a low-latency sound server, allowing multiple applications to connect to one audio device, and to share audio between themselves.

This package contains files needed for the development of JACK applications and an API reference.

sudo apt-get install libjack-dev libjackasyn-dev libjackasyn0

然后进入到x264目录下编译和安装:

cd x264
./configure
make
sudo checkinstall –fstrans=no –install=yes –pkgname=x264 –pkgversion “1:0.svn`date +%Y%m%d`-0.0ubuntu1″ –default

Installing with –fstrans=no...Installing with –install=yes...Installing with –pkgname=x264...Installing with –pkgversion...Installing with “1:0.svn20110112-0.0ubuntu1″...Installing with –default...
=============================== 安装结果 =================================
/var/tmp/tmp.ntgelz2A4f/installscript.sh: 4: –fstrans=no: not found
**** 安装失败。退出打包过程。
root@ran-desktop:/home/ran/x264# sudo checkinstall --pkgname=x264 --pkgversion "2:0.`grep X264_BUILD x264.h -m1 |cut -d' ' -f3`.`git rev-list HEAD | wc -l`+git`git rev-list HEAD -n 1 |head -c 7`" --backup=no --deldoc=yes --fstrans=no --default
**********************************************************************
 Done. The new package has been installed and saved to
 /home/ran/x264/x264_2:0.112.1867+git22bfd31-1_i386.deb
 You can remove it from your system anytime using:
      dpkg -r x264
**********************************************************************
3、编译ffmpeg:

root@ran-desktop:/home/ran/ffmpeg# ./configure --enable-gpl --enable-version3 --enable-nonfree --enable-postproc --enable-libfaac --enable-libmp3lame --enable-libopencore-amrnb --enable-libopencore-amrwb --enable-libtheora --enable-libvorbis --enable-libvpx --enable-libx264 --enable-libxvid --enable-x11grab

License: nonfree and unredistributable
Creating config.mak and config.h...
root@ran-desktop:/home/ran/ffmpeg#

你可能感兴趣的:(ubuntu,git,System,Build,subversion,audio)