[MPlayer-users] -ss switch broken in current 3-pass-mode of mencoder
Arpi
arpi at thot.banki.hu
Thu Sep 12 01:21:02 CEST 2002
Hi,
> I have no idea what the exact problem is, but the problem disappears
i have. decoded_frames is counted from zero, even if you used -ss.
but the numbers in frameno.avi won't start at 0 if you used -ss.
> when I remove line 845 of mencoder.c which contains:
>
> if(demuxer2) demux_seek(demuxer2, d, 1);
>
>
> Any comments?
test this patch, please:
Index: mencoder.c
===================================================================
RCS file: /cvsroot/mplayer/main/mencoder.c,v
retrieving revision 1.158
diff -u -r1.158 mencoder.c
--- mencoder.c 10 Sep 2002 23:19:20 -0000 1.158
+++ mencoder.c 11 Sep 2002 23:18:06 -0000
@@ -978,7 +978,10 @@
int len=ds_get_packet(demuxer2->video,(unsigned char**) &start);
if(len<0){ at_eof=1;break;}
if(len==0) --skip_flag; else // duplicate
- if(len==4) next_frameno=start[0];
+ if(len==4){
+ if(next_frameno<0) decoded_frameno+=start[0];
+ next_frameno=start[0];
+ }
}
if(at_eof) break;
// if(skip_flag) printf("!!!!!!!!!!!!\n");
> BTW: the current ffmpeg's Makefile use the variable $(RANLIB), but it
> is not defined anywhere, so the make fails. Shouldn't configure set
> this variable?
hmm. it does set it now, at least i commited such patch some weeks ago.
A'rpi / Astral & ESP-team
--
Developer of MPlayer, the Movie Player for Linux - http://www.MPlayerHQ.hu
More information about the MPlayer-users
mailing list