[Libav-user] How to set video quality when opening encoder

YIRAN LI mrfun.china at gmail.com
Wed May 15 05:37:04 CEST 2013


Hi friends,

I'm trying to encode using libtheora, I'm able to using command line
argument -q:v 0-10 to set video quality. But I had problem when setting it
in my program.

My code looks like below:

AVDictionary* options = NULL;
av_dict_set(&options, "qscale", "0", 0); // also tried "q:v"
avcodec_open()

but seems encoder can't understand the keys.

Could anyone let me know how to set the video qscale in this case?

Great thanks
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://ffmpeg.org/pipermail/libav-user/attachments/20130515/41cd1f9f/attachment.html>


More information about the Libav-user mailing list