[MPlayer-dev-eng] [PATCH] rawvideo percent complete

Andrew Wason rectalogic at rectalogic.com
Mon Aug 4 18:35:23 CEST 2008


When transcoding from raw video, the raw demuxer does not set demuxer
filepos and so the mencoder statusline percent complete output remains
stuck at zero.

i.e. transcoding from rawvideo
$ mencoder bits0001.yuv -demuxer rawvideo -rawvideo
w=1440:h=1080:format=yv12:fps=240000/8008 -aspect 16:9 -ovc copy -o
out.avi

Results in this:
Pos:  10.5s    314f ( 0%)  8.27fps Trem:   0min   0mb  A-V:0.000 [559312:0]

instead of this:
Pos:  10.5s    314f (11%) 10.24fps Trem:   3min 6059mb  A-V:0.000 [559312:0]



Index: libmpdemux/demux_rawvideo.c
===================================================================
--- libmpdemux/demux_rawvideo.c	(revision 27415)
+++ libmpdemux/demux_rawvideo.c	(working copy)
@@ -114,6 +114,7 @@
   if(demuxer->stream->eof) return 0;
   if(ds!=demuxer->video) return 0;
   pos = stream_tell(demuxer->stream);
+  demuxer->filepos = pos;
   ds_read_packet(ds,demuxer->stream,imgsize,(pos/imgsize)*sh->frametime,pos,0x10);
   return 1;
 }



More information about the MPlayer-dev-eng mailing list