[FFmpeg-user] What is the usage for -cgop/+cgop and -g options.

Hongyi Zhao hongyi.zhao at gmail.com
Wed Jan 27 10:26:15 EET 2021

On Wed, Jan 27, 2021 at 10:52 AM pdr0 <pdr0 at shaw.ca> wrote:
> Hongyi Zhao wrote
> > I noticed there are -cgop/+cgop and -g options used by ffmpeg. But I
> > really can't figure out the usage of them. Any hints will be highly
> > appreciated.
> -g is the maximum gop length (the maximum keyframe interval) . Some
> codecs/settings have adaptive GOP and I frame placement, but it will never
> exceed that value

I've tried to search through the whole source code repo and still
can't find any definitive explanation about this parameter.

> cgop is for specifying closed GOP

Same for this one.

Assoc. Prof. Hongyi Zhao <hongyi.zhao at gmail.com>
Theory and Simulation of Materials
Hebei Polytechnic University of Science and Technology engineering
NO. 552 North Gangtie Road, Xingtai, China

More information about the ffmpeg-user mailing list