title: Using ffmpeg to convert flv to mp4 on debian 6
body: <p>I am using ffmpeg on debian version squeeze/sid to convert flv to mp4.I need to view final output on iphone, ipad. I have tried many different combinations but have not succeeded in converting the file properly.</p>
  
  <p>Information about the sample flv file is as follows - via command ffmpeg -i sample.flv </p>
  
  <pre><code>  FFmpeg version SVN-r0.5.9-4:0.5.9-0ubuntu0.10.04.1, Copyright (c) 2000-2009 Fabrice Bellard, et al.
    configuration: --extra-version=4:0.5.9-0ubuntu0.10.04.1 --prefix=/usr --enable-avfilter --enable-avfilter-lavf --enable-vdpau --enable-bzlib --enable-libgsm --enable-libschroedinger --enable-libspeex --enable-libtheora --enable-libvorbis --enable-pthreads --enable-zlib --disable-stripping --disable-vhook --enable-runtime-cpudetect --enable-gpl --enable-postproc --enable-swscale --enable-x11grab --enable-libdc1394 --enable-shared --disable-static
    libavutil     49.15. 0 / 49.15. 0
    libavcodec    52.20. 1 / 52.20. 1
    libavformat   52.31. 0 / 52.31. 0
    libavdevice   52. 1. 0 / 52. 1. 0
    libavfilter    0. 4. 0 /  0. 4. 0
    libswscale     0. 7. 1 /  0. 7. 1
    libpostproc   51. 2. 0 / 51. 2. 0
    built on Jun 12 2012 16:27:59, gcc: 4.4.3
  Input #0, flv, from 'sample.flv':
    Duration: 00:01:06.90, start: 2.079000, bitrate: N/A
      Stream #0.0: Video: flv, yuv420p, 352x200, 1k tbr, 1k tbn, 1k tbc
      Stream #0.1: Audio: nellymoser, 44100 Hz, mono, s16
  At least one output file must be specified
  </code></pre>
  
  <p>when i try using command - ffmpeg -i sample.flv -sameq -ar 22050 sample.mp4</p>
  
  <p>I get error with following output.</p>
  
  <pre><code>ffmpeg -i sample.flv -sameq -ar 22050 sample.mp4
  FFmpeg version SVN-r0.5.9-4:0.5.9-0ubuntu0.10.04.1, Copyright (c) 2000-2009 Fabrice Bellard, et al.
    configuration: --extra-version=4:0.5.9-0ubuntu0.10.04.1 --prefix=/usr --enable-avfilter --enable-avfilter-lavf --enable-vdpau --enable-bzlib --enable-libgsm --enable-libschroedinger --enable-libspeex --enable-libtheora --enable-libvorbis --enable-pthreads --enable-zlib --disable-stripping --disable-vhook --enable-runtime-cpudetect --enable-gpl --enable-postproc --enable-swscale --enable-x11grab --enable-libdc1394 --enable-shared --disable-static
    libavutil     49.15. 0 / 49.15. 0
    libavcodec    52.20. 1 / 52.20. 1
    libavformat   52.31. 0 / 52.31. 0
    libavdevice   52. 1. 0 / 52. 1. 0
    libavfilter    0. 4. 0 /  0. 4. 0
    libswscale     0. 7. 1 /  0. 7. 1
    libpostproc   51. 2. 0 / 51. 2. 0
    built on Jun 12 2012 16:27:59, gcc: 4.4.3
  Input #0, flv, from 'sample.flv':
    Duration: 00:01:06.90, start: 2.079000, bitrate: N/A
      Stream #0.0: Video: flv, yuv420p, 352x200, 1k tbr, 1k tbn, 1k tbc
      Stream #0.1: Audio: nellymoser, 44100 Hz, mono, s16
  Output #0, mp4, to 'sample.mp4':
      Stream #0.0: Video: mpeg4, yuv420p, 352x200, q=2-31, 200 kb/s, 90k tbn, 1k tbc
      Stream #0.1: Audio: 0x0000, 22050 Hz, mono, s16, 64 kb/s
  Stream mapping:
    Stream #0.0 -&gt; #0.0
    Stream #0.1 -&gt; #0.1
  Unsupported codec for output stream #0.1
  </code></pre>
  
  <p>I am not very conversant with ffmpeg and any help, pointers would highly appreciated.</p>
  
  <p>Many thanks is advance.</p>