[MPlayer-dev-eng] [PATCH]mencoder frame duplication bug

Jan Kritzner kritzner at i4.informatik.rwth-aachen.de
Wed Dec 18 15:09:19 CET 2002


2nd try with [PATCH] in subject

Hello,

I've used mencoder to transcode videos with variable frame-rates to avi-Files 
with a fixed frame-rate.
The input file was a video with a frame rate of 10fps and presentation 
timestamps in the file. Assume that frames 10-19 have been lost.

MPlayer does the right thing, presents frame 9 for 1.1 seconds, and continues 
with frame 20.

MEncoder calculates the right "frame_time", but duplicates the frame following 
the gap, i.e. frame 20 is presented for 1.1 seconds.

FIX:

Update
"v_timer_corr-=frame_time-(float)mux_v->h.dwScale/mux_v->h.dwRate;"
before the number of skips is calculated.

Should be a trivial fix, but I haven't looked at side-effects.
Jan 

Diff against CVS 20021217.

-------------- next part --------------
A non-text attachment was scrubbed...
Name: MencoderFrameDuplication
Type: text/x-diff
Size: 584 bytes
Desc: not available
URL: <http://lists.mplayerhq.hu/pipermail/mplayer-dev-eng/attachments/20021218/c0e279c7/attachment.diff>


More information about the MPlayer-dev-eng mailing list