<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Strict//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-strict.dtd"><html xmlns="http://www.w3.org/1999/xhtml"><head>
    <meta http-equiv="Content-Type" content="text/html; charset=UTF-8" />
 
  <style type="text/css">.mceResizeHandle {position: absolute;border: 1px solid black;background: #FFF;width: 5px;height: 5px;z-index: 10000}.mceResizeHandle:hover {background: #000}img[data-mce-selected] {outline: 1px solid black}img.mceClonedResizable, table.mceClonedResizable {position: absolute;outline: 1px dashed black;opacity: .5;z-index: 10000}
.mceResizeHandle {position: absolute;border: 1px solid black;background: #FFF;width: 5px;height: 5px;}
.mceResizeHandle:hover {background: #000;}
img[data-mce-selected] {}
img.mceClonedResizable, table.mceClonedResizable {position: absolute;}
 </style>
 
 </head><body style="">
 
  <div>
   Anyone here ? I'm searching a solution since months and I didn't found it anywhere. Thank you.
  </div> 
  <blockquote style="position: relative; margin-left: 0px; padding-left: 10px; border-left: solid 1px blue;" type="cite">
   Le 24 septembre 2014 à 10:42, sbwn <*@sbwn.fr> a écrit :
   <br />
   <br /> 
   <div>
    <span>Hello,</span> 
    <br /> 
    <span>I'm trying to make a C++ program that convert music files, but it doesn't work.</span> 
    <br /> 
    <br /> 
    <span>main.cpp : http://pastebin.com/kTN45Fn1</span> 
    <br /> 
    <span>functions.cpp : http://pastebin.com/aRwdHxy7</span> 
    <br /> 
    <span>Makefile : http://pastebin.com/BzBEBicH</span> 
    <br /> 
    <span>Program output :</span>
   </div> 
   <dl class="codebox">
    <dd>
     [mp3 @ 0x21eb200] max_analyze_duration reached
     <br />Input #0, mp3, from 'test.mp3':
     <br />  Metadata:
     <br />    major_brand     : mp42
     <br />    minor_version   : 0
     <br />    compatible_brands: isommp42
     <br />    creation_time   : 2013-11-29 03:30:21
     <br />    encoder         : Lavf53.21.1
     <br />  Duration: 00:03:58.15, start: 0.000000, bitrate: 192 kb/s
     <br />    Stream #0.0: Audio: mp3, 44100 Hz, stereo, s16, 192 kb/s
     <br />Output #0, mp4, to 'out.mp4':
     <br />    Stream #0.0: Audio: libvorbis, 44100 Hz, stereo, s16, 192 kb/s
     <br />[mp4 @ 0x21ee5c0] Codec for stream 0 does not use global headers but container format requires global headers
     <br />audio encode error-22 Invalid argument
    </dd>
   </dl> 
   <div>
     
   </div> 
   <div>
    <span>avcodec_encode_audio2 returns -22 and the error string is "Invalid argument", I don't know more about the error</span>
   </div> 
   <div>
    <br /> 
    <span>Thank you to help me </span> 
    <img alt=":)" src="http://ffmpeg.gusari.org/images/smilies/icon_e_smile.gif" border="0" />
   </div> 
  </blockquote> 
  <div>
   <br /> 
  </div> 
  <blockquote style="position: relative; margin-left: 0px; padding-left: 10px; border-left: solid 1px blue;" type="cite">
   _______________________________________________
   <br />Libav-user mailing list
   <br />Libav-user@ffmpeg.org
   <br />http://ffmpeg.org/mailman/listinfo/libav-user
  </blockquote> 
  <div>
   <br /> 
  </div>
 
</body></html>