wget http://ffmpeg.org/releases/ffmpeg-2.4.tar.bz2 #先把安装包下载到liunx
tar -xjf ffmpeg-2.4.tar.bz2 #解压
- cd ffmpeg-2.4 #进到当前目录
- ./configure –disable-yasm –prefix=/usr/local/ffmpeg
- make
- make install
- vi /etc/ld.so.conf
在最后加入:/usr/local/ffmpeg/lib
idconfig - vi /etc/profile
在最后加入:
export FFMPEG_HOME=/usr/local/ffmpeg
export PATH=$FFMPEG_HOME/bin:$PATH - source /etc/profile #使修改生效
- ffmpeg -version
如果出现
ffmpeg version 2.4 Copyright (c) 2000-2014 the FFmpeg developers
built on Sep 16 2014 09:45:41 with gcc 4.4.7 (GCC) 20120313 (Red Hat 4.4.7-4)
configuration: –disable-yasm –prefix=/usr/local/ffmpeg
libavutil 54. 7.100 / 54. 7.100
libavcodec 56. 1.100 / 56. 1.100
libavformat 56. 4.101 / 56. 4.101
libavdevice 56. 0.100 / 56. 0.100
libavfilter 5. 1.100 / 5. 1.100
libswscale 3. 0.100 / 3. 0.100
libswresample 1. 1.100 / 1. 1.100
就表示安装成功了