[MPlayer-users] Re: seeks: relative verus absolute versus percentual

Alban Bedel albeu at free.fr
Wed Sep 3 21:36:17 CEST 2003


Hi Martin Grim,

on Wed, 03 Sep 2003 20:43:07 +0200 you wrote:

> [Automatic answer: RTFM (read DOCS, FAQ), also read
> DOCS/bugreports.html] Hi folks,
> 
> Did anybody ever experient with seeking back and forth in MPEG2 files?
> Upto now I did not manage to do absolute nor percentual seeks in slave
> mode. Especially backwards (to the absoluut beginning of the movie)
> doesn't seem to work. 
> 
> I do something like
> 
>     $ little_test | mplayer -slave movie.mpg
> 
> with little_test doing something like the following:
> 
> int main()
> {
>     printf("pause\n"); fflush(stdout);
> 
>     while(true)
>     {
>         printf("pause\n"); fflush(stdout);          // unpause the movie
-         printf("seek 20 type=0\n"); fflush(stdout); // rel. seek to 20
+         printf("seek 20 0\n"); fflush(stdout); // rel. seek to 20
>         sec
> 
>         sleep(30);   // play movie for about 30 seconds
> 
-         printf("seek 0 type=2\n"); fflush(stdout);    // abs. seek to
+        printf("seek 0 2\n"); fflush(stdout);    // abs. seek to
>         begin
>                                                       // of the movie
>         printf("pause\n"); fflush(stdout);            // pause the movie
>     }
> }
> 
> 
> For some reason it seems that I can only search backwards by relative
> seeks. Is this a problem of MPEG2 or is something wrong with my mplayer?
> I've searched the documentation, bug reports and archive, but didn't
> find anything useful.
Try these commadns instead, it should work.

Also pls next time you start a thread don't REPLY to a random message.
Use the COMPOSE button in your mua instead.
	Albeu
-- 

Everything is controlled by a small evil group
to which, unfortunately, no one we know belongs.




More information about the MPlayer-users mailing list