<html>
  <head>
    <meta content="text/html; charset=utf-8" http-equiv="Content-Type">
  </head>
  <body bgcolor="#FFFFFF" text="#000000">
    <p><br>
    </p>
    <br>
    <div class="moz-cite-prefix">El 15/02/17 a las 03:58, Prakash Rokade
      escribió:<br>
    </div>
    <blockquote
cite="mid:CANQ5Z--sSraRdxODHXSe+vDg6aaxOwveE7nxR+2cpepw2hLnFg@mail.gmail.com"
      type="cite">
      <div dir="ltr">
        <div>Thanks Gonzalo,</div>
        <div><br>
        </div>
        <div>According to your suggestion i have written the below code
          can you check ones, because audio is written but in output
          file no audio is present.</div>
        <div><span style="font-size:12.8px"></span><br
            style="font-size:12.8px">
        </div>
      </div>
    </blockquote>
    You are opening the stream with AV_SAMPLE_FMT_S16 and then using
    sample_fmt[0]. That's inconsistent to say the least.<br>
    You are not using swresample to take one audio format to another.<br>
    You have a swscale ptr which has nothing to do with audio.<br>
    You are using the new API but are not handling the AVERROR(EAGAIN)
    cases.  For this trial, use the old api which is more reliable for
    muxing.<br>
    Try to get the sample in doc/examples working and slowly modify it
    to fit your need.<br>
    <pre class="moz-signature" cols="72">-- 
Gonzalo Garramuño</pre>
  </body>
</html>