Find centralized, trusted content and collaborate around the technologies you use most.
Teams
Q&A for work
Connect and share knowledge within a single location that is structured and easy to search.
我有一个 .y4m 视频文件,我想使用 FFmpeg 将其转换为 .mp4。问题是我想要某种 GOP,这个:IBBPBBPBBPBB. 但是,当我将 GOP 大小设置为 12 ( -g 12) 时,我得到的是IPPPPPPPPPPP. 我也尝试过使用该-bf 8选项,但我得到了 IPBBB 之类的结果......并且视频播放不正确。
IBBPBBPBBPBB
-g 12
IPPPPPPPPPPP
-bf 8
你能告诉我如何IBBPBBPBBPBB使用 FFmpeg 获得确切的 GOP 吗?
谢谢你的帮助
我想你想要一些效果:
-g 12 -bf 2 sgop
该-g标志设置 GOP 大小(正如您已经提到的),-bf 2表示应在每组 P 帧之间插入 2 个 B 帧,并且sgop严格执行 GOP 大小。
-g
-bf 2
sgop