自学内容网 自学内容网

[ffmpeg处理指令]

1 将h264转为mp4

ffmpeg -f h264 -i front_far_0.264 -vcodec copy front_far_0.mp4

ffmpeg -f h264 -i front_near_0.264 -vcodec copy front_near_0.mp4

-i:表示输入文件
front_far_2.mp4:表示输出文件

2 h264转为图片

front_far 是目标路径,需要提前创建

ffmpeg -i front_far_0.264 -s 1024x464 front_far/%d.png
%d.png 是名字模板,这样就是 0.png,1.png增长的了
(或者ffmpeg -i front_far.264 ./images/fov_30/%06d.png)

3 h264合并

ffmpeg -i concat:“front_far_0.264|front_far_1.264|front_far_2.264” -c copy front_far.264


原文地址:https://blog.csdn.net/zesong888/article/details/138844638

免责声明:本站文章内容转载自网络资源,如本站内容侵犯了原著者的合法权益,可联系本站删除。更多内容请关注自学内容网(zxcms.com)!