[Libav-user] av_opt_set, x264

Carl Eugen Hoyos cehoyos at ag.or.at
Thu Dec 13 18:10:38 CET 2012


Denis <info at ...> writes:

>     if (pAVStreamVideo->codec->codec_id== CODEC_ID_H264) {
>         qDebug() << "CODEC_ID_H264";
>         av_opt_set(pAVFormatContext->priv_data, "preset", "veryfast", 0);
>         av_opt_set(pAVFormatContext->priv_data, "tune", "zerolatency", 0);
>         av_opt_set(pAVFormatContext->priv_data, "x264opts",
> "no-mbtree:sliced-threads:sync-lookahead=0", 0);
>         }
> 
> Without any effect.

How do you mean "Without any effect"?
I wonder if "priv_data" is the right parameter though, 
shouldn't this be something like "st->codec" ?

Carl Eugen



More information about the Libav-user mailing list