Nicolas George-2 wrote > > Le quartidi 24 messidor, an CCXX, Noah Arc a écrit : >> In the past, libx264 variables such as crf was a part of AVCodecContext. >> However, looks like in version 0.11 it has been deprecated and was moved >> to libx264.c as a private variable. But for my project, I'm used to just >> assign a value to crf (of a ptr of type AVCodecContext). Could someone >> please give me a hint on how I could implement the API changes? > > You are supposed to pass the options as the third argument to > avcodec_open2. > There is an example in the documentation of the function. > > Please refrain from top-posting on this mailing list; and if you did not > understand what it means, look it up. > > Regards, > > -- > Nicolas George > > _______________________________________________ > Libav-user mailing list > Libav-user@ > http://ffmpeg.org/mailman/listinfo/libav-user >
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); Thanks -- View this message in context: http://libav-users.943685.n4.nabble.com/Libav-user-Using-LibX264-with-ffmpeg-libraries-tp4655395p4655472.html Sent from the libav-users mailing list archive at Nabble.com. _______________________________________________ Libav-user mailing list [email protected] http://ffmpeg.org/mailman/listinfo/libav-user
