Another codec tip: if you're encoding with opus, especially with libopus, at low-mid bitrates (96k or so, the default), use --no-phase-inv (apply_phase_inv=0 in ffmpeg libopusenc).
-
Show this thread
-
This is an encoding feature which fakes stereo width by putting both channels out of phase for certain bands. Saves some bits, sounds fine... ... until you downmix to mono. Then we're back in crappy MP3 land, as entire frequency bands appear and disappear randomly.
2 replies 0 retweets 9 likesShow this thread -
Replying to @marcan42
IIUC from what you're saying, the feature itself isn't bad per-se, it's just all decoders that downmix to mono don't do it correctly so it's easier to turn it off? Is it only a problem with a mono source going to stereo and back again, or can come up in other places?
1 reply 0 retweets 0 likes -
Replying to @adammw
Take a stereo song, downmix it to mono, it sound good. Take the song, encode it to Opus, decode it in stereo, downmix it to mono, it sounds bad. The Opus guys say you're supposed to let the Opus decoder do the downmixing for you to avoid this problem, but that's not practical.
1 reply 0 retweets 0 likes -
So the feature is bad because it breaks a property of the audio called mono compatibility. And saying the decoder can fix it if you ask it to is not good, because you can't know ahead of time that the audio will be downmixed later in most practical use cases.
1 reply 0 retweets 0 likes -
Replying to @marcan42
Fair enough. I'm curious what professional stereo mixes do differently to ensure compatibility with mono that the algorithm doesn't? Does it change the signal average?
1 reply 0 retweets 0 likes -
Replying to @adammw
The thing is a stereo mix is *consistent* in its mono compatibility. Some instruments will be louder or quieter in the mono downmix, but it's always the same. Good mixes will engineer with this in mind to keep things sounding good and balanced in mono.
1 reply 0 retweets 0 likes -
Bad mixes won't, but at least they'll be consistent. So the balance may be out of whack, and then it sounds like a bad mix, but still "normal". However, the encoder messes with this property on whole frequency bands, and turns it on and off in time as it sees fit.
1 reply 0 retweets 0 likes
So it doesn't sound like a good or a bad mix, it sounds like a madman is turning low-pass or band-cut filters on and off randomly.
-
-
At 96k bitrates/20ms frames, it only affects the 12kHz and onwards band, so it sounds like your audio quality is going down from 48kHz to 24kHz randomly. At lower bitrates, or lower frame sizes due to that bug I found, it affects more bands and ends up sounding like a bad MP3.
0 replies 0 retweets 0 likesThanks. Twitter will use this to make your timeline better. UndoUndo
-
Loading seems to be taking a while.
Twitter may be over capacity or experiencing a momentary hiccup. Try again or visit Twitter Status for more information.