yum install -y automake autoconf libtool gcc gcc-c++ && yum install make && yum install svn && yum search ** && yum install **
git clone git://source.ffmpeg.org/ffmpeg.git ffmpeg
cd ffmpeg
yum install yasm && ./configure --prefix=/usr && make && make install
------------------------------------------------------------------------------------------------------
我测试时没出现以下错误
如果在执行./configure --prefix=/usr 时出现了错误无法正常安装
yasm not found, use --disable-yasm for a crippled build
那是因为没有安装yasm的缘故导致无法继续,安装yasm环境就行了
wget http://www.tortall.net/projects/yasm/releases/yasm-1.3.0.tar.gz
tar zxvf yasm-1.3.0.tar.gzcd yasm-1.3.0./configuremake && make install---------------------------------------------------------------------------------------------------继续安装完成 输入看看有没错误ffmpeg 有错误解决错误没错误继续ffmpeg -i 我是原视频.mp4 -c copy -map 0 -f segment -segment_list playlist.m3u8 -segment_time 10 output%03d.ts测试成功感谢大牛:https://www.5yun.org/8948.htmlhttps://www.cnblogs.com/ChouDanDan/p/5566335.html
转载于:https://www.cnblogs.com/phper8/p/7912055.html