[MPlayer-users] playing, stopping, seeking

Stefan Lange hoirkman at gmx.de
Wed Jul 10 13:25:02 CEST 2002

Christian Ikenmeyer wrote:
> [Automatic answer: RTFM (read DOCS, FAQ), also read DOCS/bugreports.html]
> I start my mplayer playing an mpeg2 file without seeking to any position.
> Then I stop it. Not pause it. I really shut it down.
> And now I want to restart mplayer with seeking at the correct position.
> -ss doesn't work, because one second i type in the command line is not one
> second in the mpeg file. The difference between -ss 40 and -ss 41 is about
> 5 seconds. So i cannot just check the time it was running.
> How can I seek to the position I was?

You can only seek to positions where the file has keyframes. So let's 
assume your file has keyframes in 5s-intervals, let's say at 33s, 38s, 
43s, 48s, 53s and so on
then -ss 40 will end up at the closest keyframe, which is in this 
example 38s
with -ss 42 the closest keyframe will be 43s, so you'll end up at 43s


More information about the MPlayer-users mailing list