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

Alexander Roalter alex at roalter.it
Thu Feb 8 15:44:56 CET 2007


Alejandro Vargas wrote:
> 2007/2/8, Morris Beverly <morrisb at avpresentations.com>:
>>> -ss does not start at the exact time given by you. It starts at the
>>> next keyframe after this time.
>>>
>> I would guess that you could transcode it to an avi to get relatively
>> frame accurate start times.
> 
> The only way to make -ss to start exactly at the point you given is to
> convert to avi with ALL KEYFRAMES, i.e. -avcopts key=1 or key=0 (I'm
> not sure) or using mjpeg. But the resulting file will be very big.
> 
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. 
Then there's still plenty of frames free to be compressed better than an 
entire frame. IIRC the mpeg stream of a DVD has a keyframe every 15 
frames???



More information about the MPlayer-users mailing list