[prev in list] [next in list] [prev in thread] [next in thread] 

List:       mplayer-users
Subject:    Re: [MPlayer-users] Mencoder seems to skip duplicate frames - switch?
From:       Hans Meine <meine () kogs1 ! informatik ! uni-hamburg ! de>
Date:       2003-03-10 19:41:07
[Download RAW message or body]

[Automatic answer: RTFM (read DOCS, FAQ), also read DOCS/bugreports.html]
Hi again!

Since my last message did not reach the list yet (at least I did not receive 
it), I am answering again to this. Some of the problems I mentioned in my 
last mail have gotten clear to me now.

- The fact that no code change did affect the output was wrong - I messed it 
up and played the wrong file for testing #-(
- Your change could not work in my change, because I use -ovc copy and thus 
the decode_video part you changed is in another case of the surrounding 
switch(mux->vcodec).
- BUT: setting skip_frame to zero if it was smaller than that (read: ignoring 
the command to duplicate a frame) seems to work!

Maybe the error is that in the above-mentioned switch(), in "case 
VCODEC_COPY:"  there is "if(skip_flag<=0) muxer_write_chunk(..." which fires 
if skip_flag is -1 (dup frame). OTOH, later there is "while(skip_flag<0){... 
muxer_write_chunk(mux_v,0,0);" which might be fine if mux->vcodec is 
something else, but if it is VCODEC_COPY or VCODEC_FRAMENO, 
muxer_write_chunk() has already been called.

I suspect putting the duplicate-frame handling into the default: case of the 
switch _could_ be a fix, but I am not sure here..

Ciao,
  Hans

_______________________________________________
RTFM!!!  http://www.MPlayerHQ.hu/DOCS
Search:  http://www.MPlayerHQ.hu/cgi-bin/htsearch
http://mplayerhq.hu/mailman/listinfo/mplayer-users
[prev in list] [next in list] [prev in thread] [next in thread] 

Configure | About | News | Add a list | Sponsored by KoreLogic