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: Stereo and Dual Channel at VBR (Read 4119 times) previous topic - next topic
0 Members and 1 Guest are viewing this topic.

Stereo and Dual Channel at VBR

Hi.

I have a sample with very high stereo separation. I was experimenting with it at different stereo modes.

Default Joint gave me 191 kbps for VBR V2 (LAME 3.99.5), forced Joint gave 290 kbps (which is absolutely explainable), but for Dual Channen I've got a little bit lower bitrate - 186 kbps. And it's very interesting. We have an economy of bitrate for L/R compred to Mid/Side mode (as was shown by forcing M/S) , but also we have an economy for Dual Channel compared to simple stereo, so I can assume that dual channel mode is more optimal for this sample. Am I right? How can you explain reducing of bitrate for -md? AFAIK Dual Channel uses separate bitreservoirs for each channel, but I do not fully understand how could it affect bitrate in VBR mode. Explanation of SS mode says that it can give more bits to one channel if it's content has more complexity, and DC mode encodes with absolutely identical bitrate for both channels. I understand it in terms of CBR encoding, but for VBR, when we have no bitrate limitations... I don't...
🇺🇦 Glory to Ukraine!

Stereo and Dual Channel at VBR

Reply #1
Remember that MP3 has only a reduced set of packet sizes, and that in VBR it just changes from one size to the other to accommodate for the needs.
This is not the same than saying there's no bitrate limitations. As such, what remains constant in dual channel is the amount of bits of each packet that is spent on each channel.
Since dual channel was intended for streams with dual languages (And VBR wasn't even a mode of the first MP3 encoders), and only one would be played at a time, It probably was thought that maintaining the bitrate constant would allow for optimizations on the decoder side (But this is speculation).


As for why in this particular example Dual Channel uses less bitrate than Joint Stereo... Well... A simple look a the output of the commandline can explain it:
Code: [Select]
   kbps        LR    MS  %     long switch short %
-V2  (-mj)
  193.2       94.8   5.2        85.9   6.5   7.5
-V2 -md
  188.0      100.0              92.9   3.4   3.7
-V2 -ms
  193.5      100.0              86.1   6.5   7.5
-V2 -mf
  294.1            100.0        85.9   6.5   7.5


It uses more long blocks (more efficient). Why does it consider that it should use them, and has an effect on the quality? A detailed inspection (plus ABX test) would be needed to answer that.

Stereo and Dual Channel at VBR

Reply #2
Forced stereo still allows distributing the bits unequally so if one channel needs more bits it can get more than half of the bits when needed.

Dual channel is strictly two 160 kbit maximum streams, so sometimes one channel needs more but doesn't get it, making the average bitrate lower.

Stereo and Dual Channel at VBR

Reply #3
Unlike the stereo modes, dual channel mono allows to use bock switching independantly on each channel. This may result in lower bitrates, but IIRC there were a number of test samples showing audible artefacts when playing both mono channels at the same time.

Stereo and Dual Channel at VBR

Reply #4
Unfortunately -d option is disabled so it's not possible to test simple stereo (-m s) with independent block switching.

Stereo and Dual Channel at VBR

Reply #5
Dual channel is strictly two 160 kbit maximum streams, so sometimes one channel needs more but doesn't get it, making the average bitrate lower.

For any given frame, if one channel used 160 kbits then that frame was encoded at 320 kbit, or am I missing something?

Stereo and Dual Channel at VBR

Reply #6
Forced stereo still allows distributing the bits unequally so if one channel needs more bits it can get more than half of the bits when needed.

Dual channel is strictly two 160 kbit maximum streams, so sometimes one channel needs more but doesn't get it, making the average bitrate lower.

There's not such a constrain for dual channel mode, not that I remember.

Stereo and Dual Channel at VBR

Reply #7
Forced stereo still allows distributing the bits unequally so if one channel needs more bits it can get more than half of the bits when needed.

Dual channel is strictly two 160 kbit maximum streams, so sometimes one channel needs more but doesn't get it, making the average bitrate lower.

There's not such a constrain for dual channel mode, not that I remember.

I stand corrected.