.n4.nabble.com/Libav-user-Using-LibX264-with-ffmpeg-libraries-tp4655395p4655467.html
Sent from the libav-users mailing list archive at Nabble.com.
___
Libav-user mailing list
Libav-user@ffmpeg.org
http://ffmpeg.org/mailman/listinfo/libav-user
.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
Libav-user@ffmpeg.org
http://ffmpeg.org/mailman/listinfo/libav-user
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
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
Hi Noah,
char *crfString = new char[50];
sprintf_s(crfString, 50, %f, crf);
av_opt_set(codecContext-priv_data, crf, crfString, 0);
Don't sure if it is the best way (to convert to string first) but I
didn't find a variant of av_opt_set for floating point values, and at
least it works.
2012/7/12