<html><head><meta http-equiv="Content-Type" content="text/html charset=windows-1252"></head><body style="word-wrap: break-word; -webkit-nbsp-mode: space; -webkit-line-break: after-white-space;">That didn’t work, but I tried the following which initially works:<div><br></div><div><div style="margin: 0px; font-size: 11px; font-family: Menlo; color: rgb(79, 129, 135);"><span style="color: #bb2ca2">if</span><span style="color: #000000">(</span><span style="color: #31595d">av_seek_frame</span><span style="color: #000000">(</span>pFormatCtx<span style="color: #000000">, </span>videoStream<span style="color: #000000">, frame, </span><span style="color: #78492a">AVSEEK_FLAG_FRAME</span><span style="color: #000000">) < </span><span style="color: #272ad8">0</span><span style="color: #000000">){</span></div><div style="margin: 0px; font-size: 11px; font-family: Menlo;"> <span style="color: #4f8187">status</span> = <span style="color: #31595d">K_SEEK_FAILED</span>;</div><div style="margin: 0px; font-size: 11px; font-family: Menlo;"> <span style="color: #bb2ca2">return</span>;</div><div style="margin: 0px; font-size: 11px; font-family: Menlo;"> }</div></div><div style="margin: 0px; font-size: 11px; font-family: Menlo;"><br></div><div style="margin: 0px; font-size: 11px; font-family: Menlo;">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. </div><div><br><div><div>On Mar 19, 2016, at 3:09 AM, Gonzalo <<a href="mailto:ggarra13@gmail.com">ggarra13@gmail.com</a>> wrote:</div><br class="Apple-interchange-newline"><blockquote type="cite">
<meta content="text/html; charset=utf-8" http-equiv="Content-Type">
<div bgcolor="#FFFFFF" text="#000000">
<br>
Try the following:<br>
<blockquote cite="mid:E5D51545-4891-4C6A-B8FC-6D665D0F2E7F@mac.com" type="cite">
<meta http-equiv="Content-Type" content="text/html; charset=utf-8">
<div>
<div style="margin: 0px; font-size: 11px; font-family: Menlo;">
<span style="color: #bb2ca2">int</span> seek_ts = frame * <span style="color: rgb(39, 42, 216);">av_q2d(
vStream->time_base</span> );</div>
</div>
</blockquote>
<br>
<pre class="moz-signature" cols="72">--
Gonzalo Garramuño
<a class="moz-txt-link-abbreviated" href="mailto:ggarra13@gmail.com">ggarra13@gmail.com</a>
</pre>
</div>
_______________________________________________<br>Libav-user mailing list<br><a href="mailto:Libav-user@ffmpeg.org">Libav-user@ffmpeg.org</a><br>http://ffmpeg.org/mailman/listinfo/libav-user<br></blockquote></div><br></div></body></html>