linux音频解码软件ffmpeg的安装
1.首先将文件考到linux服务器上并解压,这里安装的版本是ffmpeg-3.3.3
[root@iZbp16etend51sn64ysypiZ local]# ls
aegis bin cloudmonitor curl etc ffmpeg ffmpeg-3.3.3 ffmpeg-3.3.3.zip
2.加载动态库
cd /etc/ld.so.conf.d/
touch ffmpeg.conf
vim ffmpeg.conf 输入/usr/local/ffmpeg/lib
3.加入环境变量
echo -e '\nexport PATH=$PATH:/usr/local/ffmpeg/bin' >> /etc/profile
[root@iZbp16etend51sn64ysypiZ ~]# cat /etc/profile | grep ffmpeg
export PATH=$PATH:/usr/local/ffmpeg/bin
4.安装ffmpeg
chmod -R 755 ffmpeg-3.3.3
cd ffmpeg-3.3.3
./configure --enable-shared --disable-yasm --prefix=/usr/local/ffmpeg
make && make install
5.重新加载动态库
cd /etc/ld.so.conf.d
ldconfig
至此安装完毕,可以使用ffmpeg -v查看版本
[root@iZbp16etend51sn64ysypiZ local]# ffmpeg -v
ffmpeg version 3.3.3 Copyright (c) 2000-2017 the FFmpeg developers
built with gcc 4.4.7 (GCC) 20120313 (Red Hat 4.4.7-18)
configuration: --enable-shared --disable-yasm --prefix=/usr/local/ffmpeg
libavutil 55. 58.100 / 55. 58.100
libavcodec 57. 89.100 / 57. 89.100
libavformat 57. 71.100 / 57. 71.100
libavdevice 57. 6.100 / 57. 6.100
libavfilter 6. 82.100 / 6. 82.100
libswscale 4. 6.100 / 4. 6.100
libswresample 2. 7.100 / 2. 7.100
Missing argument for option 'v'.
Error splitting the argument list: Invalid argument