[Vorbis-dev] vorbis quality - quality scale vs bitrate

Gunter Königsmann gunter at peterpall.de
Mon Nov 27 06:27:54 UTC 2017


Additionally: do you really need exactly this amounts of bits in every second? Or is the file length more important? In that case you can specify an average bitrate and the codec might save bits when there is silence and no movement for times there is much complexity that requires many bits to explain.

Am 27. November 2017 01:55:25 MEZ schrieb Tuomo Latto <djv at iki.fi>:
>On 27.11.2017 02:00, YIRAN LI wrote:
>> I'm using libvorbis in my program and need to encode to target
>bitrate. I
>> know libvorbis prefer to use quality scale but I can't use it.
>> 
>> I've found something at faq  http://vorbis.com/faq/#quality
>> 
>> *For now, quality 0 is roughly equivalent to 64kbps average, 5 is
>roughly
>> 160kbps, and 10 gives about 400kbps. Most people seeking
>> very-near-CD-quality audio encode at a quality of 5 or, for lossless
>stereo
>> coupling, 6. The default setting is quality 3, which at approximately
>> 110kbps gives a smaller filesize and significantly better fidelity
>than
>> .mp3 compression at 128kbps.*
>> 
>> so 0 == 64kbps
>>     3 == 110kbps
>>     5 == 160kbps
>>     10 == 400kbps
>> 
>> Could anyone give me a complete mapping from quality to bitrate ?
>
>It doesn't really work that way. Those are about right nominally
>(and I know 6 == 192kbps), but in practice they tend to produce
>slightly larger bitrates. The bitrates vary quite a bit, since
>quality implies VBR or ABR. For example, with q 6 you might
>get an average bitrate anywhere from 180 to 220 kbps with
>significantly more variation within the encoded file.
>(And, of course, quality is not limited to integer values.)
>
>It might be a good idea to start by looking at oggenc command-line
>arguments to get an idea of what you need to for CBR encoding.
>You at least need to use bitrate management and set the minimum
>and maximum bitrates, I think. AFAIK oggenc is essentially just
>a fairly straightforward mapping from command-line to libvorbis,
>so its source is probably a good place to see how it's done.
>
>
>-- 
>Tuomo
>
>---
>This email has been checked for viruses by Avast antivirus software.
>https://www.avast.com/antivirus
>
>_______________________________________________
>Vorbis-dev mailing list
>Vorbis-dev at xiph.org
>http://lists.xiph.org/mailman/listinfo/vorbis-dev

-- 
Diese Nachricht wurde von meinem Android-Gerät mit K-9 Mail gesendet.
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://lists.xiph.org/pipermail/vorbis-dev/attachments/20171127/3d28d14c/attachment.html>


More information about the Vorbis-dev mailing list