安装yasm(ffmpeg必备)
wget http://www.tortall.net/projects/yasm/releases/yasm-1.3.0.tar.gz
tar xzvf yasm-1.3.0.tar.gz
cd yasm-1.3.0
./configure
make
make instal
下载ffmpeg http://ffmpeg.org/download.html
cp /home/Jv/下载/ffmpeg-3.2.tar.bz2 /usr/local
tar xjf ffmpeg-3.2.tar.bz2
cd ffmpeg-3.2
./configure
make
make install
测试代码,把bike.mp4转为1.avi
ffmpeg -i bike.mp4 1.avi
已经测试可以转码,但通过opencv播放视频还在摸索中……