[Mplayer-advusers] PATCH - no frame output using yuv4mpeg

Alvaro Lopes alvieboy at alvie.com
Sat Nov 16 16:57:36 CET 2002


Hi all

Here's the problem: When you have two adjacent frames and the latter is 
exactly equal to the former, you usually do not need to blit the frame 
(it's already there). Althrough this works perfectly for video-out 
display devices (x11,sdl,etc..), it fails for disk-writer devices (such 
as yuv4mpeg). What happens in this case is second frame is not outputted 
to disk - and you'll get A/V desync for sure.

I have a small video here that demonstrates that, if anyone's interested.

So, I wrote a small patch which implements a new control event (which I 
call VOCTRL_DUPLICATE_FRAME), that is issued to the video out device 
when there is a frame change and no blitting was done/needed. The VO 
device then outputs again the last outputted frame (please check this 
part of the code in vo_yuv4mpeg.c, I'm not sure it's well written).

Please CC me on reply, I'm not on the mailing list.

Álvaro Lopes
-------------- next part --------------
A non-text attachment was scrubbed...
Name: patch-yuv4mpeg-framedrop.gz
Type: application/gzip
Size: 1357 bytes
Desc: not available
URL: <http://lists.mplayerhq.hu/pipermail/mplayer-advusers/attachments/20021116/582b7d51/attachment.bin>


More information about the MPlayer-advusers mailing list