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

Hongyi Zhao hongyi.zhao at gmail.com
Fri Jan 29 06:00:52 EET 2021


On Fri, Jan 29, 2021 at 11:27 AM "zhilizhao(赵志立)"
<quinkblack at foxmail.com> wrote:
>
>
>
> > On Jan 27, 2021, at 4:26 PM, Hongyi Zhao <hongyi.zhao at gmail.com> wrote:
> >
> > 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.
>
> Use `ffmpeg -h full` for quick reference.
>
> For source code, ref. libavcodec//options_table.h

Wonderful notes/hints, thanks a lot.

Best regards,
HY

>
> >
> >> cgop is for specifying closed GOP
> >
> > Same for this one.
> >
> > Best
> > --
> > 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
> > _______________________________________________
> > ffmpeg-user mailing list
> > ffmpeg-user at ffmpeg.org
> > https://ffmpeg.org/mailman/listinfo/ffmpeg-user
> >
> > To unsubscribe, visit link above, or email
> > ffmpeg-user-request at ffmpeg.org with subject "unsubscribe".
>
> _______________________________________________
> ffmpeg-user mailing list
> ffmpeg-user at ffmpeg.org
> https://ffmpeg.org/mailman/listinfo/ffmpeg-user
>
> To unsubscribe, visit link above, or email
> ffmpeg-user-request at ffmpeg.org with subject "unsubscribe".



-- 
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