<div dir="ltr">Hi Guys,<div><br></div><div>I'm trying encoding ogg video with native experimental vorbis encoder. While documentation here says the max qscale is 10 for vorbis audio, and default is 6, <a href="http://ffmpeg.org/trac/ffmpeg/wiki/TheoraVorbisEncodingGuide">http://ffmpeg.org/trac/ffmpeg/wiki/TheoraVorbisEncodingGuide</a></div>
<div style><br></div><div style>But I found that even if I pass 150 to -qscale:a I still can get files with larger size than -qscale:10 (I keep same qscale for video, so I assume the size increment is caused by audio part).</div>
<div style><br></div><div style>and the code fragment for vorbis quality is here</div><div style><br></div><div style><div>    avccontext->bit_rate = 0;</div><div>    if (avccontext->flags & CODEC_FLAG_QSCALE)</div>
<div>        venc->quality = avccontext->global_quality / (float)FF_QP2LAMBDA;</div><div>    else</div><div>        venc->quality = 8;</div><div>    venc->quality *= venc->quality;</div><div><br></div><div>
<br></div></div><div style>So could anyone tell me what's the maximum value I can set AVCodecCtx->global_quality for Vorbis encoder?</div><div style><br></div><div style>Great thanks!</div></div>