[MPlayer-dev-eng] Jerky playback

Zoltan Hidvegi mplayer at hzoli.2y.net
Sun Jul 20 07:16:06 CEST 2003


With the latest CVS I get a jerky playback on some mpeg4 videos.  I've
uploaded a sample to ftp://ftp.mplayerhq.hu/MPlayer/incoming/jerky.avi
(1 megabyte).  It seems to be the result of the following change, it
does not happen if I back these out:

2003-07-17 07:51  michael

        * libmpcodecs/vd_ffmpeg.c: new ff_draw_horiz_band()

2003-07-17 07:29  michaelni

        * libavcodec/: avcodec.h, h263dec.c, huffyuv.c, mpeg12.c,
        mpegvideo.c, mpegvideo.h, svq1.c, utils.c: AVCodec.flush()
        ff_draw_horiz_band() in coded order / cleanup

I'm using vo=xv with nVidia GeForce4-Ti 4200 and the XFree86 nv
driver.

Zoli


The mplayer -v output:

MPlayer dev-CVS-030719-02:12-3.3.1 (C) 2000-2003 MPlayer Team
CPU: Advanced Micro Devices  (Family: 6, Stepping: 1)
Detected cache-line size is 64 bytes
CPUflags:  MMX: 1 MMX2: 1 3DNow: 1 3DNow2: 1 SSE: 1 SSE2: 0
Compiled for x86 CPU with extensions: MMX MMX2 3DNow 3DNowEx SSE

Reading config file /etc/mplayer/mplayer.conf
Reading config file /home/hzoli/.mplayer/config
Reading /home/hzoli/.mplayer/codecs.conf: can't open '/home/hzoli/.mplayer/codecs.conf': No such file or directory
Reading /etc/mplayer/codecs.conf: 60 audio & 147 video codecs
CommandLine: '-v' 'jerky.avi'
get_path('font/font.desc') -> '/home/hzoli/.mplayer/font/font.desc'
font: can't open file: /home/hzoli/.mplayer/font/font.desc
Font /usr/share/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/hzoli/.mplayer/input.conf'
Can't open input config file /home/hzoli/.mplayer/input.conf: No such file or directory
Parsing input config file /etc/mplayer/input.conf
Input config file /etc/mplayer/input.conf parsed: 52 binds
Setting up LIRC support...
mplayer: could not connect to socket
mplayer: Connection refused
Failed to open LIRC support.
You will not be able to use your remote control.
get_path('jerky.avi.conf') -> '/home/hzoli/.mplayer/jerky.avi.conf'

Playing jerky.avi
Not an URL!
 [file] File size is 1048576 bytes
STREAM: [file] jerky.avi
STREAM: Description: File
STREAM: Author: Albeu
STREAM: Comment: based on the code from ??? (probably Arpi)
AVI file format detected.
list_end=0x144
======= AVI Header =======
us/frame: 33366  (fps=29.971)
max bytes/sec: 0
padding: 0
MainAVIHeader.dwFlags: (2320) HAS_INDEX IS_INTERLEAVED TRUST_CKTYPE
frames  total: 53868   initial: 0
streams: 2
Suggested BufferSize: 0
Size:  480 x 360
list_end=0xD4
==> Found video stream: 0
======= STREAM Header =======
Type: vids   FCC:  (0)
Flags: 0
Priority: 0   Language: 0
InitialFrames: 0
Rate: 299699/10000 = 29.970
Start: 0   Len: 53868
Suggested BufferSize: 41069
Quality 0
Sample size: 0
found 'bih', 40 bytes of 40
======= VIDEO Format ======
  biSize 40
  biWidth 480
  biHeight 360
  biPlanes 1
  biBitCount 24
  biCompression 1482049860='DIVX'
  biSizeImage 518400
===========================
Regenerating keyframe table for DIVX 4 video
list_end=0x144
==> Found audio stream: 1
======= STREAM Header =======
Type: auds   FCC:  (0)
Flags: 0
Priority: 0   Language: 0
InitialFrames: 0
Rate: 48000/1152 = 41.667
Start: 0   Len: 74913
Suggested BufferSize: 960
Quality 0
Sample size: 0
found 'wf', 28 bytes of 18
======= WAVE Format =======
Format Tag: 85 (0x55)
Channels: 2
Samplerate: 48000
avg byte/sec: 15652
Block align: 1152
bits/sample: 0
cbSize: 12
mp3.wID=1
mp3.fdwFlags=0x2
mp3.nBlockSize=1152
mp3.nFramesPerBlock=1
mp3.nCodecDelay=401
list_end=0x17C
hdr=Software  size=35
Software  : MEncoder dev-CVS-030530-15:07-3.3 
Broken chunk?  chunksize=1660  (id=JUNK)
list_end=0xAE47540
Found movie at 0x80C - 0xAE47540
stream_seek: WARNING! Can't seek to 0xAE47540 !
Auto-selected AVI audio ID = 1
Auto-selected AVI video ID = 0
AVI: Searching for audio stream (id:1)
AVI video size=154170462 (53868)  audio size=28140918
VIDEO:  [DIVX]  480x360  24bpp  29.97 fps  686.2 kbps (83.8 kbyte/s)
 [V] filefmt:3  fourcc:0x58564944  size:480x360  fps:29.97  ftime:=0.0334
Clip info:
 Software: MEncoder dev-CVS-030530-15:07-3.3 
get_path('sub/') -> '/home/hzoli/.mplayer/sub/'
get_path('default.sub') -> '/home/hzoli/.mplayer/default.sub'
==========================================================================
Opening audio decoder: [mp3lib] MPEG layer-2, layer-3
dec_audio: Allocating 4608 + 65536 = 70144 bytes for output buffer
mp3lib: made decode tables with MMX optimization
mp3lib: using 3DNow!Ex optimized decore!
MP3lib: init layer2&3 finished, tables done

MPEG 1.0, Layer III, 48000 Hz 40 kbit Joint-Stereo, BPF: 120
Channels: 2, copyright: No, original: Yes, CRC: No, emphasis: 0
AUDIO: 48000 Hz, 2 ch, 16 bit (0x10), ratio: 5000->192000 (40.0 kbit)
Selected audio codec: [mp3] afm:mp3lib (mp3lib MPEG layer-2, layer-3)
==========================================================================
X11 opening display: :0.0
vo: X11 color mask:  FFFFFF  (R:FF0000 G:FF00 B:FF)
vo: X11 running at 1600x1200 with depth 24 and 32 bpp (":0.0" => local display)
 [x11] Unknown wm type...
Disabling DPMS
DPMSDisable stat: 1
==========================================================================
Opening video decoder: [ffmpeg] FFmpeg's libavcodec codec family
INFO: libavcodec init OK!
Selected video codec: [ffodivx] vfm:ffmpeg (FFmpeg 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)
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:  16/16  (4096 bytes/frag)  free:  65536
AO: [oss] 48000Hz 2ch Signed 16-bit (Little-Endian) (2 bps)
AO: Description: OSS/ioctl audio output
AO: Author: A'rpi
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...
XXX initial  v_pts=0.000  a_pos=8184 (0.523) 
This file was encoded with libavcodec build 4668
 [ffmpeg] aspect_ratio: 1.333333
VDec: vo config request - 480 x 360 (preferred csp: Planar YV12)
Trying filter chain: vo
VDec: using Planar YV12 as output csp (no 0)
Movie-Aspect is 1.33:1 - prescaling to correct movie aspect.
VO Config (480x360->480x360,flags=0,'MPlayer',0x32315659)
VO: [xv] 480x360 => 480x360 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: 0x32315659 (YV12) planar
Xvideo image format: 0x59565955 (UYVY) packed
Xvideo image format: 0x30323449 (I420) planar
using Xvideo port 62 for hw scaling
 [xv] dx: 0 dy: 0 dw: 480 dh: 360
*** [vo] Allocating (slices) mp_image_t, 480x368x12bpp YUV planar, 264960 bytes
 [xv] dx: 0 dy: 0 dw: 480 dh: 360
A:   0.1 V:   0.0 A-V:  0.029 ct:  0.000    1/  1   0%  0%  0.0% 0 0 0%
*** [vo] Allocating (slices) mp_image_t, 480x368x12bpp YUV planar, 264960 bytes
A:   0.1 V:   0.1 A-V:  0.021 ct:  0.002    2/  2   0%  0%  0.0% 0 0 0%
*** [vo] Allocating (slices) mp_image_t, 480x368x12bpp YUV planar, 264960 bytes
A:   0.1 V:   0.1 A-V:  0.010 ct:  0.003    3/  3   0%  0%  0.0% 0 0 0%
A:   0.2 V:   0.1 A-V:  0.018 ct:  0.005    4/  4   0%  0%  0.0% 0 0 0%
A:   0.2 V:   0.2 A-V:  0.007 ct:  0.006    5/  5   0%  0%  0.0% 0 0 0%
A:   0.2 V:   0.2 A-V:  0.006 ct:  0.006    6/  6   0%  0%  0.0% 0 0 0%
A:   0.2 V:   0.2 A-V:  0.016 ct:  0.008    7/  7   0%  0%  0.0% 0 0 0%
A:   0.3 V:   0.3 A-V:  0.014 ct:  0.009    8/  8   0%  0%  0.0% 0 0 0%
A:   0.3 V:   0.3 A-V:  0.012 ct:  0.010    9/  9   0%  0%  0.0% 0 0 0%
A:   0.3 V:   0.3 A-V:  0.002 ct:  0.011   10/ 10   0%  0%  0.0% 0 0 0%
A:   0.4 V:   0.4 A-V:  0.011 ct:  0.012   11/ 11   0%  0%  0.0% 0 0 0%
A:   0.4 V:   0.4 A-V:  0.010 ct:  0.013   12/ 12   0%  0%  0.0% 0 0 0%
A:   0.4 V:   0.4 A-V:  0.009 ct:  0.014   13/ 13   0%  0%  0.0% 0 0 0%
A:   0.5 V:   0.5 A-V:  0.008 ct:  0.014   14/ 14   0%  0%  0.0% 0 0 0%
A:   0.5 V:   0.5 A-V: -0.002 ct:  0.014   15/ 15   0%  0%  0.0% 0 0 0%
A:   0.5 V:   0.5 A-V:  0.007 ct:  0.015   16/ 16   7%  4%  0.8% 0 0 0%
Uninit audio filters...
 [libaf] Removing filter dummy 
uninit audio: mp3lib
uninit video: ffmpeg
DEMUXER: freeing demuxer at 0x85718a0  
Successfully enabled DPMS
vo: uninit ...

Exiting... (Quit)



More information about the MPlayer-dev-eng mailing list