<html><body><div style="color:#000; background-color:#fff; font-family:times new roman, new york, times, serif;font-size:12pt">>> Anyway, it sounds like pts and best_effort_timestamp are really frame<br><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">>> numbers<br>><br>>No, they are not. It is the case if timebase = 1/framerate but that is<br>>not guaranteed at all and should be seen as a special case, unless for<br>>some reason you know all your files are that way (and they typically<br>>aren't).<br><br>Okay.  My files all come from the same source.  So if I check to see<br>if timebase = 1/framerate, and if it is, then I can use pts or <br>best_effort_timestamp as the frame numbers (assuming stream.start_time<br>is zero).<br><br>Why would timebase be anything other than
 1/framerate?  I thought timebase<br>was in fact defined as 1/framerate.  That's what avcodec.h says.<br><br></div> </div> </div>  </div></body></html>