[MPlayer-users] DVD seeking and byte position

Thorben Kröger thorbenk at gmx.net
Fri Jan 28 17:42:44 CET 2005

On Friday, 28. January 2005 14:43, Nico Sabbi wrote:
> Thorben Kröger wrote:
> >However, I have no idea how to display the current byte position with
> > mplayer. If I could do that (and seeking to byte position is more
> > accurate than seeking with -ss) I could simply play the dvd with mplayer
> > and find the scene I want, then note down the byte position which mplayer
> > could display in some sort of debug output and then fire up mencoder and
> > encode the sequence I want.
> stream_tell(stream) is the byte position of the stream playing.
> stream is also accessible as demuxer->stream

Thanks! I changed the line in mplayer.c which prints the "==== PAUSE ====" 
line to display the current byte position. This seems to work fairly well 
together with -sb, but I'm still testing it.

--- mplayer.c   2004-12-21 13:25:58.000000000 +0100
+++ mplayer-new.c       2005-01-28 17:14:24.090238520 +0100
@@ -2601,7 +2601,7 @@
     mp_cmd_t* cmd;
       if(!quiet) {
-       mp_msg(MSGT_CPLAYER,MSGL_STATUS,MSGTR_Paused);
+       mp_msg(MSGT_CPLAYER,MSGL_STATUS,"==== PAUSED ==== at %lld 
 #ifdef HAVE_NEW_GUI


More information about the MPlayer-users mailing list