GNOME Bugzilla – Bug 400555
dts-in-wav: only 2 channel recognised
Last modified: 2007-04-12 11:14:04 UTC
+++ This bug was initially created as a clone of Bug #398196 +++ Please describe the problem: Rhythmbox doesn't recognise multichannel files (like: 5.1 mp3, 5.1 mp4-aac, 5.1 dts-wav, 5.1 ac3), and if it does (for example 5.1-mp3) than it isn't playable or only in stereo. DTS sample files: http://www.sr.se/cgi-bin/mall/index.asp?programid=2445 Steps to reproduce: 1. Download sample file 2. Open Rhythmbox 3. Import sample file 4. Play sample file Actual results: By most of them (especially mp4), rhythmbox gives an error at import for not recognising the filetype. Otherwise You hear noises, nothing or the file is playing in stereo only. Expected results: Always play the file and an option to playing it in stereo or multichannel (one could be default). Does this happen every time? Yes, it happens every time. Other information: I would like to see an option (like in vlc for example) for how may channels i would like to listen (1.0 mono, 2.0 stereo, 2.1, 4.0, 4.1, 5.0, 5.1 multichannel). The default playback channel could be recognised from the file (5.1 files at 5.1 channels) or always stereo (downmix), but add an option to listen the multichannel file in multichannel surround. Most of the files can be played in vlc or mplayer with full multichannel surround.
In gst/plugins-bad/ext/dts/gstdtsdec.c:542, there is set to stereo forced. I've copied channel negotiation code from a52dec element, and it works well. I'll attach.
Created attachment 83217 [details] [review] add channel negotiation in dtsdec
Patch by: Young-Ho Cha <ganadist at chollian net> * ext/dts/gstdtsdec.c: (gst_dtsdec_handle_frame), (gst_dtsdec_change_state): Don't do forced downmixing to stereo, but check what downstream can do and let libdts do the downmixing based on that (#400555).