Skip to main content

Notice

Please note that most of the software linked on this forum is likely to be safe to use. If you are unsure, feel free to ask in the relevant topics, or send a private message to an administrator or moderator. To help curb the problems of false positives, or in the event that you do find actual malware, you can contribute through the article linked here.
Topic: No Difference Between -q 0 and -q4 Using LAME VBR? (Read 2491 times) previous topic - next topic
0 Members and 1 Guest are viewing this topic.

No Difference Between -q 0 and -q4 Using LAME VBR?

TL;DR: Is there any difference between `-q 0` and `-q 4` when using LAME VBR?

The LAME documentation says:
Code: [Select]
For the default VBR mode since LAME 3.98, the following table applies.

-q 0 to -q 4    include all features of the other modes and additionally use
the best search when applying Huffman coding.
-q 5 and -q 6   include all features of -q7, calculate and consider actual
quantisation noise, and additionally enable subblock gain.
-q 7 to -q 9    This level uses a psymodel but does not calculate quantisation
noise when encoding: it takes a quick guess.
         
Does that mean there is no difference between `-q 0` and `-q 4` when using VBR? LAME does the exact same thing for any `-q` value between `0` and `4`?

Or, are there still gradations of quality between `-q 0` and `-q 4` when using VBR?

Thanks

 

Re: No Difference Between -q 0 and -q4 Using LAME VBR?

Reply #1
Not sure, but if you try it, does it produce identical files or not? (do they decode to exactly the same data?)
a fan of AutoEq + Meier Crossfeed

Re: No Difference Between -q 0 and -q4 Using LAME VBR?

Reply #2
Not sure, but if you try it, does it produce identical files or not? (do they decode to exactly the same data?)
Thanks for the idea. I encoded the same file with `-q 0`, `-q 4`, and `-q 5` then I checked the file sizes. The `-q 0` and `-q 4` had the exact same number of bytes (down to the byte). I ran MD5 on both of them and the results were identical.

The `-q 5` file was a little larger and the MD5 hash was different. So it appears setting `-q` to any value between 0 and 4 does produce the same result when using VBR mode.

I did find it strange that the `-q 5` file was larger. It was only a difference of about 46KB, but I figured setting `-q` to a lower quality setting (higher number) would produce a slightly smaller file.

Thanks

Re: No Difference Between -q 0 and -q4 Using LAME VBR?

Reply #3
The only difference between -q 0-4 and the next higher setting level, is a stronger Huffman encoder. The difference is lossless when it comes to the compressed audio itself. It's the difference between using level 5 and level 9 with a ZIP compressor. More efficient compression, but no effect on the underlying data, it just takes longer to compress.

Re: No Difference Between -q 0 and -q4 Using LAME VBR?

Reply #4
For --vbr-new and default vbr since lame 3.98:

-q9..7 or -f are identical= noise shaping 0, but still uses the psymodel

-q6..5 are identical. Use psymodel + noise shaping

-q4..0 are identical. Use psymodel + noise shaping + more precisions


Re: No Difference Between -q 0 and -q4 Using LAME VBR?

Reply #5
Thanks for all the info!