我正在尝试使用 ffmpeg 将 avi 文件转换为 mp4 格式,但是它给了我一个错误。在这方面的任何帮助都会有所帮助。
ffmpeg -y -i /var/www/crittermedia/data/tmp/fe0246a73843ee4dab856e7af517fcdd.avi -r 20 -g 40 -acodec libfaac -ar 44100 -ab 96k -vcodec libx264 -sameq -vpre medium /var/www/crittermedia/data/videos/fe0246a73843ee4dab856e7af517fcdd.mp4
它适用于其他格式,如 flv、mov 文件,但不适用于 avi。ffmpeg给出的错误如下:
FFmpeg version 0.6.1, Copyright (c) 2000-2010 the FFmpeg developers
built on Feb 19 2011 19:03:56 with gcc 4.4.5
configuration: --enable-gpl --enable-version3 --enable-nonfree --enable-postproc --enable-libfaac --enable-libmp3lame --enable-libopencore-amrnb --enable-libopencore-amrwb --enable-libtheora --enable-libvorbis --enable-libvpx --enable-libx264 --enable-libxvid --enable-x11grab
libavutil 50.15. 1 / 50.15. 1
libavcodec 52.72. 2 / 52.72. 2
libavformat 52.64. 2 / 52.64. 2
libavdevice 52. 2. 0 / 52. 2. 0
libswscale 0.11. 0 / 0.11. 0
libpostproc 51. 2. 0 / 51. 2. 0
[avi @ 0x1c56460]max_analyze_duration reached
Input #0, avi, from '/var/www/crittermedia/data/tmp/fe0246a73843ee4dab856e7af517fcdd':
Duration: 00:00:06.25, start: 0.000000, bitrate: 1071 kb/s
Stream #0.0: Video: IV41 / 0x31345649, 256x240, 40 fps, 40 tbr, 40 tbn, 40 tbc
swScaler: Unknown format is not supported as input pixel format
Cannot get resampling context
有人遇到过类似的问题吗?