Using the ffplay.c hack to get a frame PTS (which is explained reasonably
well in the dranger.com tutorial), coupled with the start frame pts and the
time_base, it's trivial to convert between frame numbers and pts. So you can
with a few lines of code seek to a frame number.
However, without the use of the ffmpeg-fas code, you won't get frame
accurate seeking; but in many applications you can work around this (using
the seek backward flag and discarding frames you don't need, for example)
_______________________________________________
libav-user mailing list
[email protected]
https://lists.mplayerhq.hu/mailman/listinfo/libav-user

Reply via email to