[MPlayer-users] libac3 audio problems / Advanced audio stream selection?

Thilo Schulz arny at ats.s.bawue.de
Sat Jul 27 14:44:01 CEST 2002


Hello, I have just installed a DVD drive and tested to play a DVD with 
mplayer. So far so good, so i started and looked how you have to play DVDs 
using which command line parameters ... not really difficult, so i figured 
that out pretty fast. But, the DVD does not play with any sound. I have the 
DVD of PlanetofApes with german audio streams. Well, this is, what mplayer 
shows as soon as im trying to play the dvd:

Thilo:/installation/MPlayer-20020726/DOCS# mplayer -dvd-device /dev/hda -dvd 1
MPlayer CVS-020726-06:00-2.95.4 (C) 2000-2002 Arpad Gereoffy (see DOCS!)

CPU: Advanced Micro Devices Athlon TB Thunderbird (Family: 6, Stepping: 2)
CPUflags:  MMX: 1 MMX2: 1 3DNow: 1 3DNow2: 1 SSE: 0 SSE2: 0
Compiled for x86 CPU with extensions: MMX MMX2 3DNow 3DNowEx

DVD successfully opened!
Detected MPEG-PS file format!
VIDEO:  MPEG2  720x576  (aspect 3)  25.00 fps  7500.0 kbps (937.5 kbyte/s)
Detected audio codec: [a52] afm:14 (AC3-liba52)
Opening audio decoder: [liba52] AC3-liba52
Using 3DNowEx optimized IMDCT transform
a52: CRC check failed!
AC3: 2.0 (stereo)  48000 Hz  40.0 kbit/s
Using MMX optimized resampler
AUDIO: 48000 Hz, 2 ch, sfmt: 0x10 (2 bps), ratio: 5000->192000 (40.0 kbit)
vo: X11 running at 1600x1200 with depth 16 and 16 bpp (":0" => local display)
==========================================================================
Opening video decoder: [mpegpes] MPEG 1/2 Video passthrough
VDec: vo config request - 720 x 576 (preferred csp: Mpeg PES)
Couldn't find matching colorspace - retrying with -vop scale...
Opening video filter: [scale]
Sorry, selected video_out device is incompatible with this codec.
VDecoder init failed :(
Opening video decoder: [libmpeg2] MPEG 1/2 Video decoder v2.0
libmpeg2: Using MMXEXT for IDCT transform
libmpeg2: Using MMXEXT for motion compensation
VDec: vo config request - 720 x 576 (preferred csp: Planar YV12)
Movie-Aspect is 1.78:1 - prescaling to correct movie aspect.
VO: [xv] 720x576 => 1024x576 Planar YV12
Detected video codec: [mpeg12] vfm:1 (MPEG 1 or 2)
==========================================================================
AO: [oss] 48000Hz 2ch Signed 16-bit (Little-Endian)
Start playing...
a52: error at resampling
a52: CRC check failed!
a52: error at resampling
A:   9.4 V:   0.2 A-V:  9.238 ct:  0.000    1/  1   0%  0%  0.0% 0 0 0%
DEMUXER: Too many (4096 in 8272592 bytes) video packets in the buffer!
(maybe you play a non-interleaved stream/file or the codec failed)?
For .AVI files, try to force non-interleaved mode with option -ni

(I deleted some uninteresting lines in the output in case you wonder)
Well, it is obvious, that mplayer fails to play the sounds. So i tried ogle, 
and ogle needs an extra liba52 library, I installed it and there it works ...
By the way, the english audio stream works. So i wondered, maybe there are 
several audio streams on that disk that i could select from, maybe mplayer 
just hit on one special proprietary one that it cant decode, so I got this 
when i gave -v on the command line:

[open] audio stream: 0 audio format: ac3 (5.1) language: en aid: 128
[open] audio stream: 1 audio format: ac3 (5.1) language: de aid: 129
[open] audio stream: 2 audio format: dts (5.1) language: de aid: 130
[open] audio stream: 3 audio format: ac3 (stereo) language: en aid: 131
[open] audio stream: 4 audio format: ac3 (stereo) language: en aid: 132
[open] number of audio channels on disk: 5.

Nice ;)
5 audio streams, but only two country codes ... how am i supposed to select 
for example the audio stream with the id 132 if there are 3 streams with the 
two char's "en"? i mean i can only give -alang "en" but can't specify which 
audio stream it should use.

I'd be grateful about any help :)

- Thilo Schulz




More information about the MPlayer-users mailing list