<html>
  <head>
    <meta content="text/html; charset=ISO-8859-1"
      http-equiv="Content-Type">
  </head>
  <body bgcolor="#FFFFFF" text="#000000">
    On 9/27/2011 10:21 AM, Nicolas George wrote:
    <blockquote cite="mid:20110927172140.GA15693@phare.normalesup.org"
      type="cite">
      <pre wrap="">Le quintidi 5 vendémiaire, an CCXX, Isaac Wang a écrit :
</pre>
      <blockquote type="cite">
        <pre wrap="">I'm trying to find the correct PTS value for a H.264 video being
streamed via UDP.  I'm trying to use the AVFrame's
best_effort_timestamp function after calling avcodec_decode_video2,
but all I'm getting are very large negative values (i.e.
-9223372036854775808).  Has anyone had experience using
best_effort_timestamp or know of a way to find accurate PTS values?
</pre>
      </blockquote>
      <pre wrap="">
The value you give looks like AV_NOPTS_VALUE. AFAIK, there are no timestamps
in elementary H.264 packets, and neither are there in UDP packets, so unless
you are using some higher format or protocol in between, you can not expect
to get timestamps at all.

Regards,

</pre>
      <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>
    Thank you for your reply -- what 'higher format' would you recommend
    I use for streaming then?<br>
  </body>
</html>