Bug 171955 - Dolby Digital with S/PDIF out
Summary: Dolby Digital with S/PDIF out
Status: REPORTED
Alias: None
Product: Phonon
Classification: Frameworks and Libraries
Component: general (show other bugs)
Version: unspecified
Platform: Compiled Sources Linux
: NOR wishlist
Target Milestone: ---
Assignee: Matthias Kretz
URL:
Keywords:
: 286914 (view as bug list)
Depends on:
Blocks:
 
Reported: 2008-10-01 12:59 UTC by Rosetzky Cedric
Modified: 2013-05-25 20:08 UTC (History)
4 users (show)

See Also:
Latest Commit:
Version Fixed In:


Attachments

Note You need to log in before you can comment on or make changes to this bug.
Description Rosetzky Cedric 2008-10-01 12:59:55 UTC
Version:            (using Devel)
Compiler:          gcc-4.1.2 
OS:                Linux
Installed from:    Compiled sources

I can't have Dolby Digital sound when watching an AC3 movie with Phonon. I seems to have some kind of software downmixing.
Dolby Digital works well with Xine.
Comment 1 Rosetzky Cedric 2008-11-15 04:26:16 UTC
Somebody working on it? I'd like to watch my Dolby Digital movies correctly...
Comment 2 Rosetzky Cedric 2008-12-29 00:37:26 UTC
Still happening... Sounds like nobody cares that an high tech desktop environment isn't even able to playback Dolby Digital streams........
Comment 3 Daniel Boff 2009-05-04 23:44:33 UTC
hi!
not a kde developer, but this might help you (if you havn't already tried), I filed a bug report with something similar (Bug 189033), all you have to do is:

nano .config/kde-org/Phonon-Xine.xine.conf

and add 
audio.output.speaker_arrangement:Pass Through

(assuming that you have a digital decoder, or any kind of reciever)
Comment 4 Rosetzky Cedric 2009-05-05 13:46:01 UTC
Yes, I've seen this recently, but thanks to you anyways.

That being said, passtrough might be activated by default, or Phonon devs should add an option for this. It's a shame that an hi-tech desktop environement like KDE4 doesn't have support for digital passthrough without editing a configuration file by hand.
Comment 5 Myriam Schweingruber 2009-11-08 12:27:10 UTC
Adding this to the wishlist.
Comment 6 Colin Guthrie 2010-12-21 20:01:57 UTC
As far as I'm aware this is not yet (easily) possible with Phonon, but it will be eventually supported.

There is a workaround that I personally use and am happy with (tho' not all users will be) so I've documented it on my blog:
http://colin.guthr.ie/2010/12/bobby-digital-in-5-1-surround/

This basically gives me a permanent 5.1 digital output that can be used by any audio producing application. The App has to take care of decoding the audio to separate PCM streams and then passes it to PA which will reencode it back to a AC3 stream and push it out via S/PDIF to your receiver. It's not perfect but it may make for an acceptable work around until passthrough is more gracefully handled.

Hope that helps.
Comment 7 Rosetzky Cedric 2010-12-21 22:03:19 UTC
Personnaly, I don't need software upmixing with my amplifier. All most S/PDIF users need is a checkbox to enable passthrough.
I am no coder, but I don't think it's really hard to add a checkbox which adds/removes/changes an option to a single config file...
Comment 8 Colin Guthrie 2010-12-21 22:54:33 UTC
That config file refers to one single backend implementation and is in no way generic. There would have to be a way to pass through the information via a standard API of some kind that could be interpreted by all backends so they could act uniformly.

So it's not totally trivial. 

This could be exposed in Xine specific config but as Xine is a dead platform and no one is working on it, I doubt very much it'll receive much attention.
Comment 9 paderman 2012-08-07 21:34:00 UTC
Dolby Digital with S/PDIF out in Kaffeine 1.2.2 doesn't still work :-(
I activated the checkboxes with AC3 and so, and with DVB-S all channels with AC3 support doesn't work, no Dolby Digital with S/PDIF work.
Comment 10 Colin Guthrie 2012-08-08 14:18:39 UTC
@paderman: What checkboxes are you referring to? The ones in pavucontrol perhaps? If so this will only work with PulseAudio clients which use the new API to start streams and AFAIK, only the gstreamer backend with an up-to-date gstreamer install will do this currently (and I'm not even 100% sure this will work via a phonon wrapper - I know raw gstreamer can do it.). Can you confirm what kind of setup you have?

Failing the passthrough support, you can use instead an AC3 encoder setup that I outline here: http://colin.guthr.ie/2010/12/bobby-digital-in-5-1-surround/. This will work for any source and encode it to 5.1 for sending to your receiver. There is also now an equivalent DTS version too which seems to be a bit cleaner in terms of it's implementation. I've been using that latter one for a while with very nice results. It does mean it's decoded and re-encoded which is annoying but if passthrough doesn't work this is the 2nd best option.
Comment 11 Jean-Baptiste Kempf 2013-05-25 20:08:54 UTC
*** Bug 286914 has been marked as a duplicate of this bug. ***