如何将视频分成单独的编码帧? [英] How to split a video into individual encoded frames?
本文介绍了如何将视频分成单独的编码帧?的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!
问题描述
源视频是mp4容器中的H264,我正在尝试将其拆分为单独的编码帧.我尝试使用以下命令行:
Source video is H264 in an mp4 container, I'm trying to split it into individual encoded frames. I tried with the following command line:
ffmpeg -i "input.mp4" -f image2 "%d.h264"
但这会创建扩展名为"h264"的jpeg,而不是实际的H.264帧.
But that creates jpegs with the extension "h264", rather than actual H.264 frames.
推荐答案
原来正确的命令行是:
ffmpeg -i "inputfile" -f image2 -vcodec copy -bsf h264_mp4toannexb "%d.h264"
这篇关于如何将视频分成单独的编码帧?的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!
查看全文