<div dir="ltr">Hi friends,<div><br></div><div>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.</div><div>
<br></div><div style>My code looks like below:</div><div style><br></div><div style>AVDictionary* options = NULL;</div><div style>av_dict_set(&options, "qscale", "0", 0); // also tried "q:v"</div>
<div style>avcodec_open() </div><div style><br></div><div style>but seems encoder can't understand the keys.</div><div style><br></div><div style>Could anyone let me know how to set the video qscale in this case?</div>
<div style><br></div><div style>Great thanks</div></div>