[MPlayer-users] MPlayer plays avi skippy when the file includes ac3 audio

Sebastian Kemper sebastian_ml at gmx.net
Sat Sep 4 19:03:49 CEST 2004


Hello ML!

I have trouble with some avis from time to time. I got two boxes running 
mplayer. One is a laptop, the other a headless VDR. But this problem 
seems to happen on both of them.

When I play the file, it's skippy.

bash-2.05b$ file test-ntsc*
test-ntsc-ac3.avi: RIFF (little-endian) data, AVI, 608 x 256, 23.98 fps, 
video: XviD, audio: Dolby AC3 (6 channels, 48000 Hz)
test-ntsc.avi:     RIFF (little-endian) data, AVI, 608 x 256, 23.98 fps, 
video: XviD
bash-2.05b$

The first playbacks with skips, the second runs smooth. I don't think 
it's a hardware prob, because it's recent hardware. The laptop is a P-M 
with 1.4GHz and 512MB RAM. The VDR is a T-Bred 1.7GHz also equipped with 
512MB DDR.

Software: Both running Gentoo:

Linux blood 2.6.8-gentoo-r3 #4 Sat Sep 4 15:05:46 CEST 2004 i686 
Intel(R) Pentium(R) M processor 1400MHz GenuineIntel GNU/Linux
(speedstep is working)

Linux vdr 2.6.8-gentoo-r3 #4 Sat Sep 4 15:03:32 CEST 2004 i686 AMD 
Athlon(tm) XP 1700+ AuthenticAMD GNU/Linux

ls -l /lib/libc[.-]*
-rwxr-xr-x  1 root root 1174608  2. Sep 11:51 /lib/libc-2.3.3.so
lrwxrwxrwx  1 root root      13  3. Sep 09:47 /lib/libc.so.6 -> 
libc-2.3.3.so

gcc -v && ld -v
Lese Spezifikationen von /usr/lib/gcc-lib/i686-pc-linux-gnu/3.3.4/specs
Konfiguriert mit: /var/tmp/portage/gcc-3.3.4-r1/work/gcc-3.3.4/configure 
--prefix=/usr --bindir=/usr/i686-pc-linux-gnu/gcc-bin/3.3 
--includedir=/usr/lib/gcc-lib/i686-pc-linux-gnu/3.3.4/include 
--datadir=/usr/share/gcc-data/i686-pc-linux-gnu/3.3 
--mandir=/usr/share/gcc-data/i686-pc-linux-gnu/3.3/man 
--infodir=/usr/share/gcc-data/i686-pc-linux-gnu/3.3/info --enable-shared 
--host=i686-pc-linux-gnu --target=i686-pc-linux-gnu --with-system-zlib 
--enable-languages=c,c++ --enable-threads=posix --enable-long-long 
--disable-checking --disable-libunwind-exceptions --enable-cstdio=stdio 
--enable-version-specific-runtime-libs 
--with-gxx-include-dir=/usr/lib/gcc-lib/i686-pc-linux-gnu/3.3.4/include/g++-v3 
--with-local-prefix=/usr/local --enable-shared --enable-nls 
--without-included-gettext --disable-multilib --enable-__cxa_atexit 
--enable-clocale=generic
Thread-Modell: posix
gcc-Version 3.3.4 20040623 (Gentoo Linux 3.3.4-r1, ssp-3.3.2-2, pie-8.7.6)
GNU ld version 2.14.90.0.8 20040114

  as --version
GNU assembler 2.14.90.0.8 20040114
Copyright 2002 Free Software Foundation, Inc.
This program is free software; you may redistribute it under the terms of
the GNU General Public License.  This program has absolutely no warranty.
This assembler was configured for a target of `i686-pc-linux-gnu'.

On the X box xorg 6.8.0 RC 3 is running and xfce4 4.0.6. But I don't 
have the mplayer gui anyway. And as I mentioned I get the exact same 
behaviour on the headless VDR.


Here is the log:

MPlayer 1.0pre5-3.3.4 (C) 2000-2004 MPlayer Team

CPU: Intel Pentium M Banias 598.3 MHz (Family: 6, Stepping: 5)
Detected cache-line size is 64 bytes
MMX2 supported but disabled
CPUflags:  MMX: 1 MMX2: 0 3DNow: 0 3DNow2: 0 SSE: 1 SSE2: 1
Compiled for x86 CPU with extensions: MMX SSE SSE2

Reading config file /usr/share/mplayer/mplayer.conf
Reading config file /home/sk/.mplayer/config
Reading /home/sk/.mplayer/codecs.conf: 66 audio & 176 video codecs
CommandLine: '-v' 'test-ntsc-ac3.avi'
init_freetype
get_path('font/font.desc') -> '/home/sk/.mplayer/font/font.desc'
Font /home/sk/.mplayer/font/font.desc loaded successfully! (206 chars)
Using MMX Optimized OnScreenDisplay
Using Linux hardware RTC timing (1024Hz).
get_path('input.conf') -> '/home/sk/.mplayer/input.conf'
Can't open input config file /home/sk/.mplayer/input.conf: Datei oder 
Verzeichnis nicht gefunden
Parsing input config file /usr/share/mplayer/input.conf
Input config file /usr/share/mplayer/input.conf parsed: 53 binds
get_path('test-ntsc-ac3.avi.conf') -> 
'/home/sk/.mplayer/test-ntsc-ac3.avi.conf'

Playing test-ntsc-ac3.avi.
[file] File size is 1927710 bytes
STREAM: [file] test-ntsc-ac3.avi
STREAM: Description: File
STREAM: Author: Albeu
STREAM: Comment: based on the code from ??? (probably Arpi)
CACHE_PRE_INIT: 0 [0] 0  pre:0  eof:1130496
Cache fill: 13,48% (1130496 bytes)    AVI file format detected.
list_end=0x13A
======= AVI Header =======
us/frame: 41708  (fps=23,976)
max bytes/sec: 0
padding: 0
MainAVIHeader.dwFlags: (2320) HAS_INDEX IS_INTERLEAVED TRUST_CKTYPE
frames  total: 144   initial: 0
streams: 2
Suggested BufferSize: 0
Size:  608 x 256
==========================
list_end=0xD4
==> Found video stream: 0
====== STREAM Header =====
Type: vids   FCC: XVID (44495658)
Flags: 0
Priority: 0   Language: 0
InitialFrames: 0
Rate: 2997/125 = 23,976
Start: 0   Len: 144
Suggested BufferSize: 58050
Quality 0
Sample size: 0
==========================
found 'bih', 40 bytes of 40
======= VIDEO Format ======
   biSize 40
   biWidth 608
   biHeight 256
   biPlanes 1
   biBitCount 12
   biCompression 1145656920='XVID'
   biSizeImage 933888
===========================
list_end=0x13A
==> Found audio stream: 1
====== STREAM Header =====
Type: auds   FCC:  (2000)
Flags: 0
Priority: 0   Language: 0
InitialFrames: 0
Rate: 56000/1 = 56000,000
Start: 0   Len: 364000
Suggested BufferSize: 28000
Quality 0
Sample size: 1
==========================
found 'wf', 18 bytes of 18
======= WAVE Format =======
Format Tag: 8192 (0x2000)
Channels: 6
Samplerate: 48000
avg byte/sec: 56000
Block align: 1
bits/sample: 0
cbSize: 0
===========================
list_end=0x166
hdr=Software  size=23
Software  : MEncoder 1.0pre5-3.3.4
list_end=0x1D6046
Found movie at 0x100C - 0x1D6046
Reading INDEX block, 157 chunks for 144 frames (fpos=0x1d604e)
AVI index offset: 0x1008 (movi=0x100C idx0=0x4 idx1=0x6D6C)
Auto-selected AVI audio ID = 1
Auto-selected AVI video ID = 0
AVI: Searching for audio stream (id:1)
AVI video size=1555734 (144) audio size=364000 (364000)
VIDEO:  [XVID]  608x256  12bpp  23,976 fps  2072,2 kbps (253,0 kbyte/s)
[V] filefmt:3  fourcc:0x44495658  size:608x256  fps:23,98  ftime:=0,0417
Clip info:
  Software: MEncoder 1.0pre5-3.3.4
get_path('sub/') -> '/home/sk/.mplayer/sub/'
get_path('default.sub') -> '/home/sk/.mplayer/default.sub'
==========================================================================
Opening audio decoder: [liba52] AC3 decoding with liba52
dec_audio: Allocating 3840 bytes for input buffer.
dec_audio: Allocating 6144 + 65536 = 71680 bytes for output buffer.
Using SSE optimized IMDCT transform
AC3: 5.1 (3f+2r+lfe)  48000 Hz  448,0 kbit/s
A52 flags before a52_frame: 0x2A
A52 flags after a52_frame: 0xA
Using MMX optimized resampler
AUDIO: 48000 Hz, 2 ch, 16 bit (0x10), ratio: 56000->192000 (448,0 kbit)
Selected audio codec: [a52] afm:liba52 (AC3-liba52)
==========================================================================
X11 opening display: :0.0
vo: X11 color mask:  FFFFFF  (R:FF0000 G:FF00 B:FF)
vo: X11 running at 1280x800 with depth 24 and 32 bpp (":0.0" => local 
display)
[x11] Detected wm supports layers.
[x11] Using workaround for Metacity bugs.
[x11] Detected wm supports NetWM.
[x11] Detected wm supports ABOVE state.
[x11] Detected wm supports BELOW state.
[x11] Detected wm supports FULLSCREEN state.
[x11] Current fstype setting honours FULLSCREEN ABOVE BELOW X atoms
Disabling DPMS
DPMSDisable stat: 1
==========================================================================
Opening video decoder: [xvid] XviD 1.0 decoder
VDec: vo config request - 608 x 256 (preferred csp: Planar YV12)
Trying filter chain: vo
VDec: using Planar YV12 as output csp (no 0)
Movie-Aspect is undefined - no prescaling applied.
VO Config (608x256->608x256,flags=0,'MPlayer',0x32315659)
VO: [xv] 608x256 => 608x256 Planar YV12
VO: Description: X11/Xv
VO: Author: Gerd Knorr <kraxel at goldbach.in-berlin.de> and others
Xvideo image format: 0x32595559 (YUY2) packed
Xvideo image format: 0x59565955 (UYVY) packed
Xvideo image format: 0x32315659 (YV12) planar
Xvideo image format: 0x30323449 (I420) planar
using Xvideo port 69 for hw scaling
[xv] dx: 0 dy: 0 dw: 608 dh: 256
Selected video codec: [xvid] vfm:xvid (XviD (MPEG-4))
==========================================================================
Checking audio filter chain for 48000Hz/2ch/16bit -> 48000Hz/2ch/16bit...
[libaf] Adding filter dummy
[dummy] Was reinitialized, rate=48000Hz, nch = 2, format = 0x00000001 
and bps = 2
AF_pre: af format: 2 bps, 2 ch, 48000 hz, little endian signed int
AF_pre: 48000Hz 2ch Signed 16-bit (Little-Endian)
[pl_volnorm] Normalizer plugin in use.
alsa-init: requested format: 48000 Hz, 2 channels, Signed 16-bit 
(Little-Endian)
alsa-init: compiled for ALSA-1.0.5
alsa-init: setup for 1/2 channel(s)
alsa-init: got device=0, subdevice=0
alsa-init: 1 soundcard found, using: default
alsa-init: pcm opend in block-mode
alsa-init: chunksize set to 1024
alsa-init: fragcount=8
alsa-init: got buffersize=32768
alsa: 48000 Hz/2 channels/4 bpf/32768 bytes buffer/Signed 16 bit Little 
Endian
alsa-space: free space = 32768, prepared --
AO: [plugin] 48000Hz 2ch Signed 16-bit (Little-Endian) (2 bps)
AO: Description: Plugin audio output
AO: Author: Anders
Building audio filter chain for 48000Hz/2ch/16bit -> 48000Hz/2ch/16bit...
[dummy] Was reinitialized, rate=48000Hz, nch = 2, format = 0x00000001 
and bps = 2
[dummy] Was reinitialized, rate=48000Hz, nch = 2, format = 0x00000001 
and bps = 2
Starting playback...
alsa-space: free space = 32768, prepared --
alsa-space: free space = 32768, prepared --
*** [vo] Exporting mp_image_t, 608x256x12bpp YUV planar, 233472 bytes
[xv] dx: 0 dy: 0 dw: 608 dh: 256
A:   0,2 V:   0,0 A-V:  0,182 ct:  0,000    1/  1   0%  0%  0,0% 1 0 
22%XXX initial  v_pts=0,000  a_pos=28000 (0,500)
A:   0,2 V:   0,0 A-V:  0,160 ct:  0,004    2/  2   0%  0%  0,0% 2 0 
21%A:   0,2 V:   0,1 A-V:  0,140 ct:  0,008    3/  3   0%  0%  0,0% 2 0 
21%A:   0,2 V:   0,1 A-V:  0,098 ct:  0,013    4/  4   0%  0%  0,0% 2 0 
21%A:   0,2 V:   0,2 A-V:  0,057 ct:  0,017    5/  5   0%  0%  0,0% 2 0 
20%A:   0,2 V:   0,2 A-V:  0,036 ct:  0,020    6/  6   0%  0%  0,0% 2 0 
20%A:   0,3 V:   0,3 A-V:  0,016 ct:  0,022    7/  7   0%  0%  0,0% 2 0 
20%A:   0,3 V:   0,3 A-V: -0,026 ct:  0,019    8/  8   0%  0%  0,0% 2 0 
20%A:   0,3 V:   0,3 A-V: -0,046 ct:  0,015    9/  9   0%  0%  0,0% 2 0 
20%A:   0,4 V:   0,4 A-V: -0,024 ct:  0,013   10/ 10   0%  0%  0,0% 2 0 
20%A:   0,4 V:   0,4 A-V: -0,044 ct:  0,009   11/ 11   0%  0%  0,0% 2 0 
20%A:   0,4 V:   0,5 A-V: -0,022 ct:  0,006   12/ 12   0%  0%  0,0% 2 0 
20%A:   0,5 V:   0,5 A-V: -0,042 ct:  0,002   13/ 13  21%  5% 12,9% 2 0 
20%A:   0,5 V:   0,5 A-V: -0,020 ct:  0,000   14/ 14  22%  5% 12,1% 2 0 
19%A:   0,6 V:   0,6 A-V: -0,019 ct: -0,002   15/ 15  22%  4% 11,4% 2 0 
19%A:   0,6 V:   0,6 A-V: -0,018 ct: -0,004   16/ 16  20%  4% 10,8% 2 0 
19%A:   0,6 V:   0,7 A-V: -0,039 ct: -0,007   17/ 17  21%  4% 10,2% 2 0 
19%A:   0,7 V:   0,7 A-V:  0,005 ct: -0,007   18/ 18  20%  4%  9,7% 2 0 
19%A:   0,7 V:   0,8 A-V: -0,015 ct: -0,008   19/ 19  22%  4%  9,3% 2 0 
18%A:   0,8 V:   0,8 A-V: -0,014 ct: -0,010   20/ 20  21%  3%  8,9% 2 0 
18%A:   0,8 V:   0,8 A-V: -0,013 ct: -0,011   21/ 21  22%  3%  8,6% 2 0 
18%A:   0,9 V:   0,9 A-V:  0,009 ct: -0,010   22/ 22  22%  3%  8,3% 2 0 
18%A:   0,9 V:   0,9 A-V: -0,012 ct: -0,012   23/ 23  21%  3%  7,9% 2 0 
18%A:   0,9 V:   1,0 A-V: -0,011 ct: -0,013   24/ 24  21%  3%  7,7% 2 0 
18%A:   1,0 V:   1,0 A-V: -0,010 ct: -0,014   25/ 25  21%  3%  7,4% 2 0 
17%A:   1,0 V:   1,0 A-V: -0,009 ct: -0,014   26/ 26  20%  3%  7,2% 2 0 
17%A:   1,1 V:   1,1 A-V: -0,008 ct: -0,015   27/ 27  21%  3%  7,0% 2 0 
17%A:   1,1 V:   1,1 A-V: -0,007 ct: -0,016   28/ 28  21%  3%  6,8% 2 0 
17%A:   1,2 V:   1,2 A-V: -0,006 ct: -0,016   29/ 29  20%  2%  6,6% 2 0 
17%A:   1,2 V:   1,2 A-V: -0,005 ct: -0,017   30/ 30  21%  2%  6,5% 2 0 
17%A:   1,3 V:   1,3 A-V:  0,017 ct: -0,015   31/ 31  21%  2%  6,3% 2 0 
16%A:   1,3 V:   1,3 A-V: -0,003 ct: -0,015   32/ 32  20%  2%  6,1% 2 0 
16%A:   1,3 V:   1,3 A-V: -0,023 ct: -0,018   33/ 33  21%  2%  6,0% 2 0 
16%A:   1,4 V:   1,4 A-V:  0,020 ct: -0,016   34/ 34  20%  2%  5,9% 2 0 
16%A:   1,4 V:   1,4 A-V: -0,021 ct: -0,018   35/ 35  21%  2%  5,7% 2 0 
16%A:   1,5 V:   1,5 A-V:  0,001 ct: -0,018   36/ 36  21%  2%  5,7% 2 0 
16%A:   1,5 V:   1,5 A-V:  0,002 ct: -0,018   37/ 37  20%  2%  5,5% 2 0 
16%A:   1,5 V:   1,5 A-V:  0,003 ct: -0,017   38/ 38  21%  2%  5,4% 2 0 
15%A:   1,6 V:   1,6 A-V:  0,004 ct: -0,017   39/ 39  21%  2%  5,4% 2 0 
15%A:   1,6 V:   1,6 A-V: -0,014 ct: -0,018   40/ 40  20%  2%  5,2% 2 0 
15%A:   1,7 V:   1,7 A-V:  0,006 ct: -0,018   41/ 41  21%  2%  5,2% 2 0 
15%A:   1,7 V:   1,7 A-V:  0,007 ct: -0,017   42/ 42  21%  2%  5,1% 2 0 
15%A:   1,7 V:   1,8 A-V: -0,014 ct: -0,019   43/ 43  20%  2%  5,0% 2 0 
15%A:   1,8 V:   1,8 A-V: -0,013 ct: -0,020   44/ 44  21%  2%  4,9% 2 0 
14%A:   1,8 V:   1,8 A-V:  0,010 ct: -0,019   45/ 45  21%  2%  4,9% 2 0 
14%A:   1,9 V:   1,9 A-V:  0,011 ct: -0,018   46/ 46  20%  2%  4,8% 2 0 
14%A:   1,9 V:   1,9 A-V: -0,010 ct: -0,019   47/ 47  21%  2%  4,7% 2 0 
14%A:   2,0 V:   2,0 A-V:  0,012 ct: -0,018   48/ 48  21%  2%  4,7% 2 0 
14%A:   2,0 V:   2,0 A-V: -0,008 ct: -0,018   49/ 49  20%  2%  4,6% 2 0 
14%A:   2,0 V:   2,0 A-V: -0,007 ct: -0,019   50/ 50  21%  2%  4,5% 2 0 
13%A:   2,1 V:   2,1 A-V:  0,015 ct: -0,018   51/ 51  21%  2%  4,5% 2 0 
13%A:   2,1 V:   2,1 A-V: -0,005 ct: -0,018   52/ 52  20%  2%  4,4% 2 0 
13%A:   2,1 V:   2,2 A-V: -0,025 ct: -0,021   53/ 53  20%  2%  4,4% 2 0 
13%A:   2,2 V:   2,2 A-V:  0,018 ct: -0,019   54/ 54  20%  2%  4,3% 2 0 
13%A:   2,3 V:   2,3 A-V: -0,002 ct: -0,019   55/ 55  20%  2%  4,3% 2 0 
13%A:   2,3 V:   2,3 A-V: -0,001 ct: -0,019   56/ 56  20%  2%  4,2% 2 0 
13%A:   2,3 V:   2,3 A-V: -0,000 ct: -0,019   57/ 57  20%  2%  4,2% 2 0 
13%A:   2,4 V:   2,4 A-V:  0,001 ct: -0,019   58/ 58  20%  2%  4,1% 2 0 
13%A:   2,4 V:   2,4 A-V: -0,020 ct: -0,021   59/ 59  20%  2%  4,1% 2 0 
13%A:   2,5 V:   2,5 A-V:  0,024 ct: -0,019   60/ 60  20%  2%  4,1% 2 0 
12%A:   2,5 V:   2,5 A-V:  0,004 ct: -0,018   61/ 61  20%  2%  4,0% 2 0 
12%A:   2,5 V:   2,5 A-V: -0,017 ct: -0,020   62/ 62  20%  2%  4,0% 2 0 
12%A:   2,6 V:   2,6 A-V:  0,005 ct: -0,019   63/ 63  20%  2%  4,0% 2 0 
12%A:   2,6 V:   2,6 A-V:  0,006 ct: -0,019   64/ 64  20%  2%  3,9% 2 0 
12%A:   2,7 V:   2,7 A-V: -0,014 ct: -0,020   65/ 65  20%  2%  3,9% 2 0 
11%A:   2,7 V:   2,7 A-V:  0,008 ct: -0,019   66/ 66  20%  1%  3,9% 2 0 
11%A:   2,8 V:   2,8 A-V:  0,009 ct: -0,018   67/ 67  20%  1%  3,8% 2 0 
11%A:   2,8 V:   2,8 A-V: -0,011 ct: -0,020   68/ 68  20%  1%  3,8% 2 0 
11%A:   2,8 V:   2,8 A-V:  0,011 ct: -0,018   69/ 69  20%  1%  3,8% 2 0 
11%A:   2,9 V:   2,9 A-V: -0,009 ct: -0,019   70/ 70  20%  1%  3,7% 2 0 
11%A:   2,9 V:   2,9 A-V: -0,008 ct: -0,020   71/ 71  20%  1%  3,7% 2 0 
11%A:   3,0 V:   3,0 A-V:  0,014 ct: -0,019   72/ 72  20%  1%  3,7% 2 0 
11%Uninit audio filters...
[libaf] Removing filter dummy
uninit audio: liba52
uninit video: xvid
DEMUXER: freeing demuxer at 0x8558190
Successfully enabled DPMS
alsa-uninit: pcm closed
vo: uninit ...

Exiting... (Quit)

The same skips I have using libavcodec to decode the movie. Other files 
without ac3 play fine. Even this file plays great if I use mencoder to 
get rid of the audio stream first (test-ntsc-ac3.avi -> test-ntsc.avi).

Well, I'm at a loss here. I can't get it to play fluent.

Can you guys help?

Thanks

Sebastian




More information about the MPlayer-users mailing list