<html>
  <head>
    <meta content="text/html; charset=utf-8" http-equiv="Content-Type">
  </head>
  <body bgcolor="#FFFFFF" text="#000000">
    I am using "av_interleaved_write_frame" to write the video frames. 
    The plan is to add audio capture from a microphone as well.<br>
    <br>
    I noticed avio_close_dyn_buf is wanting a pointer to a buffer. 
    Since I don't explicitly create a buffer, I don't know where I
    should get it.<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 12:22 PM, cesar pachon wrote:<br>
    </div>
    <blockquote
cite="mid:CAKYPV5YaZo8gK9TSLEea=KG1=xQT9WQNwzZCO_ZpQQofZFUhbA@mail.gmail.com"
      type="cite">
      <div dir="ltr">maybe you are buffering the video before writing to
        the file? <br>
        <br>
        In my case I use a dynbuffer so I need to call
        avio_close_dyn_buf after avcodec_close, and sws_freeContext. <br>
        <br>
        <br>
      </div>
      <div class="gmail_extra"><br clear="all">
        <div>
          <div class="gmail_signature">
            <div dir="ltr">Cesar  Pachón<br>
-------------------------------------------------------------<br>
              <a moz-do-not-send="true"
                href="http://www.cesarpachon.com" target="_blank">www.cesarpachon.com</a>,
              just a digital hermit<br>
              <br>
            </div>
          </div>
        </div>
        <br>
        <div class="gmail_quote">On Thu, Aug 20, 2015 at 11:48 AM, Kevin
          J. Brooks <span dir="ltr"><<a moz-do-not-send="true"
              href="mailto:kbrooks@r2c-ss.com" target="_blank">kbrooks@r2c-ss.com</a>></span>
          wrote:<br>
          <blockquote class="gmail_quote" style="margin:0 0 0
            .8ex;border-left:1px #ccc solid;padding-left:1ex">
            <div alink="#EE0000" bgcolor="#ffffff" link="#0B6CDA"
              text="#000000" vlink="#551A8B"> Hello All,<br>
              <br>
              I am using the following function call to open the file
              for encoding video:<br>
              <br>
              avformat_alloc_output_context2(&<span
                style="font-weight:600">m_oc</span>, <span
                style="font-weight:600">m_fmt</span>, NULL,
              filePath.c_str());<br>
              <br>
              Then when I want to stop recording the video, I use this
              function to free it:<br>
              <br>
              avformat_free_context(<span style="font-weight:600">m_oc</span>);<br>
              <br>
              The issue is, if my program is still running and the user
              opens Windows Explorer, the file size is showing as zero. 
              Also, inside my program the user can browse the directory
              and delete videos.  If the user tries to delete a video
              that was created during the current session, the file will
              not delete.  The user can open it and play it, however.<br>
              <br>
              I am assuming there is another function call I need to
              make to properly close the file.  Can anyone tell me what
              call I am missing?<span class="HOEnZb"><font
                  color="#888888"><br>
                </font></span><br>
            </div>
          </blockquote>
        </div>
        <br>
      </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>