[Mplayer-users] frame dropping?

Christoph H. Lampert gruel at gmx.de
Mon May 7 09:08:17 CEST 2001


Am Montag,  7. Mai 2001 02:06 schrieben Sie:
> Hi,
>
> I've just add a big hack code to mplayer, it should do
> frame dropping for VfW/DShow Win32 codecs.
> (mpeg is not yet supported...)
>
> The last number of the status line is the dropped frame counter.
> It will begin to drop frames when video has >=0.1 sec delay.
>
> Test it, maybe it's broken :(

Indeed it does drops frames. But somehow wrong: In first file sound skips as 
well, A-V goes up 80 here and then some buffer overflows. Perhaps you don't 
calculate skip into V-counter? 


v: audio_delay=-0.163  buffer_delay=0.372  a.pts=0.792  v.pts=0.584
A: 122.7  V:  41.9  A-V: 80.868  ct:  1.973  1006  21%   7%  26.2% 715
DEMUXER: Too many (2026 in 8398526 bytes) video packets in the buffer!
(maybe you play a non-interleaved stream/file or video codec failed)
ds_fill_buffer: EOF reached (stream: audio)
A: 163.6  V:  85.1  A-V: 78.545  ct:  4.043  2041  38%  15%  13.1% 718



With another file, A-V stays near 0, but audio skips (video, too) and 
audio is about 1 second too early (or video too late). 

gruel 

--------------- log of first file -----------------------

MPlayer 0.17cvs-010507-08:30  (C) 2000-2001 Arpad Gereoffy 
<arpi at thot.banki.hu>

Reading config file: /etc/mplayer.conf
Reading config file: /home/lampert/.mplayer/config
CommandLine: '-v' '-vo' 'xv' '/windows/F/Battlefield Earth.avi.gnut'
Reading /home/lampert/.mplayer/codecs.conf: 14 audio & 25 video codecs
Font /home/lampert/.mplayer/font/font.desc loaded successfully! (140 chars)
Detected AVI file format!
======= AVI Header =======
us/frame: 41708  (fps=23.976)
max bytes/sec: 0
padding: 0
flags: (272) HAS_INDEX IS_INTERLEAVED
frames  total: 170834   initial: 0
streams: 2
Suggested BufferSize: 0
Size:  640 x 272
==> Found video stream: 0
======= STREAM Header =======
Type: vids   FCC: div4 (34766964)
Flags: 0
Priority: 0   Language: 0
InitialFrames: 0
Rate: 23976/1000 = 23.976
Start: 0   Len: 170834
Suggested BufferSize: 50761
Quality -1
Sample size: 0
found 'bih', 40 bytes of 40
==> Found audio stream: 1
======= STREAM Header =======
Type: auds   FCC:  (0)
Flags: 0
Priority: 0   Language: 0
InitialFrames: 1
Rate: 44100/1152 = 38.281
Start: 0   Len: 272759
Suggested BufferSize: 626
Quality -1
Sample size: 0
found 'wf', 30 bytes of 20
======= WAVE Format =======
Format Tag: 85 (0x55)
Channels: 2
Samplerate: 44100
avg byte/sec: 14353
Block align: 1152
bits/sample: 0
cbSize: 12
Found movie at 0x280C - 0x282E83EA
stream_seek: WARNING! Can't seek to 0x282E83EA !
Auto-selected AVI audio ID = 1
Auto-selected AVI video ID = 0
AVI: Searching for audio stream (id:1)
AVI video length=673854055
VIDEO:  [DIV3]  640x272  24bpp  23.98 fps  756.6 kbps (92.4 kbyte/s)
[V] filefmt:3  fourcc:0x33564944  size:640x272  fps:23.98  ftime:=0.0417
Found audio codec: [mp3acm] drv:4 (MPEG layer-3)
Initializing audio codec...
======= Win32 (ACM) AUDIO Codec init =======
Loading DLL: /usr/lib/win32/l3codeca.acm  OK
Audio codec opened OK! ;-)
Audio ACM output buffer min. size: 18432
Audio ACM input buffer min. size: 2992
AUDIO: samplerate=44100  channels=2  bps=2
Found video codec: [divxds] drv:4 (DivX ;-) (MS MPEG-4 v3))
vo_debug: query(0x32595559) returned 0x1
vo_debug1: out_fmt=0x32595559
Loading DLL: /usr/lib/win32/divx_c32.ax  OK
Using DirectShow codec: divx_c32.ax
DShow: using YUY2 colorspace
DivX setting result = 0
INFO: Win32/DShow video codec init OK!
vo_debug2: out_fmt=0x32595559
VO: [xv] 640x272 => 640x272  YUY2
video_out->init(640x272->640x272,flags=0,'MPlayer',0x32595559)
vo_debug3: out_fmt=0x32595559
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 36 for hw scaling
[xv] dcx: 4 dcy: 20 dx: 0 dy: 0 dw: 640 dh: 272
INFO: Video OUT driver init OK!
Audio buffer size: 65536 bytes, delay: 0.372s
AVI Initial frame delay: 0.042
v: audio_delay=-0.042  buffer_delay=0.372  a_pts=-0.372  a_frame=-0.372
START:  a_pts=0.000  v_pts=0.000
Start playing...
[xv] dcx: 4 dcy: 20 dx: 0 dy: 0 dw: 640 dh: 272
Initial PTS delay: -0.121 sec  (calculated: -0.330)
v: audio_delay=-0.163  buffer_delay=0.372  a.pts=0.792  v.pts=0.584
A: 122.7  V:  41.9  A-V: 80.868  ct:  1.973  1006  21%   7%  26.2% 715
DEMUXER: Too many (2026 in 8398526 bytes) video packets in the buffer!
(maybe you play a non-interleaved stream/file or video codec failed)
ds_fill_buffer: EOF reached (stream: audio)
A: 163.6  V:  85.1  A-V: 78.545  ct:  4.043  2041  38%  15%  13.1% 718
Exiting... (Quit)
max framesize was 14226 bytes




>
>
> A'rpi / Astral & ESP-team
>
> --
> mailto:arpi at thot.banki.hu
> http://esp-team.scene.hu
>
> _______________________________________________
> Mplayer-users mailing list
> Mplayer-users at lists.sourceforge.net
> http://lists.sourceforge.net/lists/listinfo/mplayer-users

_______________________________________________
Mplayer-users mailing list
Mplayer-users at lists.sourceforge.net
http://lists.sourceforge.net/lists/listinfo/mplayer-users



More information about the MPlayer-users mailing list