How to set Maximum keyframe interval (frames) for libvpx-vp9

256 views
Skip to first unread message

rohit khali

unread,
Feb 3, 2022, 2:37:37 PM2/3/22
to webm-d...@webmproject.org
I tried to use the below option in code using FFmpeg APIs however getting AVERROR_OPTION_NOT_FOUND error.

Any idea, How can I set max keyframe interval for vp9 encoding? 
av_opt_set(c->priv_data, "kf-max-dist", "240", 0)
av_opt_set(c->priv_data, "g", "240", 0)

Thanks,
ROhit Khali

James Zern

unread,
Feb 3, 2022, 2:43:09 PM2/3/22
to WebM Discussion
Hi,

This is set with gop_size [1]. The mapping to libvpx options is also documented [2].

 

Thanks,
ROhit Khali

--
You received this message because you are subscribed to the Google Groups "WebM Discussion" group.
To unsubscribe from this group and stop receiving emails from it, send an email to webm-discuss...@webmproject.org.
To view this discussion on the web visit https://groups.google.com/a/webmproject.org/d/msgid/webm-discuss/CADSHSO9MipQiE419xxN%3DHkA5aNy4obHNmQRPh229TkJ44Pp-9g%40mail.gmail.com.
Reply all
Reply to author
Forward
0 new messages