Dolby PL II surround center channel issue

Archive of historical bug reports.
Please use the GitHub link above to report issues.
Forum rules
*******************************
Please be aware we are now using GitHub for issue tracking and feature requests.
- This section of the forum is now closed to new topics.

*******************************
Post Reply
Lostless
Bright Spark User
Posts: 155
Joined: Thu May 24, 2007 7:55 pm

Dolby PL II surround center channel issue

Post by Lostless »

Ive noticed in the recent version of handbrake, because my older encodes do not have this issue, that when converting a 5.1 source to DPLII that surround "center" gets moved to the right channel when there is a main center channel sound playing. Its like the matrix surround is not encoding properly and when playing back on a stereo system/headphones, vocals/anything in the center of the in the background music/sound effects gets moved to the right channel when people are talking. Stuff that would normally be in the left and right stay in the left and right. Playing the original MKV in VLC keeps all the background sound effects and music vocals in place.

http://pastebin.com/Mm4BJ7wm

Thats on of the encodes where i noticed the issue. Where it was really noticeable is in the ending where a song comes up and the vocals of the background music come up in the center. When the chorus comes up, the movie has people laughing from the main center channel, and the music vocals/some instruments suddenly get shifted the right channel. Also during the entire movie, the background music and ambiance was focused usually towards the right, but not that noticeable, because it only happens when the main center channel is being used.

For now i will just encode with stereo as it does not exhibit this issue.
Deleted User 13735

Re: Dolby PL II surround center channel issue

Post by Deleted User 13735 »

I've noticed this in other apps when the original Dolby Digital 5.1 was noncompliant -- iow the 90 deg. phase shift to conform the mixdown for PLII playback didn't get applied and as a result the balance got shifted to the right.
I have absolutely no idea if this has any bearing on your issue, perhaps indirectly at best.
Lostless
Bright Spark User
Posts: 155
Joined: Thu May 24, 2007 7:55 pm

Re: Dolby PL II surround center channel issue

Post by Lostless »

I think the issue you found is indirectly realted. Ran the original MKV with the 5.1 DTS (also had the problem with files that used Dolby digital as well) through MplayerX, and its mix down to stereo exhibited the exact same issue with the center surround shifted to the right with the main center playing. VLC doesn't do that. I think (may be wrong) MplayerX uses similar or the same open source libraries to decode video/audio that handbrake uses. VLC is on its own and uses its own libraries (i think). So it may be an issue that exists beyond handbrakes control and is a problem with the open source decoders that handbrake is built on.

Did a new test and the Dolby Surround down mix has the issue as well. Did another in stereo and no issue, but it does feel I lose some surround feel to the audio. No big loss as I mainly use 2.0 speakers most my time.
Deleted User 13735

Re: Dolby PL II surround center channel issue

Post by Deleted User 13735 »

The libraries are essentially the same.
A guess is that your DTS 5.1 doesn't use the phase shift flag, as would a Dolby 5.1 decoder. Run the native 5.1 or stereo. ProLogic is generally horrible at best.
Deleted User 11865

Re: Dolby PL II surround center channel issue

Post by Deleted User 11865 »

musicvid wrote:The libraries are essentially the same.
Not really. We use libavcodec and libavresample for pretty much everything now, whereas VLC still uses liba52 and maybe even libdca, which have their own built-in downmix code…

As for this issue, I believe it mostly happens when there is a strong correlation between the left and right surround channels. We decided to not revert to how liba52 and libdca do their downmixes because while it happens to alleviate this issue, it's technically incorrect.
Lostless
Bright Spark User
Posts: 155
Joined: Thu May 24, 2007 7:55 pm

Re: Dolby PL II surround center channel issue

Post by Lostless »

As for this issue, I believe it mostly happens when there is a strong correlation between the left and right surround channels. We decided to not revert to how liba52 and libdca do their downmixes because while it happens to alleviate this issue, it's technically incorrect.
What is more correct? My Tv does not down mix 5.1 to 2.0 the that handbrake is with its pro logic. It down mixes the way that the "stereo" output does on handbrake. While it might be technically correct, its not correct in its intentional output. Center should not be shifted right.
Ill just use stereo from now on, because I don't know if i'm going to get the odd output or not on my rips.
Post Reply