actionscript-3 - 了解视频中的 GOP 大小(i 帧/p 帧比率)是多少

标签 actionscript-3 ffmpeg video-encoding codec mencoder

我正在用 ActionScript 中的视频做东西,我需要寻找一个视频来确定帧。根据引用资料,使用 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上,我不关心要使用的工具(也许一些ffmpeg/mencoder调用应该是完美的),有什么建议吗?

最佳答案

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

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

这应该会产生很高的关键帧数。

希望这可以帮助。

关于actionscript-3 - 了解视频中的 GOP 大小(i 帧/p 帧比率)是多少,我们在Stack Overflow上找到一个类似的问题: https://stackoverflow.com/questions/10372094/

相关文章:

actionscript-3 - Adobe 动画碰撞

android - 在 OSX 上为 Android 编译 ffmpeg

php - 如何停止 ffmpeg 写入日志命令行字符串

video - 在特定时间准确剪切视频而不会降低质量

c - 如何为实时流媒体编码视频文件并通过 UDP 数据报传送

actionscript-3 - 如何使用 Adob​​e Air 下载和解压 .ZIP 文件夹?

javascript - Flash 在页面加载时处于事件状态

actionscript-3 - 在 Flash 中的组件的 ActionScript 3 中使用动态数组填充可检查列表

windows - ffmpeg 和 ffprobe 嵌套延迟扩展变量

ffmpeg - 如何从 Raspberry Pi 上的 Action 中获取 .mp4 视频?