[MPlayer-dev-eng] [PATCH] stream dump: print progress information

Nicolas George nicolas.george at normalesup.org
Fri May 13 09:52:31 CEST 2011


Le quartidi 24 floréal, an CCXIX, Reimar Döffinger a écrit :
> If it doesn't get too confusing you could use stream pos to print the
> number of bytes read. Or possibly write exactly one of percent or number
> of bytes read depending on whether end_pos is available.

That is mostly what I do in the second version. More precisely, the number
of bytes actually written is always given (and it is much lower than
stream->pos for -dumpaudio for example), and if stream->end_pos and
stream->pos are consistent, there is a percentage in parentheses next to it.

Attached: new version with uint64_t and correct progress with -sb.

Regards,

-- 
  Nicolas George
-------------- next part --------------
A non-text attachment was scrubbed...
Name: 0001-stream-dump-print-progress-information.patch
Type: text/x-diff
Size: 4296 bytes
Desc: not available
URL: <http://lists.mplayerhq.hu/pipermail/mplayer-dev-eng/attachments/20110513/984571e2/attachment-0001.bin>


More information about the MPlayer-dev-eng mailing list