What is joint stereo encoding?
Joint stereo explained: left/right, mid/side and intensity stereo in compressed audio, including LAME MP3 mode selection.
Stereo representations
| Mode | Representation |
|---|---|
| Left/right | Separate left and right signals |
| Mid/side | Sum and difference signals |
| Intensity stereo | Shared spectral information with channel level cues |
An illustrative mid/side transform uses M = (L + R)/2 and S = (L − R)/2. The inverse is L = M + S and R = M − S. Implementations may use different normalisation. A centred signal produces little side energy, which can help an encoder allocate bits efficiently.
Joint stereo and sound quality
A reversible transform is not inherently a loss of stereo separation. In a lossy codec, quantisation and bit allocation can alter the reconstructed channels. Intensity stereo instead represents some spectral regions using shared information and spatial cues, so it is not equivalent to lossless mid/side coding.
MP3 and LAME
LAME joint stereo can switch between ordinary left/right and mid/side coding according to the signal. It does not use intensity stereo in its normal MP3 encoding implementation. Forcing a mode is not inherently better than the encoder’s automatic decision. Other codecs use their own channel-coupling techniques.
Difference from matrix surround
Joint stereo is a compression representation, not a surround encoding standard. An SQ, QS or Dolby Surround recording contains intentional phase and amplitude relationships; lossy encoding may affect those cues. Keep a lossless original when preserving matrix-encoded recordings.
Encoding resources
Specifications and sources
Further reading
Windows playback
Media Player Codec Pack
- MP3 — CW-Lossy / LAV Audio — format support. MPC-HC.
MPC-FFmpeg (Plus x64)
MPC-FFmpeg provides an alternative playback route for the following formats: