本人做了个小小的视频网站,但是在用ffmpeg将MP4文件转成flv格式是遇到以下异常:
ffmpeg version N-34031-ge403a97, Copyright (c) 2000-2011 the FFmpeg developers
  built on Oct 25 2011 15:06:47 with gcc 4.6.1
  configuration: --enable-gpl --enable-version3 --enable-runtime-cpudetect --enable-avisynth --enable-bzlib --enable-frei0r --enable-libopencore-amrnb --enable-libopencore-amrwb --enable-libfreetype --enable-libgsm --enable-libmp3lame --enable-libopenjpeg --enable-librtmp --enable-libschroedinger --enable-libspeex --enable-libtheora --enable-libvo-aacenc --enable-libvo-amrwbenc --enable-libvorbis --enable-libvpx --enable-libx264 --enable-libxavs --enable-libxvid --enable-zlib
  libavutil    51. 22. 0 / 51. 22. 0
  libavcodec   53. 23. 0 / 53. 23. 0
  libavformat  53. 17. 0 / 53. 17. 0
  libavdevice  53.  4. 0 / 53.  4. 0
  libavfilter   2. 45. 0 /  2. 45. 0
  libswscale    2.  1. 0 /  2.  1. 0
  libpostproc  51.  2. 0 / 51.  2. 0
Input #0, mov,mp4,m4a,3gp,3g2,mj2, from 'E:\bea\user_projects\domains\yst_domain\autodeploy\MySNS\videos/temp/瀹堟硶鍏皯.MP4':
  Metadata:
    major_brand     : isom
    minor_version   : 512
    compatible_brands: isomiso2avc1mp41
    creation_time   : 1970-01-01 00:00:00
    encoder         : Lavf52.39.2
  Duration: 01:56:39.23, start: 0.000000, bitrate: 851 kb/s
    Stream #0:0(und): Video: h264 (High) (avc1 / 0x31637661), yuv420p, 1024x576 [SAR 1:1 DAR 16:9], 794 kb/s, 24 fps, 24 tbr, 48 tbn, 48 tbc
    Metadata:
      creation_time   : 1970-01-01 00:00:00
    Stream #0:1(und): Audio: aac (mp4a / 0x6134706D), 44100 Hz, stereo, s16, 51 kb/s
    Metadata:
      creation_time   : 1970-01-01 00:00:00
Please use -b:a or -b:v, -b is ambiguous
[buffer @ 02AA63A0] w:1024 h:576 pixfmt:yuv420p tb:1/1000000 sar:1/1 sws_param:
[scale @ 02AA65E0] w:1024 h:576 fmt:yuv420p -> w:320 h:240 fmt:yuv420p flags:0x4
The bitrate parameter is set too low. It takes bits/s as argument, not kbits/s
Output #0, flv, to 'E:\bea\user_projects\domains\yst_domain\autodeploy\MySNS\/videos/0cfda930-9cac-408d-8874-38c38f3b8498.flv':
  Metadata:
    major_brand     : isom
    minor_version   : 512
    compatible_brands: isomiso2avc1mp41
    creation_time   : 1970-01-01 00:00:00
    encoder         : Lavf53.17.0
    Stream #0:0(und): Video: flv1 ([2][0][0][0] / 0x0002), yuv420p, 320x240 [SAR 4:3 DAR 16:9], q=2-31, 1 kb/s, 1k tbn, 15 tbc
    Metadata:
      creation_time   : 1970-01-01 00:00:00
    Stream #0:1(und): Audio: mp3 ([2][0][0][0] / 0x0002), 22050 Hz, stereo, s16, 0 kb/s
    Metadata:
      creation_time   : 1970-01-01 00:00:00
Stream mapping:
  Stream #0.0 -> #0.0 (h264 -> flv)
  Stream #0.1 -> #0.1 (aac -> libmp3lame)
Press [q] to stop, [?] for help
frame=   40 fps=  0 q=0.0 size=      22kB time=00:00:01.25 bitrate= 142.7kbits/s dup=0 drop=22    
frame=   80 fps= 80 q=0.0 size=      77kB time=00:00:03.91 bitrate= 160.1kbits/s dup=0 drop=46    
lame: output buffer too small (buffer index: 9579, free bytes: 213)
Audio encoding failed