title: ffmpeg convert without loss quality
body: <p>I need convert all videos to my video player (in website) when file type is other than flv/mp4/webm.</p>
  
  <p>When I use: <code>ffmpeg -i filename.mkv -sameq -ar 22050 filename.mp4</code> :</p>
  
  <blockquote>
    <p>[h264 @ 0x645ee0] error while decoding MB 22 1, bytestream (8786)</p>
  </blockquote>
  
  <p>My point is, what I should do, when I need convert file type: .mkv and other(not supported by jwplayer) to flv/mp4 without quality loss.</p>