[Libav-user] Need help in setting vp9 encoding options from FFmpeg

Strahinja Radman dr.strashni at gmail.com
Fri Feb 4 15:17:10 EET 2022


On Thu, Feb 3, 2022 at 9:02 AM rohit khali <khali.rohit at gmail.com> wrote:

> Hi,
> I am getting "AVERROR_OPTION_NOT_FOUND" for all below mentioned options.
>
> av_opt_set(c->priv_data, "g", "240", 0) // Maximum keyframe interval
> (frames)
> av_opt_set(c->priv_data, "vb", "400000", 0) // target bitrate
> av_opt_set(c->priv_data, "minrate", "400000", 0)
> av_opt_set(c->priv_data, "maxrate", "400000", 0)
> av_opt_set(c->priv_data, "bt", "400000", 0)
> av_opt_set(c->priv_data, "threads", "4", 0)
> av_opt_set(c->priv_data, "slices", "2", 0)
>
> Any idea, how can I set the above mentioned vp9 encoding options in FFmpeg?
> https://ffmpeg.org/ffmpeg-codecs.html#Options-29 shows above options as
> private data options.
>
> Thanks,
> Rohit Khali
> _______________________________________________
> Libav-user mailing list
> Libav-user at ffmpeg.org
> https://ffmpeg.org/mailman/listinfo/libav-user
>
> To unsubscribe, visit link above, or email
> libav-user-request at ffmpeg.org with subject "unsubscribe".
>

Hello,

Try setting it to

av_opt_set(c, "g", "240", 0),

so replace "c->priv_data" with just "c"

-- 

Regards
Strahinja Radman
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <https://ffmpeg.org/pipermail/libav-user/attachments/20220204/b554e320/attachment.htm>


More information about the Libav-user mailing list