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