[MPlayer-users] seeking to frame and pausing

The Wanderer inverseparadox at comcast.net
Sat Oct 23 21:11:26 CEST 2004


Ricardo Kleemann wrote:

> Hi,
> 
> How would I run mplayer such that it seeks to a certain frame (or to
> a certain time setting in the movie) and then pauses?
> 
> I want to be able to pause at the same location automatically.

To the best of my knowledge this cannot at present be done directly, but
it may be possible to do it indirectly via slave mode. I've just done a
little experimenting (since I've not used slave mode before), and while
it won't give you second-precise much less frame-precise seeking, the
command

==
echo pause | mplayer <filename> -ss <time> -slave
==

should seek to as close as it can to the correct offset and then pause
immediately. In my tests, some files got to within less than a second of
the correct offset, and others were off by nearly ten seconds - but
other than that it behaved as expected.

If you want to know more, my only advice offhand is to read both the
manual and DOCS/tech/slave.txt and see what you can figure out. (The
latter, at least, is - based on my own experience of a few minutes ago -
not really fully newbie-friendly. Then again, slave mode isn't really
intended for newbie users...)

-- 
       The Wanderer

Warning: Simply because I argue an issue does not mean I agree with any
side of it.

A government exists to serve its citizens, not to control them.




More information about the MPlayer-users mailing list