我这儿有很多张连续的图片,如何将其快速地转换成视频流?
在ubuntu系统下,完成连续帧到视频流的转换,只需要下面两个步骤:
(1) 安装mencoder
sudo apt install mencoder
(2) 使用mencoder进行转视频
首先,通过cd命令进入图片文件夹下;
然后,使用mencoder转换操作命令:
mencoder mf://*.png -mf fps=7:type=png -ovc x264 -x264encopts bitrate=440 -vf scale=640:480 -o outVideo.mp4
保存后的视频流命名为outVideo.mp4