[MPlayer-users] dts audio CD playback (-ac dtscd) with a52 CRC errors

tech at lsweb.de tech at lsweb.de
Fri Mar 31 18:30:00 CEST 2006


> On Wednesday, 29 March 2006 at 17:48, Lars Steinke wrote:
> > Fair enough - I found mention of that -ac dtscd on this mailing list,
> > so that must be code that obviously didn't make it into cvs...
> > Irrespectively, there then is the issue why "mplayer -rawaudio
> > on:format=0x2001 cdda://1" doesn't properly switch to dts?
> 
> I don't know. Show full -v output of that command, please.
> I vaguely remember someone giving a recipe for playing DTS from
> CD audio, but I don't remember any keywords.

There you go (I upgraded to Ubuntu's latest package, indeed -ac dtscd is
no longer in there...) - the problem seems to me, that MPlayer switches
to AC3 ("hwac3: switched to AC3, 56000 bps, 48000 Hz") even though we
enforce dts by "-ac hwdts" and "-rawaudio format=0x2001":

MPlayer 2:0.99+1.0pre7try2+cvs20060117-0ubuntu6 (C) 2000-2006 MPlayer
Team
CPU: Advanced Micro Devices Duron/Athlon 4/MP/XP Palomino (Family: 6,
Stepping: 2)
CPUflags:  MMX: 1 MMX2: 1 3DNow: 1 3DNow2: 1 SSE: 1 SSE2: 0
Compiled with runtime CPU detection.


get_path('codecs.conf') -> '/home/lss/.mplayer/codecs.conf'
Reading /home/lss/.mplayer/codecs.conf: Can't open
'/home/lss/.mplayer/codecs.conf': No such file or directory
Reading /etc/mplayer/codecs.conf: 91 audio & 204 video codecs
CommandLine: '-v' '-ac' 'hwdts' '-rawaudio' 'format=0x2001' 'cdda://1'
init_freetype
get_path('font/font.desc') -> '/home/lss/.mplayer/font/font.desc'
Font /home/lss/.mplayer/font/font.desc loaded successfully! (206 chars)
Using MMX (with tiny bit MMX2) Optimized OnScreenDisplay
Using Linux hardware RTC timing (1024Hz).
get_path('input.conf') -> '/home/lss/.mplayer/input.conf'
Can't open input config file /home/lss/.mplayer/input.conf: No such file
or directory
Parsing input config file /etc/mplayer/input.conf
Input config file /etc/mplayer/input.conf parsed: 59 binds
Opening joystick device /dev/input/js0
Can't open joystick device /dev/input/js0: No such file or directory
Can't init input joystick
Setting up LIRC support...
mplayer: could not connect to socket
mplayer: No such file or directory
Failed to open LIRC support.
You will not be able to use your remote control.
get_path('1.conf') -> '/home/lss/.mplayer/1.conf'
Playing cdda://1.
get_path('sub/') -> '/home/lss/.mplayer/sub/'
Found audio CD with 11 tracks.
STREAM: [cdda] cdda://1
STREAM: Description: CDDA
STREAM: Author: Albeu
STREAM: Comment:

Track 1
==> Found audio stream: 0
==========================================================================
Forced audio codec: hwdts
Opening audio decoder: [hwac3] AC3/DTS pass-through S/PDIF
dec_audio: Allocating 8192 bytes for input buffer.
dec_audio: Allocating 16384 + 65536 = 81920 bytes for output buffer.
No accelerated IMDCT transform found
hwac3: switched to AC3, 56000 bps, 48000 Hz
a52: CRC check failed!
AUDIO: 48000 Hz, 2 ch, ac3, 56.0 kbit/3.65% (ratio: 7000->192000)
Selected audio codec: [hwdts] afm: hwac3 (DTS through S/PDIF)
==========================================================================
Building audio filter chain for 48000Hz/2ch/ac3 -> 0Hz/0ch/??...
[libaf] Adding filter dummy
[dummy] Was reinitialized: 48000Hz/2ch/ac3
[dummy] Was reinitialized: 48000Hz/2ch/ac3
alsa-init: requested format: 48000 Hz, 2 channels, 100
alsa-init: compiled for ALSA-1.0.10
alsa-spdif-init: playing AC3, 2 channels
alsa-init: 1 soundcard found, using: spdif
alsa-init: pcm opend in block-mode
alsa-init: chunksize set to 512
alsa-init: fragcount=16
alsa-init: got buffersize=32768
alsa: 48000 Hz/2 channels/4 bpf/32768 bytes buffer/Signed 16 bit Little
Endian
AO: [alsa] 48000Hz 2ch ac3 (1 bytes per sample)
AO: Description: ALSA-0.9.x-1.x audio output
AO: Author: Alex Beregszaszi, Zsolt Barat <joy at streamminister.de>
AO: Comment: under developement
Building audio filter chain for 48000Hz/2ch/ac3 -> 48000Hz/2ch/ac3...
[dummy] Was reinitialized: 48000Hz/2ch/ac3
[dummy] Was reinitialized: 48000Hz/2ch/ac3
Video: no video
Freeing 0 unused video chunks.
Starting playback...
alsa-space: free space = 32768, prepared --
a52: CRC check failed!
a52: CRC check failed!
a52: CRC check failed!
a52: CRC check failed!
a52: CRC check failed!
a52: CRC check failed!  .0 (19:21:18.0) ??,?%
alsa-play: xrun of at least 192.590 msecs. resetting stream
a52: CRC check failed!  5 (41:28.5) ??,?%
a52: CRC check failed!

Retested a dts DVD and it still works - note the crucial line for
comparison "hwac3: switched to DTS, 1536000 bps, 48000 Hz":

MPlayer 2:0.99+1.0pre7try2+cvs20060117-0ubuntu6 (C) 2000-2006 MPlayer
Team
CPU: Advanced Micro Devices Duron/Athlon 4/MP/XP Palomino (Family: 6,
Stepping: 2)
CPUflags:  MMX: 1 MMX2: 1 3DNow: 1 3DNow2: 1 SSE: 1 SSE2: 0
Compiled with runtime CPU detection.


get_path('codecs.conf') -> '/home/lss/.mplayer/codecs.conf'
Reading /home/lss/.mplayer/codecs.conf: Can't open
'/home/lss/.mplayer/codecs.conf': No such file or directory
Reading /etc/mplayer/codecs.conf: 91 audio & 204 video codecs
CommandLine: '-v' '-vo' 'null' '-ac' 'hwdts' '-aid' '136' 'dvd://1'
init_freetype
get_path('font/font.desc') -> '/home/lss/.mplayer/font/font.desc'
Font /home/lss/.mplayer/font/font.desc loaded successfully! (206 chars)
Using MMX (with tiny bit MMX2) Optimized OnScreenDisplay
Using Linux hardware RTC timing (1024Hz).
get_path('input.conf') -> '/home/lss/.mplayer/input.conf'
Can't open input config file /home/lss/.mplayer/input.conf: No such file
or directory
Parsing input config file /etc/mplayer/input.conf
Input config file /etc/mplayer/input.conf parsed: 59 binds
Opening joystick device /dev/input/js0
Can't open joystick device /dev/input/js0: No such file or directory
Can't init input joystick
Setting up LIRC support...
mplayer: could not connect to socket
mplayer: No such file or directory
Failed to open LIRC support.
You will not be able to use your remote control.
get_path('1.conf') -> '/home/lss/.mplayer/1.conf'
Playing dvd://1.
get_path('sub/') -> '/home/lss/.mplayer/sub/'
URL: dvd://1
libdvdread: Using libdvdcss version 1.2.9 for DVD access
Reading disc structure, please wait...
There are 6 titles on this DVD.
There are 17 chapters in this DVD title.
There are 1 angles in this DVD title.

DVD successfully opened.
[open] audio stream: 0 audio format: dts (5.1/6.1) language: unknown
aid: 136
[open] audio stream: 1 audio format: ac3 (5.1) language: unknown aid:
129
[open] audio stream: 2 audio format: ac3 (stereo) language: unknown aid:
130
[open] number of audio channels on disk: 3.
[open] number of subtitles on disk: 0
DVD start cell: 0  pack: 0x0-0x5B2
DVD start=0 end=2973884
STREAM: [null] dvd://1
STREAM: Description: DVD stream
STREAM: Author:
STREAM: Comment:
DVD Seek! lba=0x0  cell=0  packs: 0x0-0x5B2
Angle-seek synced by cell/vob IDN search!
Checking for YUV4MPEG2
ASF_check: not ASF guid!
Checking for NuppelVideo
Checking for REAL
Checking for SMJPEG
Searching demuxer type for filename dvd://1 ext: (null)
DVD Seek! lba=0x0  cell=0  packs: 0x0-0x5B2
Angle-seek synced by cell/vob IDN search!
Checking for Nullsoft Streaming Video
DVD Seek! lba=0x0  cell=0  packs: 0x0-0x5B2
Angle-seek synced by cell/vob IDN search!
Checking for MOV
Checking for VIVO
header block 1 size: 0
AVS: avs_check_file - attempting to open file dvd://1
AVS: File is too big, aborting...
Checking for PVA
Checking for MPEG-TS...
TRIED UP TO POSITION 80188, FOUND 47, packet_size= 0, SEEMS A TS? 0
DVD Seek! lba=0x27  cell=0  packs: 0x0-0x5B2
Angle-seek synced by cell/vob IDN search!
DVD Seek! lba=0x0  cell=0  packs: 0x0-0x5B2
Angle-seek synced by cell/vob IDN search!
Checking for LMLM4 Stream Format
Invalid packet in LMLM4 stream: ch=0 size=1140851739
LMLM4 Stream Format not found
system stream synced at 0xD (13)!
==> Found video stream: 0
DVD Seek! lba=0x16AFE3  cell=9  packs: 0x156B5E-0x1778AC
Angle-seek synced by cell/vob IDN search!
==> Found audio stream: 130
==> Found audio stream: 136
==> Found audio stream: 129
DVD Seek! lba=0x2D5FC7  cell=16  packs: 0x2BF895-0x2D60BC
Angle-seek synced by cell/vob IDN search!
--- END OF CELL !!! ---
MPEG Stream reached EOF
ds_fill_buffer: EOF reached (stream: video)
DVD Seek! lba=0x0  cell=0  packs: 0x0-0x5B2
Angle-seek synced by cell/vob IDN search!
MPEG-PS file format detected.
Searching for sequence header... OK!
VIDEO:  MPEG2  720x576  (aspect 3)  25.000 fps  7200.0 kbps (900.0
kbyte/s)
[V] filefmt:2  fourcc:0x10000002  size:720x576  fps:25.00  ftime:=0.0400
get_path('sub/') -> '/home/lss/.mplayer/sub/'
get_path('default.sub') -> '/home/lss/.mplayer/default.sub'
==========================================================================
Forced audio codec: hwdts
Opening audio decoder: [hwac3] AC3/DTS pass-through S/PDIF
dec_audio: Allocating 8192 bytes for input buffer.
dec_audio: Allocating 16384 + 65536 = 81920 bytes for output buffer.
No accelerated IMDCT transform found
hwac3: switched to DTS, 1536000 bps, 48000 Hz
AUDIO: 48000 Hz, 2 ch, ac3, 1536.0 kbit/100.00% (ratio: 192000->192000)
Selected audio codec: [hwdts] afm: hwac3 (DTS through S/PDIF)
==========================================================================
==========================================================================
Opening video decoder: [mpegpes] MPEG 1/2 Video passthrough
VDec: vo config request - 720 x 576 (preferred colorspace: Mpeg PES)
Trying filter chain: vo
VDec: using Mpeg PES as output csp (no 0)
Movie-Aspect is 1.78:1 - prescaling to correct movie aspect.
VO Config (720x576->1024x576,flags=0,'MPlayer',0x4D504553)
VO: [null] 720x576 => 1024x576 Mpeg PES
VO: Description: Null video output
VO: Author: Aaron Holtzman <aholtzma at ess.engr.uvic.ca>
Selected video codec: [mpegpes] vfm: mpegpes (MPEG-PES output (.mpg or
DXR3/DVB card))
==========================================================================
Building audio filter chain for 48000Hz/2ch/ac3 -> 0Hz/0ch/??...
[libaf] Adding filter dummy
[dummy] Was reinitialized: 48000Hz/2ch/ac3
[dummy] Was reinitialized: 48000Hz/2ch/ac3
alsa-init: requested format: 48000 Hz, 2 channels, 100
alsa-init: compiled for ALSA-1.0.10
alsa-spdif-init: playing AC3, 2 channels
alsa-init: 1 soundcard found, using: spdif
alsa-init: pcm opend in block-mode
alsa-init: chunksize set to 512
alsa-init: fragcount=16
alsa-init: got buffersize=32768
alsa: 48000 Hz/2 channels/4 bpf/32768 bytes buffer/Signed 16 bit Little
Endian
AO: [alsa] 48000Hz 2ch ac3 (1 bytes per sample)
AO: Description: ALSA-0.9.x-1.x audio output
AO: Author: Alex Beregszaszi, Zsolt Barat <joy at streamminister.de>
AO: Comment: under developement
Building audio filter chain for 48000Hz/2ch/ac3 -> 48000Hz/2ch/ac3...
[dummy] Was reinitialized: 48000Hz/2ch/ac3
[dummy] Was reinitialized: 48000Hz/2ch/ac3
Starting playback...
alsa-space: free space = 32768, prepared --
*** [vo] Exporting mp_image_t, 720x576x0bpp RGB packed, 0 bytes
A:   1.9 V:   1.9 A-V: -0.000 ct:  0.040  49/ 49  0%  0%  0.9% 0 0

Cheers,
Lars




More information about the MPlayer-users mailing list