<html>
  <head>
    <meta content="text/html; charset=utf-8" http-equiv="Content-Type">
  </head>
  <body bgcolor="#FFFFFF" text="#000000">
    Yes I am calling av_write_trailer() when I stop recording.<br>
    <br>
    <div class="moz-cite-prefix">
      <meta http-equiv="content-type" content="text/html; charset=utf-8">
      <title></title>
      Sincerely,<span style="font-size:12.0pt;color:#0070C0"><br>
        Kevin J. Brooks<o:p></o:p></span><span
        style="font-size:12.0pt;color:#0070C0"><br>
        Senior Software Engineer<o:p></o:p></span><span
        style="font-size:14.0pt;color:black;mso-themecolor: text1"><br>
        R2C Support Services<o:p></o:p></span><span
        style="font-size:14.0pt;color:black;mso-themecolor: text1"></span><br>
      <br>
      On 8/20/2015 2:17 PM, Carl Eugen Hoyos wrote:<br>
    </div>
    <blockquote cite="mid:loom.20150820T211405-547@post.gmane.org"
      type="cite">
      <pre wrap="">Kevin J. Brooks <a class="moz-txt-link-rfc2396E" href="mailto:kbrooks@..."><kbrooks@...></a> writes:

</pre>
      <blockquote type="cite">
        <pre wrap="">avformat_alloc_output_context2(&m_oc, m_fmt, NULL, filePath.c_str());

Then when I want to stop recording the video, 
I use this function to free it:

avformat_free_context(m_oc);
</pre>
      </blockquote>
      <pre wrap="">
Are you calling av_write_trailer()?

Unrelated:

</pre>
      <blockquote type="cite">
        <pre wrap="">A non-text attachment was scrubbed...
Name: sdvosb.png
Type: image/png
Size: 145202 bytes
</pre>
      </blockquote>
      <pre wrap="">
I consider this huge / too big.
This is a significantly smaller alternative:
<a class="moz-txt-link-freetext" href="http://netdes.com/uploads/images/sdvosb_1.jpg">http://netdes.com/uploads/images/sdvosb_1.jpg</a>

I strongly believe the png you used has been 
a jpg in the past...

Carl Eugen

_______________________________________________
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>