[Libav-user] Using LibX264 with ffmpeg libraries
noahzarc at hotmail.co.uk
Fri Jul 20 21:14:28 CEST 2012
Hey thanks for your solution! Unfortunately this did not work as for some
reason av_opt_set doesn't behave like a global function, as in even if I
include the opt.h header file I still get an error saying "'av_opt_set':
identifier not found".
My project is built under VS2005, and I've cross compiled ffmpeg with MinGW.
Are there any other ways to set crf in priv_data?
Thanks & cheers
Aleksey Shubin wrote
> Hi Noah,
> char *crfString = new char;
> 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 Noah Arc <noahzarc at .co>:
>> Hi all;
>> I've just switched to the newer ffmpeg versions (I always used ffmpeg
>> it is a big jump for me and I'm trying to figure out how to implement
>> of the changes.
>> 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
>> libx264.c as a private variable. But for my project, I'm used to just
>> a value to crf (of a ptr of type AVCodecContext). Could someone please
>> me a hint on how I could implement the API changes?
>> Thank you very much!
>> Libav-user mailing list
> Libav-user mailing list
View this message in context: http://libav-users.943685.n4.nabble.com/Libav-user-Using-LibX264-with-ffmpeg-libraries-tp4655395p4655450.html
Sent from the libav-users mailing list archive at Nabble.com.
More information about the Libav-user