title: How to change sample rate in FFMPEG
body: <p>I use FFMPEG since few moments now and after asking for help here a first time about that, i was able to discover this command line that i use since then, for the conversion of .MP4 video to .FLV : <code>ffmpeg -i namefile.mp4 -c:v libx264 -crf 19 destinationfile.flv</code> .</p>
  
  <p>The results was simply amazing ! Perfect video and a lot less space needed. But i've try this same line for a new video and didn't work.</p>
  
  <p>This is what appears to me :</p>
  
  <pre><code>[libmp3lame @ 03eaf5a0] flv does not support that sample rate, choose from (44100, 22050, 11025).
  </code></pre>
  
  <p>After that, i've try theses commands lines</p>
  
  <pre><code>ffmpeg -i in.mp4 -c:v libx264 -b:v 500k -c:a copy out.flv 
  ffmpeg -i in.mp4 -c:v libx264 -ar 22050 -crf 19 out.flv
  </code></pre>
  
  <p>Without succes. So right now i just dont know what to do else to be able to convert this MP4 file to a FLV one, who is smaller in size and keep a perfect image, just like the others conversions made with the first code line before.</p>
  
  <p>Thanks for your help !</p>