centos ffmpeg mp4转mu38

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.gz
cd yasm-1.3.0
./configure
make && 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.html
https://www.cnblogs.com/ChouDanDan/p/5566335.html
 
posted @ 2017-11-28 21:05  大智如蠢  阅读(1443)  评论(1编辑  收藏  举报