<html>
  <head>
    <meta content="text/html; charset=ISO-8859-1"
      http-equiv="Content-Type">
  </head>
  <body text="#000000" bgcolor="#FFFFFF">
    <div class="moz-cite-prefix">Am 19.07.2013 02:26, schrieb James
      Board:<br>
    </div>
    <blockquote
      cite="mid:1374193578.37761.YahooMailNeo@web163905.mail.gq1.yahoo.com"
      type="cite">
      <div style="color:#000; background-color:#fff; font-family:times
        new roman, new york, times, serif;font-size:12pt">
        <div><span><br>
          </span></div>
        <div><br>
        </div>
        <div style="font-family: times new roman, new york, times,
          serif; font-size: 12pt;">
          <div style="font-family: times new roman, new york, times,
            serif; font-size: 12pt;">
            <div dir="ltr">
              <hr size="1"> <font size="2" face="Arial"> <b><span
                    style="font-weight:bold;">From:</span></b> Thomas
                <a class="moz-txt-link-rfc2396E" href="mailto:zengaja@gmx.de"><zengaja@gmx.de></a><br>
                <b><span style="font-weight: bold;">To:</span></b> "This
                list is about using libavcodec, libavformat, libavutil,
                libavdevice and libavfilter."
                <a class="moz-txt-link-rfc2396E" href="mailto:libav-user@ffmpeg.org"><libav-user@ffmpeg.org></a> <br>
                <b><span style="font-weight: bold;">Sent:</span></b>
                Thursday, July 18, 2013 8:55 AM<br>
                <b><span style="font-weight: bold;">Subject:</span></b>
                Re: [Libav-user] How to decode arbitrary frame<br>
              </font> </div>
            <div class="y_msg_container"><br>
              <div id="yiv8486094409">
                <div>>You can use avformat_seek_file() followed by
                  avcodec_flush_buffers() before av_read_frame() to jump
                  to an arbitrary position in the Stream.<br>
                  <br>
                  Thank you.  That works.  But I have an question.  Will
                  avformat_seek_file()<br>
                  seek to the exact frame, or merely to the nearest key
                  frame?  I'm coding a<br>
                  video editor and I need to seek to exact frames.  My
                  input<br>
                </div>
              </div>
              format, for now, are raw formats where all frames are
              stored in<br>
              full such as rawuyvy, or raw422P.  Will
              avformat_seek_file()<br>
              seek to the exact frame in those raw formats</div>
          </div>
        </div>
      </div>
    </blockquote>
    I'm reading raw rgb and uncompressed v210 in avi container. Here it
    finds the correct frames when setting min_ts ts and max_ts to the
    same value. With mov files avformat_seek_file() doesn't seem to
    work.<br>
    <br>
    <blockquote
      cite="mid:1374193578.37761.YahooMailNeo@web163905.mail.gq1.yahoo.com"
      type="cite">
      <div style="color:#000; background-color:#fff; font-family:times
        new roman, new york, times, serif;font-size:12pt">
        <div style="font-family: times new roman, new york, times,
          serif; font-size: 12pt;">
          <div style="font-family: times new roman, new york, times,
            serif; font-size: 12pt;">
            <div class="y_msg_container">, and will it also seek to the
              exact frame if I use it on MPEG-type formats?<br>
            </div>
          </div>
        </div>
      </div>
    </blockquote>
    I Diddnt try with interframe coded material, but i guess you can
    only search for I-frames and you will need to decode the whole GOP
    to process get to the frames inbetween.
    <blockquote
      cite="mid:1374193578.37761.YahooMailNeo@web163905.mail.gq1.yahoo.com"
      type="cite">
      <div style="color:#000; background-color:#fff; font-family:times
        new roman, new york, times, serif;font-size:12pt">
        <div style="font-family: times new roman, new york, times,
          serif; font-size: 12pt;">
          <div style="font-family: times new roman, new york, times,
            serif; font-size: 12pt;">
            <div class="y_msg_container"><br>
              Thank you.<br>
              <br>
            </div>
          </div>
        </div>
      </div>
      <br>
      <fieldset class="mimeAttachmentHeader"></fieldset>
      <br>
      <pre wrap="">_______________________________________________
Libav-user mailing list
<a class="moz-txt-link-abbreviated" href="mailto:Libav-user@ffmpeg.org">Libav-user@ffmpeg.org</a>
<a class="moz-txt-link-freetext" href="http://ffmpeg.org/mailman/listinfo/libav-user">http://ffmpeg.org/mailman/listinfo/libav-user</a>
</pre>
    </blockquote>
    <br>
  </body>
</html>