[MPlayer-users] Seeks to a wrong position with -ss option in wmv files

Alejandro Vargas alejandro.anv at gmail.com
Thu Feb 8 19:28:19 CET 2007


2007/2/8, Alexander Roalter <alex at roalter.it>:
> would it not suffice to set keyframes to 24 (i.e. exactly the framerate
> of the video), so seeking in seconds-granularity should be possible.

man mplayer says keyint=xx is tye maximun interval between keyframes.
The encoder will insert a keyframe when a frame is very different from
the next (i.e. change from one scene to another) but key=xx will force
it to insert a keyframe even if it not necesary (this will allow you
to seek to this position). A good value for keyint is the framerate*10
that is to force the insertion of a keyframe every 10 seconds.

If you use 24, it will insert a keyframe every 24 frames that is about
one per second and you will be able to seek nearly a second.

-- 
Alejandro Vargas



More information about the MPlayer-users mailing list