ffmpeg - 使用 FFMPEG 转换 AVI 文件时出错

标签 ffmpeg mp4 avi

我正在尝试使用 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

有人遇到过类似的问题吗?

最佳答案

根据this post :

This means that a codec is missing, here IV41(Intel Indeo 4). Intel Indeo versions 2 and 3 have decoders in FFmpeg. Indeo version 4 and 5 are not supported by any open source decoders. So we cannot trans-code this file.

关于ffmpeg - 使用 FFMPEG 转换 AVI 文件时出错,我们在Stack Overflow上找到一个类似的问题: https://stackoverflow.com/questions/5118765/

相关文章:

ffmpeg - 使用 aac 编码自定义构建的 ffmpeg

video - ffmpeg 2.4.2 连接 mp4 文件

video - 为什么ffmpeg-split AVI电影在播放时会卡住

flash - 如何在浏览器上播放avi文件

python - ffmpeg rtmp 在 youtube 上播放速度低于 1x

video - 如何插入帧以补偿捕获期间丢失的帧

Python - 按照序列在txt上插入行而不覆盖

actionscript-3 - AAC/MP4 在 ActionScript 3 的 NetStream 中不起作用

python - 如何在 python 中使用 FFmpeg 和 subprocess 模块将 .mp4 视频文件转换为 .yuv (YUV420),反之亦然?

file - 从 avi 文件中提取正确的创建日期