2011-02-25 187 views
0

我想使用ffmpeg將avi文件轉換爲mp4格式,但它給了我一個錯誤。 在這方面的任何幫助將有所幫助。使用FFMPEG轉換AVI文件時出錯

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 

有人遇到過類似的問題嗎?

回答

0

根據this post

這意味着,編解碼器丟失,這裏IV41(英特爾的Indeo 4)。 Intel Indeo版本2和3在FFmpeg中有解碼器。 任何開源解碼器都不支持Indeo版本4和5。所以我們不能轉碼這個文件