[MPlayer-users] a52 problems - Audio Stream detection.

Marcos Aurelio Lenharo lenharo at gmx.net
Thu May 9 20:57:02 CEST 2002


Hi!

This is really not an a52 problem.
There is something strange with the audio stream detection.
I ripped a DVD to my harddisk and when i try do use mplayer it says:

Detected MPEG-PS file format!
==> Found audio stream: 137 uh????? (there is no audio stream 137!!!)
Searching for sequence header... OK!
VIDEO:  MPEG2  720x576  (aspect 3)  25.00 fps  7500.0 kbps (937.5
kbyte/s)
[V] filefmt:2  fourcc:0x10000002  size:720x576  fps:25.00  ftime:=0.0400
get_path('sub/') -> '/home/lenharo/.mplayer/sub/'
Detected audio codec: [a52] drv:14 (AC3-liba52)
Initializing audio codec...
Selecting Audio Decoder: [liba52] AC3-liba52
dec_audio: Allocating 3840 bytes for input buffer
dec_audio: Allocating 6144 + 65536 = 71680 bytes for output buffer
Using 3DNowEx optimized IMDCT transform
==> Found audio stream: 130
==> Found audio stream: 128
==> Found audio stream: 131
==> Found audio stream: 132
  {ERROR5,c=0}
  {ERROR5,c=0}
a52: CRC check failed!
AC3: 2.0 (stereo)  48000 Hz  40.0 kbit/s
A52 flags before a52_frame: 0x2A
A52 flags after a52_frame: 0x2
Using MMX optimized resampler
AUDIO: srate=48000  chans=2  bps=2  sfmt=0x10  ratio: 5000->192000

Great! The 4 audio streams were detected, but then...

==========================================================================
AO: [oss] 48000Hz Stereo Signed 16-bit (Little-Endian)
AO: Description: OSS/ioctl audio output
AO: Author: A'rpi
ao2: 48000 Hz  2 chans  Signed 16-bit (Little-Endian)
audio_setup: using '/dev/dsp' dsp device
audio_setup: sample format: Signed 16-bit (Little-Endian) (requested:
Signed 16-bit (Little-Endian))
audio_setup: using 2 channels (requested: 2)
audio_setup: using 48000 Hz samplerate (requested: 48000)
audio_setup: frags: 128/128  (1024 bytes/frag)  free: 131072
Start playing...
a52: error at resampling
  {ERROR5,c=0}
  {ERROR5,c=0}
==> Found subtitle: 3
  {ERROR5,c=0}
  {ERROR5,c=0}
  {ERROR5,c=0}
  {ERROR5,c=0}
  {ERROR5,c=0}
  {ERROR5,c=0}
  {ERROR5,c=0}
  {ERROR5,c=0}
  {ERROR5,c=0}
  {ERROR5,c=0}
  {ERROR5,c=0}
a52: CRC check failed!
a52: error at resampling

If I use -aid with a valid audio stream it plays the stream but the
output is different:

with -aid=128
Detected MPEG-PS file format!
==> Found audio stream: 137
==> Found audio stream: 130
==> Found audio stream: 128
Searching for sequence header... OK!
VIDEO:  MPEG2  720x576  (aspect 3)  25.00 fps  7500.0 kbps (937.5
kbyte/s)
[V] filefmt:2  fourcc:0x10000002  size:720x576  fps:25.00  ftime:=0.0400
get_path('sub/') -> '/home/lenharo/.mplayer/sub/'
Detected audio codec: [a52] drv:14 (AC3-liba52)
Initializing audio codec...
Selecting Audio Decoder: [liba52] AC3-liba52
dec_audio: Allocating 3840 bytes for input buffer
dec_audio: Allocating 6144 + 65536 = 71680 bytes for output buffer
Using 3DNowEx optimized IMDCT transform
AC3: 5.1 (3f+2r+lfe)  48000 Hz  384.0 kbit/s
A52 flags before a52_frame: 0x2A
A52 flags after a52_frame: 0xA
Using MMX optimized resampler
AUDIO: srate=48000  chans=2  bps=2  sfmt=0x10  ratio: 48000->192000

with -aid=130
Detected MPEG-PS file format!
==> Found audio stream: 137
==> Found audio stream: 130
Searching for sequence header... OK!
VIDEO:  MPEG2  720x576  (aspect 3)  25.00 fps  7500.0 kbps (937.5
kbyte/s)
[V] filefmt:2  fourcc:0x10000002  size:720x576  fps:25.00  ftime:=0.0400
get_path('sub/') -> '/home/lenharo/.mplayer/sub/'
Detected audio codec: [a52] drv:14 (AC3-liba52)
Initializing audio codec...
Selecting Audio Decoder: [liba52] AC3-liba52
dec_audio: Allocating 3840 bytes for input buffer
dec_audio: Allocating 6144 + 65536 = 71680 bytes for output buffer
Using 3DNowEx optimized IMDCT transform
AC3: 5.1 (3f+2r+lfe)  48000 Hz  384.0 kbit/s
A52 flags before a52_frame: 0x2A
A52 flags after a52_frame: 0xA
Using MMX optimized resampler
AUDIO: srate=48000  chans=2  bps=2  sfmt=0x10  ratio: 48000->192000


with -aid=131
Detected MPEG-PS file format!
==> Found audio stream: 137
==> Found audio stream: 130
==> Found audio stream: 128
==> Found audio stream: 131
Searching for sequence header... OK!
VIDEO:  MPEG2  720x576  (aspect 3)  25.00 fps  7500.0 kbps (937.5
kbyte/s)
[V] filefmt:2  fourcc:0x10000002  size:720x576  fps:25.00  ftime:=0.0400
get_path('sub/') -> '/home/lenharo/.mplayer/sub/'
Detected audio codec: [a52] drv:14 (AC3-liba52)
Initializing audio codec...
Selecting Audio Decoder: [liba52] AC3-liba52
dec_audio: Allocating 3840 bytes for input buffer
dec_audio: Allocating 6144 + 65536 = 71680 bytes for output buffer
Using 3DNowEx optimized IMDCT transform
AC3: 2.0 (dolby)  48000 Hz  192.0 kbit/s
A52 flags before a52_frame: 0x2A
A52 flags after a52_frame: 0xA
Using MMX optimized resampler
AUDIO: srate=48000  chans=2  bps=2  sfmt=0x10  ratio: 24000->192000

and with -aid=132
Detected MPEG-PS file format!
==> Found audio stream: 137
==> Found audio stream: 130
==> Found audio stream: 128
==> Found audio stream: 131
==> Found audio stream: 132
Searching for sequence header... OK!
VIDEO:  MPEG2  720x576  (aspect 3)  25.00 fps  7500.0 kbps (937.5
kbyte/s)
[V] filefmt:2  fourcc:0x10000002  size:720x576  fps:25.00  ftime:=0.0400
get_path('sub/') -> '/home/lenharo/.mplayer/sub/'
Detected audio codec: [a52] drv:14 (AC3-liba52)
Initializing audio codec...
Selecting Audio Decoder: [liba52] AC3-liba52
dec_audio: Allocating 3840 bytes for input buffer
dec_audio: Allocating 6144 + 65536 = 71680 bytes for output buffer
Using 3DNowEx optimized IMDCT transform
AC3: 2.0 (dolby)  48000 Hz  96.0 kbit/s
A52 flags before a52_frame: 0x2A
A52 flags after a52_frame: 0xA
Using MMX optimized resampler
AUDIO: srate=48000  chans=2  bps=2  sfmt=0x10  ratio: 12000->192000


So... the audio stream auto-detection depends on the -aid flag?
and which audio stream does it try to play when I don't use the -aid
flag?

I didn't find anything in the DOCs about it.

Thanks




> 
-- 
Marcos Aurelio Lenharo
ICQ #122749321   
GPG Key Available - Key ID 820DE59F.
-------------- next part --------------
A non-text attachment was scrubbed...
Name: report_with_aid.txt.gz
Type: application/x-gzip
Size: 3629 bytes
Desc: not available
URL: <http://lists.mplayerhq.hu/pipermail/mplayer-users/attachments/20020509/7bd13a70/attachment.bin>
-------------- next part --------------
A non-text attachment was scrubbed...
Name: report_without_aid.txt.gz
Type: application/x-gzip
Size: 3337 bytes
Desc: not available
URL: <http://lists.mplayerhq.hu/pipermail/mplayer-users/attachments/20020509/7bd13a70/attachment-0001.bin>


More information about the MPlayer-users mailing list