通过 PPA 安装 ffmpeg

sudo add-apt-repository ppa:kirillshkrogalev/ffmpeg-next

sudo apt-get update

sudo apt-get install ffmpeg

 

测试:

ffmpeg -i “ddd.mp4” -y -ab 32 -ar 22050 a.flv

 

 

另一个方法安装ffmpeg

To install ffmpeg, create a file called install-ffmpeg.sh and copy-and-paste in the following script.

 

sudo apt-get install build-essential git-core checkinstall yasm texi2html libvorbis-dev libx11-dev libvpx-dev libxfixes-dev zlib1g-dev pkg-config netcat libncurses5-dev

 

FFMPEG_VERSION=2.3.3

 

cd /usr/local/src

if [ ! -d “/usr/local/src/ffmpeg-${FFMPEG_VERSION}” ]; then

  sudo wget “http://ffmpeg.org/releases/ffmpeg-${FFMPEG_VERSION}.tar.bz2”

  sudo tar -xjf “ffmpeg-${FFMPEG_VERSION}.tar.bz2”

fi

 

cd “ffmpeg-${FFMPEG_VERSION}”

sudo ./configure –enable-version3 –enable-postproc –enable-libvorbis –enable-libvpx

sudo make

sudo checkinstall –pkgname=ffmpeg –pkgversion=”5:${FFMPEG_VERSION}” –backup=no –deldoc=yes –default

 

Next, make the script executable and run it.

 

$ chmod +x install-ffmpeg.sh

$ ./install-ffmpeg.sh

After the script finishes, check that ffmpeg is installed by typing the command ffmpeg -version. You should see the following

 

$ ffmpeg -version

ffmpeg version 2.3.3 Copyright (c) 2000-2014 the FFmpeg developers

built on Aug 18 2014 17:35:05 with gcc 4.8 (Ubuntu 4.8.2-19ubuntu1)

configuration: –enable-version3 –enable-postproc –enable-libvorbis –enable-libvpx

libavutil      52. 92.100 / 52. 92.100

libavcodec     55. 69.100 / 55. 69.100

libavformat    55. 48.100 / 55. 48.100

libavdevice    55. 13.102 / 55. 13.102

libavfilter     4. 11.100 /  4. 11.100

libswscale      2.  6.100 /  2.  6.100

libswresample   0. 19.100 /  0. 19.100

木易的技术记录 » 通过 PPA 安装 ffmpeg

顶 (0)

评论 0

  • 昵称 (必填)
  • 邮箱 (必填)
  • 网址

置顶文章