[MPlayer-users] trouble with a52/ac3

Ryan Olf ryan at efrus.com
Wed Nov 30 08:50:27 CET 2005


I'm trying to play an ATSC stream from my newly installed AirStar HD5000 card 
in mplayer, and am experienceing some problems, I believe with a52/ac3.  For 
a minute or so, video and audio play well, but I experience tons of errors:
-----------------------------------------
MPlayer 1.0pre7try2-3.4.4 (C) 2000-2005 MPlayer Team
CPU: Advanced Micro Devices  (Family: 8, Stepping: 0)
Detected cache-line size is 64 bytes
CPUflags:  MMX: 1 MMX2: 1 3DNow: 1 3DNow2: 1 SSE: 1 SSE2: 1
Compiled for x86 CPU with extensions: MMX MMX2 3DNow 3DNowEx SSE SSE2

85 audio & 196 video codecs
Playing dvb://KRON-SD.
code taken from dvbstream for mplayer v0.4pre1 - (C) Dave Chapman 2001
Released under the GPL.
Latest version available from http://www.linuxstb.org/
dvb_tune Freq: 731000000
Cache fill: 18.46% (1548288 bytes)    TS file format detected.
DEMUX OPEN, AUDIO_ID: -1, VIDEO_ID: -1, SUBTITLE_ID: -1,
PROBING UP TO 2000000, PROG: 0
VIDEO MPEG2(pid=49)AUDIO A52(pid=52) NO SUBS (yet)!  PROGRAM N. 0
Opened TS demuxer, audio: 2000(pid 52), video: 10000002(pid 49)...POS=11844
VIDEO:  MPEG2  704x480  (aspect 2)  29.970 fps  5000.0 kbps (625.0 kbyte/s)
==========================================================================
Opening audio decoder: [liba52] AC3 decoding with liba52
No accelerated IMDCT transform found
AC3: 2.0 (stereo)  48000 Hz  192.0 kbit/s
No accelerated resampler found
AUDIO: 48000 Hz, 2 ch, s16le, 192.0 kbit/12.50% (ratio: 24000->192000)
Selected audio codec: [a52] afm:liba52 (AC3-liba52)
==========================================================================
vo: X11 running at 1280x1024 with depth 24 and 32 bpp (":0.0" => local 
display)
==========================================================================
Opening video decoder: [mpegpes] MPEG 1/2 Video passthrough
VDec: vo config request - 704 x 480 (preferred csp: Mpeg PES)
Could not find matching colorspace - retrying with -vf scale...
Opening video filter: [scale]
The selected video_out device is incompatible with this codec.
VDecoder init failed :(
Opening video decoder: [libmpeg2] MPEG 1/2 Video decoder libmpeg2-v0.4.0b
Selected video codec: [mpeg12] vfm:libmpeg2 (MPEG-1 or 2 (libmpeg2))
==========================================================================
Checking audio filter chain for 48000Hz/2ch/s16le -> 48000Hz/2ch/s16le...
AF_pre: 48000Hz/2ch/s16le
alsa-init: 1 soundcard found, using: default
alsa: 48000 Hz/2 channels/4 bpf/65536 bytes buffer/Signed 16 bit Little Endian
AO: [alsa] 48000Hz 2ch s16le (2 bps)
Building audio filter chain for 48000Hz/2ch/s16le -> 48000Hz/2ch/s16le...
Starting playback...
a52: CRC check failed!
VDec: vo config request - 704 x 480 (preferred csp: Planar YV12)
VDec: using Planar YV12 as output csp (no 0)
Movie-Aspect is 1.33:1 - prescaling to correct movie aspect.
VO: [xv] 704x480 => 704x528 Planar YV12
a52: CRC check failed!   -0.344 ct: -0.057  18/ 18 30%  1%  1.6% 0 0 17%
a52: CRC check failed!   -0.273 ct: -0.103  32/ 32 24%  1%  1.4% 0 0 18%
a52: CRC check failed!   -0.195 ct: -0.133  41/ 41 21%  1%  1.4% 0 0 17%
a52: CRC check failed!   -0.125 ct: -0.174  53/ 53 20%  1%  1.4% 0 0 17%
a52: CRC check failed!    0.000 ct: -0.271 123/123 17%  1%  1.4% 0 0 17%
a52: CRC check failed!    0.000 ct: -0.240 185/185 16%  0%  1.3% 0 0 17%
a52: CRC check failed!    0.016 ct: -0.216 199/199 16%  0%  1.3% 0 0 16%
a52: error at resampling
a52: CRC check failed!    0.000 ct: -0.177 258/258 16%  0%  1.3% 0 0 16%
a52: CRC check failed!    0.008 ct: -0.145 295/295 15%  0%  1.3% 0 0 16%

...
-----------------------------------------
Eventually I get a message like this:

-----------------------------------------
alsa-play: xrun of at least 16.801 msecs. resetting stream1%  6.5% 40 0 0%
alsa-play: xrun of at least 0.030 msecs. resetting stream 1%  6.9% 42 0 0%
alsa-play: xrun of at least 0.030 msecs. resetting stream 1%  7.1% 43 0 0%
a52: CRC check failed!    4.258 ct:  4.031 2780/2780  8%  1%  7.2% 44 0 0%
a52: CRC check failed!    4.539 ct:  4.038 2782/2782  8%  1%  7.6% 46 0 0%
alsa-play: xrun of at least 65.973 msecs. resetting stream
a52: CRC check failed!    4.805 ct:  4.045 2784/2784  8%  1%  8.0% 48 0 0%
A:85549.1 V:85544.1 A-V:  5.070 ct:  4.051 2786/2786  8%  1%  8.3% 50 0 0%

           ************************************************
           **** Your system is too SLOW to play this!  ****
           ************************************************

Possible reasons, problems, workarounds:
- Most common: broken/buggy _audio_ driver
  - Try -ao sdl or use the OSS emulation of ALSA.
  - Experiment with different values for -autosync, 30 is a good start.
- Slow video output
  - Try a different -vo driver (-vo help for a list) or try -framedrop!
- Slow CPU
  - Don't try to play a big DVD/DivX on a slow CPU! Try -hardframedrop.
- Broken file
  - Try various combinations of -nobps -ni -forceidx -mc 0.
- Slow media (NFS/SMB mounts, DVD, VCD etc)
  - Try -cache 8192.
- Are you using -cache to play a non-interleaved AVI file?
  - Try -nocache.
Read DOCS/HTML/en/video.html for tuning/speedup tips.
If none of this helps you, read DOCS/HTML/en/bugreports.html.
---------------------------------------

Finally, mplayer exits with:
----------------------------------------
alsa-play: xrun of at least 30.265 msecs. resetting stream0% 30.1% 92 0 0%
A:77411.7 V:77398.4 A-V: 13.219 ct:  2.203 1568/1568 14%  0% 31.6% 97 0 0%
Too many video packets in the buffer: (405 in 8404056 bytes).
Maybe you are playing a non-interleaved stream/file or the codec failed?
For AVI files, try to force non-interleaved mode with the -ni option.
a52: CRC check failed!
alsa-space: xrun of at least 0.180 msecs. resetting stream0% 31.1% 97 0 0%
A:77412.0 V:77442.8 A-V:-30.781 ct:  0.476 2896/2896 13%  0% 17.2% 97 0 0%
Too many audio packets in the buffer: (4096 in 740010 bytes).
Maybe you are playing a non-interleaved stream/file or the codec failed?
For AVI files, try to force non-interleaved mode with the -ni option.

Too many audio packets in the buffer: (4096 in 740010 bytes).
Maybe you are playing a non-interleaved stream/file or the codec failed?
For AVI files, try to force non-interleaved mode with the -ni option.

Too many audio packets in the buffer: (4096 in 740010 bytes).
Maybe you are playing a non-interleaved stream/file or the codec failed?
For AVI files, try to force non-interleaved mode with the -ni option.

Too many audio packets in the buffer: (4096 in 740010 bytes).
Maybe you are playing a non-interleaved stream/file or the codec failed?
For AVI files, try to force non-interleaved mode with the -ni option.

Too many audio packets in the buffer: (4096 in 740010 bytes).
Maybe you are playing a non-interleaved stream/file or the codec failed?
For AVI files, try to force non-interleaved mode with the -ni option.

Too many audio packets in the buffer: (4096 in 740010 bytes).
Maybe you are playing a non-interleaved stream/file or the codec failed?
For AVI files, try to force non-interleaved mode with the -ni option.
A:77412.0 V:77442.8 A-V:-30.781 ct:  0.472 2896/2896 13%  0% 17.2% 97 0 0%
alsa-uninit: pcm closed

Exiting... (End of file)
--------------------------------------------
I'm running Gentoo compiled for my AMD Athlon 64 3200+ in native 64 bit mode, 
with mplayer 1.0_pre7-r1 from Gentoo portage.  My computer does not seemed 
stressed at all by the decoding.  I've tried changing display modes, but it 
doesn't change anything.  Trying to use any other codec (other than a52) 
results in there being no audio (and also no errors).   ac3 codec from libac3 
fails to load with error:

 Requested audio codec family [ac3] (afm=libac3) not available.

although mplayer -ac help shows the presence of an ac3 codec.
 
I obtain essentially the same errors on the recorded .ts.

Anyone else familiar with this problem and have advice?  Any help is 
appreciated. 

Thanks a lot,

Ryan




More information about the MPlayer-users mailing list