[Libav-user] Using LibX264 with ffmpeg libraries

Nicolas George nicolas.george at normalesup.org
Mon Jul 23 22:14:22 CEST 2012


Le sextidi 6 thermidor, an CCXX, noahzarc a écrit :
> Apologies for top posting, it's my very first time using a mailing list.

No problem, you fixed it.

> Apologies, it's my very first time using a mailing list. Would this be the
> correct way of setting priv_data?
> 
> AVDictionary *outputDictionary;
> av_dict_set(&outputDictionary, "crf", "0", AV_DICT_APPEND);
> avcodec_open2(outputCodecCtx, codec, &outputDictionary);

You would probably make sure you init outputDictionary to NULL before doing
anything on it. And AV_DICT_APPEND is not necessary here and may be harmful
under some circumstances, but yes, this is the gist of it.

Regards,

-- 
  Nicolas GEorge
-------------- next part --------------
A non-text attachment was scrubbed...
Name: not available
Type: application/pgp-signature
Size: 198 bytes
Desc: Digital signature
URL: <http://ffmpeg.org/pipermail/libav-user/attachments/20120723/0f549e11/attachment.asc>


More information about the Libav-user mailing list