[Libav-user] Seeking into an mxf file
Patrick Cusack
patrickcusack at mac.com
Fri Mar 18 20:57:36 CET 2016
I am trying to seek into an mxf file and am not having any success. I know that my timebase numerator is 1001 and my duration is 10808.I should be able to seek to frame 5 with the following:
int frame = 5;
int flgs = AVSEEK_FLAG_ANY;
int seek_ts = frame * vStream->time_base.num;
if(av_seek_frame(pFormatCtx, videoStream, seek_ts, flgs) < 0){
status = K_SEEK_FAILED;
return;
}
When the code begins to seek, it returns a value less than 0 and usually takes a long time. Can anyone see what I am doing wrong?
Thanks,
Patrick
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://ffmpeg.org/pipermail/libav-user/attachments/20160318/f49bdc47/attachment.html>
More information about the Libav-user
mailing list