了解视频中的GOP大小(i帧/ p帧比)

时间:2012-04-29 12:21:40

标签: actionscript-3 ffmpeg video-encoding codec mencoder

我正在使用视频动作脚本做的事情,我需要寻找一个视频来确定帧。根据参考文献,使用NetStream.seek,我只能搜索最近的k帧:

Seeks the keyframe (also called an I-frame in the video industry) closest to the specified location. The keyframe is placed at an offset, in seconds, from the beginning of the stream.

Video streams are usually encoded with two types of frames, keyframes (or I-frames) and P-frames. A keyframe contains an entire image, while a P-frame is an interim frame that provides additional video information between keyframes. A video stream typically has a keyframe every 10-50 frames.

所以我需要了解以.f4v格式编码的视频中有多少p帧和i帧。

我在mac和ubuntu上,我不关心使用的工具(mayebe有些ffmpeg / mencoder调用应该是完美的),有什么建议吗?

1 个答案:

答案 0 :(得分:0)

如果您使用的是Adobe Media Encoder,则可以在视频选项卡/高级设置下设置自定义预设。

检查设置关键帧距离 然后将其设置为1帧

这应该会产生一个高关键帧数。

希望这会有所帮助。

相关问题