[FFmpeg-devel] [PATCH 09/13] lavc/videotoolboxenc: Add keyframes_only property
Hendrik Leppkes
h.leppkes at gmail.com
Sun Apr 10 09:50:53 CEST 2016
On Sun, Apr 10, 2016 at 6:29 AM, Carl Eugen Hoyos <cehoyos at ag.or.at> wrote:
> Rick Kern <kernrj <at> gmail.com> writes:
>
>> + { "keyframes_only", "Output only I-frames", OFFSET(keyframes_only),
>
> I suspect this should check for -g 1 instead.
>
Indeed, checking avctx->gop_size would make it compatible with other
encoders instead of inventing its own property.
gop_size 0 or 1 should be intra only, I think.
- Hendrik
More information about the ffmpeg-devel
mailing list