[Libav-user] Seeking into an mxf file

Patrick Cusack patrickcusack at mac.com
Sun Mar 20 07:29:01 CET 2016


That didn’t work, but I tried the following which initially works:

if(av_seek_frame(pFormatCtx, videoStream, frame, AVSEEK_FLAG_FRAME) < 0){
            status = K_SEEK_FAILED;
            return;
        }

And If I seek with this method with mxf files it works at first, but if I seek again, the second seek doesn’t work. 

On Mar 19, 2016, at 3:09 AM, Gonzalo <ggarra13 at gmail.com> wrote:

> 
> Try the following:
>>     int seek_ts = frame * av_q2d( vStream->time_base );
> 
> -- 
> Gonzalo Garramuño
> ggarra13 at gmail.com
> _______________________________________________
> Libav-user mailing list
> Libav-user at ffmpeg.org
> http://ffmpeg.org/mailman/listinfo/libav-user

-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://ffmpeg.org/pipermail/libav-user/attachments/20160319/5025abf4/attachment.html>


More information about the Libav-user mailing list