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 <[email protected]> wrote:

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

_______________________________________________
Libav-user mailing list
[email protected]
http://ffmpeg.org/mailman/listinfo/libav-user

Reply via email to