Opened 13 years ago

Closed 13 years ago

#897 closed defect (fixed)

DTS decoded with centre and LFE channels reversed

Reported by: peter@… Owned by: r_togni@…
Priority: normal Component: ad
Version: HEAD Severity: normal
Keywords: Cc: ulion2002@…
Blocked By: Blocking:
Reproduced by developer: Analyzed by developer:


mplayer reverses the Centre and LFE channels when it decodes DTS streams with libdts (0.0.2-svn-1ubuntu2). I'm on AMD64 Ubuntu Feisty. It's been doing this for a while now, and it still happens with the latest SVN: MPlayer dev-SVN-r24586-4.1.2.

I have a 5.1 speaker setup with analog inputs, where the LFE channel goes through a low-pass filter to the sub. Most dialog is inaudible on dts streams because of this. AC3, AAC, Vorbis (IIRC), and 6-channel WAV files have the correct channel ordering. (I have some test material that has a voice saying "front left", etc.)

I confirmed the channels are just being reversed by plugging headphones into the centre/lfe analog jack, and hearing the centre channel clearly in one ear, and hearing it muted when I used alsamixer to mute the "LFE" channel.

Xine (from the Ubuntu package) gets the channels right with libdts.

mplayer output:
$ mplayer -v -aid 137 -dvd-device TRAINSPOTTING_DISC1_US dvd://
MPlayer dev-SVN-r24586-4.1.2 (C) 2000-2007 MPlayer Team
CPU: Intel(R) Core(TM)2 CPU 6600 @ 2.40GHz (Family: 6, Model: 15, Stepping: 6)
CPUflags: MMX: 1 MMX2: 1 3DNow: 0 3DNow2: 0 SSE: 1 SSE2: 1
Compiled for x86 CPU with extensions: MMX MMX2 SSE SSE2
get_path('codecs.conf') -> '/home/peter/.mplayer/codecs.conf'
Reading /home/peter/.mplayer/codecs.conf: Can't open '/home/peter/.mplayer/codecs.conf': No such file or directory
Reading /usr/local/etc/mplayer/codecs.conf: Can't open '/usr/local/etc/mplayer/codecs.conf': No such file or directory
Using built-in default codecs.conf.
Configuration: --enable-largefiles --disable-dga1 --disable-dga2 --disable-svga --disable-dxr2 --disable-dxr3 --disable-dvb --disable-dvbhea
d --disable-zr --disable-tv --disable-vstream
CommandLine?: '-v' '-aid' '137' '-dvd-device' 'TRAINSPOTTING_DISC1_US' 'dvd://'
get_path('font/font.desc') -> '/home/peter/.mplayer/font/font.desc'
font: can't open file: /home/peter/.mplayer/font/font.desc
font: can't open file: /usr/local/share/mplayer/font/font.desc
Using MMX (with tiny bit MMX2) Optimized OnScreenDisplay?
get_path('fonts') -> '/home/peter/.mplayer/fonts'
Using nanosleep() timing
get_path('input.conf') -> '/home/peter/.mplayer/input.conf'
Parsing input config file /home/peter/.mplayer/input.conf
Input config file /home/peter/.mplayer/input.conf parsed: 8 binds
get_path('.conf') -> '/home/peter/.mplayer/.conf'

Playing dvd://.
get_path('sub/') -> '/home/peter/.mplayer/sub/'
URL: dvd://
Reading disc structure, please wait...
There are 19 titles on this DVD.
There are 21 chapters in this DVD title.
DVD successfully opened.
audio stream: 0 format: ac3 (5.1) language: en aid: 128.
audio stream: 1 format: dts (5.1) language: en aid: 137.
audio stream: 2 format: ac3 (5.1) language: fr aid: 130.
audio stream: 3 format: ac3 (stereo) language: en aid: 131.
number of audio channels on disk: 4.
subtitle ( sid ): 1 language: en
subtitle ( sid ): 3 language: fr
number of subtitles on disk: 2
DVD start cell: 0 pack: 0x0-0x2039
DVD start=0 end=3082652
STREAM: [null] dvd://
STREAM: Description: DVD stream
STREAM: Author:
STREAM: Comment:
CACHE_PRE_INIT: 0 [0] 4702208 pre:169328 eof:0

system stream synced at 0xD (13)!
==> Found video stream: 0
MPEG-PS file format detected.
==> Found subtitle: 0
==> Found subtitle: 1
==> Found subtitle: 2
==> Found subtitle: 3
==> Found audio stream: 128
==> Found audio stream: 137
Searching for sequence header... OK!
VIDEO: MPEG2 720x480 (aspect 3) 29.970 fps 9800.0 kbps (1225.0 kbyte/s)
[V] filefmt:2 fourcc:0x10000002 size:720x480 fps:29.97 ftime:=0.0334
get_path('sub/') -> '/home/peter/.mplayer/sub/'
[gl] using extended formats. Use -vo gl:nomanyfmts if playback fails.
[gl] Using 0 as slice height (0 means image height).
X11 opening display: :0
vo: X11 color mask: FFFFFF (R:FF0000 G:FF00 B:FF)
vo: X11 running at 1680x1050 with depth 24 and 32 bpp (":0" => local display)
[x11] Detected wm supports layers.
[x11] Detected wm supports NetWM.
[x11] Detected wm supports FULLSCREEN state.
[x11] Detected wm supports BELOW state.
[x11] Detected wm supports ABOVE state.
[x11] Current fstype setting honours LAYER FULLSCREEN ABOVE BELOW X atoms
Disabling DPMS
DPMSDisable stat: 1
Opening video decoder: [libmpeg2] MPEG 1/2 Video decoder libmpeg2-v0.4.0b
Selected video codec: [mpeg12] vfm: libmpeg2 (MPEG-1 or 2 (libmpeg2))
Forced audio codec: mad
Opening audio decoder: [libdca] DTS decoding with libdca
dec_audio: Allocating 18726 bytes for input buffer.
dec_audio: Allocating 49152 + 65536 = 114688 bytes for output buffer.
DTS: 5.1 (3f+2r+lfe)
Stream with high frequencies VQ coding
AUDIO: 48000 Hz, 6 ch, s16le, 768.0 kbit/16.67% (ratio: 96000->576000)
Selected audio codec: [dts] afm: libdca (DTS-libdca)
Building audio filter chain for 48000Hz/6ch/s16le -> 0Hz/0ch/??...
[libaf] Adding filter dummy
[dummy] Was reinitialized: 48000Hz/6ch/s16le
[dummy] Was reinitialized: 48000Hz/6ch/s16le
alsa-init: requested format: 48000 Hz, 6 channels, 9
alsa-init: using ALSA 1.0.13
alsa-init: device set to surround51
alsa-init: using device surround51
alsa-init: pcm opened in blocking mode
alsa-init: chunksize set to 1024
alsa-init: fragcount=5
--- END OF CELL !!! ---
DVD next cell: 1 pack: 0x203A-0x30C53
alsa-init: got buffersize=61440
alsa-init: got period size 1024
alsa: 48000 Hz/6 channels/12 bpf/61440 bytes buffer/Signed 16 bit Little Endian
AO: [alsa] 48000Hz 6ch s16le (2 bytes per sample)
AO: Description: ALSA-0.9.x-1.x audio output
AO: Author: Alex Beregszaszi, Zsolt Barat <joy@…>
AO: Comment: under developement
Building audio filter chain for 48000Hz/6ch/s16le -> 48000Hz/6ch/s16le...
[dummy] Was reinitialized: 48000Hz/6ch/s16le
[dummy] Was reinitialized: 48000Hz/6ch/s16le
Starting playback...
==> Found audio stream: 130
==> Found audio stream: 131
VDec: vo config request - 720 x 480 (preferred colorspace: Planar YV12)
[...]vo stuff
* [vo] Allocating mp_image_t, 720x480x12bpp YUV planar, 518400 bytes
get_path('subfont.ttf') -> '/home/peter/.mplayer/subfont.ttf'% 0 0 99%
Unicode font: 255 glyphs.
* [vo] Allocating (slices) mp_image_t, 720x480x12bpp YUV planar, 518400 bytes
A: 0.7 V: 0.7 A-V: 0.020 ct: 0.055 17/ 14 27% 1% 4.1% 0 0 98%
demux_mpg: 24000/1001fps progressive NTSC content detected, switching framerate.
Uninit audio filters... 0.007 ct: 0.087 55/ 52 10% 0% 3.8% 0 0 89%

Change History (1)

comment:1 Changed 13 years ago by ulion2002@…

  • Cc ulion2002@… added
  • Resolution set to fixed
  • Status changed from new to closed

SVN r24721 has a fix of DTS channel order, I think that will fix this bug, please try it. If it not, reopen this bug.

Note: See TracTickets for help on using tickets.