On Sun, 21 Sep 2014 20:00:26 +0530 Ankush <[email protected]> wrote:
> Hi, > I am working with avseek_frame() using bytes. I figured out the calculation > for the timestamp value of the video stream from the frame number but > couldn't figure out a way to calculate the approriate timestamp for the audio > stream from the sample number. Any help here could be really useful. > > Thank you That may be impossible. Just do timestamp seeks directly (and also use AVSEEK_FLAG_BACKWARD). That might be unreliable too (depending on the format), and the only absolutely reliable way to do sample-exact seeking is decoding the file from the start and skipping samples until you reached the target. _______________________________________________ Libav-user mailing list [email protected] http://ffmpeg.org/mailman/listinfo/libav-user
