<html>
  <head>
    <meta http-equiv="Content-Type" content="text/html; charset=utf-8">
  </head>
  <body text="#000000" bgcolor="#FFFFFF">
    <p><br>
    </p>
    <br>
    <div class="moz-cite-prefix">El 29/08/18 a las 04:22, Ramana Jajula
      escribió:<br>
    </div>
    <blockquote type="cite"
cite="mid:CABsiuwqfBk6V1shWP=TUTTo2NjeMNa_Mr8f2GFhMpV=Mn-bQaQ@mail.gmail.com">
      <meta http-equiv="content-type" content="text/html; charset=utf-8">
      <div dir="ltr">Hi, I am trying to get back the original audio mp3
        file by audio encoding. I have got the .bin file by doing the
        audio decoding(.mp3 file) first. Now I want to get back the .mp3
        file by doing audio encoding. Here is the file for audio
        decoding <a href="https://codepad.co/snippet/NeHLFtzR"
          moz-do-not-send="true">my_audio_decoding.c</a>.(took 2 args
        input file and output file). Now I am doing audio encoding, file
        below:
        <div>
          <div>   </div>
          <div>           fwrite(pkt->data, 1, pkt->size, output);</div>
        </div>
      </div>
    </blockquote>
    It was already pointed to you that you are not using libavformat to
    do the encoding as you are relying on stdio functions.<br>
    Look for the examples with av_interleaved_write_frame() to do it
    properly.<br>
    <br>
    <pre class="moz-signature" cols="72">-- 
Gonzalo Garramuño</pre>
  </body>
</html>