Most likely time info is wrong: pts values or time base.<div><br></div><div>Run the file through ffmpeg.exe with acodec and vcodec set to copy.</div><div><br></div><div>This will remux the file and yield compliant (though not necessarily correct) timestamps.</div><div><br></div><div>If the remuxed version plays ok, examine it to find out it<span></span>s time base and the pts values of a few samples from each stream the. Try to match that in your code.</div><div><br></div><div>Cheers</div><div>Rob<br><br>On Wednesday, October 14, 2015, Kevin J. Brooks <<a href="mailto:kbrooks@r2c-ss.com">kbrooks@r2c-ss.com</a>> wrote:<br><blockquote class="gmail_quote" style="margin:0 0 0 .8ex;border-left:1px #ccc solid;padding-left:1ex">
  

    
  
  <div bgcolor="#FFFFFF" text="#000000">
    I am successfully recording video and audio captured from devices
    attached to the computer.  However, when the file is played back
    using Windows Media player, the progress slider at the bottom is not
    updated.  I do write the trailer just before calling
    avformat_free_context with my output context at the parameter.  Also
    if you bring up the properties on the file I does not show the
    length of the video in the details.  Can anyone point me in the
    right direction to fix this issue?<br>
    <br>
    <div>-- <br>
      
      
      Sincerely,<span style="font-size:12.0pt;color:#0070c0"><br>
        Kevin J. Brooks<u></u><u></u></span><span style="font-size:12.0pt;color:#0070c0"><br>
        Senior Software Engineer<u></u><u></u></span><span style="font-size:14.0pt;color:black"><br>
      </span><br>
    </div>
  </div>

</blockquote></div>