【运维支持】ffmpeg部署

1.基础包
yum -y install bzip2 patch gcc gcc-c++

wget https://github.com/chromiumer/ops-files/releases/download/v1.0/opencore-amr-0.1.3.tar.gz
tar -xvf opencore-amr-0.1.3.tar.gz
cd opencore-amr-0.1.3
./configure && make && make install

wget  https://github.com/chromiumer/ops-files/releases/download/v1.0/lame-3.99.5.tar.gz
tar -xvf lame-3.99.5.tar.gz
cd lame-3.99.5
./configure && make && make install

wget https://github.com/chromiumer/ops-files/releases/download/v1.0/yasm-1.3.0.tar.gz
tar -xvf yasm-1.3.0.tar.gz
cd yasm-1.3.0
./configure && make && make install

wget https://github.com/chromiumer/ops-files/releases/download/v1.0/ffmpeg-4.2.tar.xz
tar -xvf ffmpeg-4.2.tar.xz
cd ffmpeg-4.2
./configure --prefix=/usr/local/ffmpeg --enable-libmp3lame --enable-libopencore-amrnb --enable-libopencore-amrwb --enable-version3 --enable-shared
make && make install
2.环境配置
echo 'export PATH=$PATH:/usr/local/ffmpeg/bin'  >> /etc/profile

source /etc/profile 
echo "/usr/local/ffmpeg/lib" >> /etc/ld.so.conf
echo "/usr/local/lib" >> /etc/ld.so.conf

ldconfig
ffmpeg -version //验证
ffmpeg version 4.2 Copyright (c) 2000-2019 the FFmpeg developers
built with gcc 4.8.5 (GCC) 20150623 (Red Hat 4.8.5-39)
configuration: --prefix=/usr/local/ffmpeg --enable-libmp3lame --enable-libopencore-amrnb --enable-libopencore-amrwb --enable-version3 --enable-shared
libavutil      56. 31.100 / 56. 31.100
libavcodec     58. 54.100 / 58. 54.100
libavformat    58. 29.100 / 58. 29.100
libavdevice    58.  8.100 / 58.  8.100
libavfilter     7. 57.100 /  7. 57.100
libswscale      5.  5.100 /  5.  5.100
libswresample   3.  5.100 /  3.  5.100
  • 0
    点赞
  • 0
    收藏
    觉得还不错? 一键收藏
  • 0
    评论
评论
添加红包

请填写红包祝福语或标题

红包个数最小为10个

红包金额最低5元

当前余额3.43前往充值 >
需支付:10.00
成就一亿技术人!
领取后你会自动成为博主和红包主的粉丝 规则
hope_wisdom
发出的红包
实付
使用余额支付
点击重新获取
扫码支付
钱包余额 0

抵扣说明:

1.余额是钱包充值的虚拟货币,按照1:1的比例进行支付金额的抵扣。
2.余额无法直接购买下载,可以购买VIP、付费专栏及课程。

余额充值