版权声明:本文为博主原创文章,转载请注明文章来源! https://blog.csdn.net/sunshinezhihuo/article/details/80948312
apt-get install ffmpeg
显示视频信息
ffmpeg -i input.avi
将视频拆分多张图片
ffmpeg -i input.mp4 frames/frame%03d.png
ffmpeg -i test.avi chaifen/%06d.jpg
当然,格式很任意啦。可以换成各种视频格式。
图片合成视频
ffmpeg -i frames/frame%3d.png output.mp4
更多详情请看:
http://einverne.github.io/post/2015/12/ffmpeg-first.html