FFmpeg无法读取现有的.bmp帧序列来制作.avi文件;怎么了?

时间:2013-09-29 00:39:32

标签: ffmpeg

假设当前目录包含.bmp格式的文件,名为IMG_0000.bmp,IMG_0001.bmp,依此类推。我需要从他们那里制作avi文件,将它们作为框架进行威胁。 FFmpeg给了我一个错误,我无法理解什么是错的。我收到了以下错误消息:

D:\WORK\MyFrames>"C:\Users\Den\Downloads\ffmpeg-latest-win32-static\ffmpeg-201 30928-git-c461265-win32-static\bin\ffmpeg.exe" -i d:\WORK\MyFrames\IMG_%4d.bmp
 -r 4 -vcodec h264 -y out.avi
ffmpeg version N-56715-gc461265 Copyright (c) 2000-2013 the FFmpeg developers built on Sep 28 2013 18:02:00 with gcc 4.8.1 (GCC)
configuration: --enable-gpl --enable-version3 --disable-w32threads --enable-av
isynth --enable-bzlib --enable-fontconfig --enable-frei0r --enable-gnutls --enab
le-iconv --enable-libass --enable-libbluray --enable-libcaca --enable-libfreetyp
e --enable-libgsm --enable-libilbc --enable-libmodplug --enable-libmp3lame --ena
ble-libopencore-amrnb --enable-libopencore-amrwb --enable-libopenjpeg --enable-l
ibopus --enable-librtmp --enable-libschroedinger --enable-libsoxr --enable-libsp
eex --enable-libtheora --enable-libtwolame --enable-libvidstab --enable-libvo-aa
cenc --enable-libvo-amrwbenc --enable-libvorbis --enable-libvpx --enable-libwavp
ack --enable-libx264 --enable-libxavs --enable-libxvid --enable-zlib
libavutil      52. 46.100 / 52. 46.100
libavcodec     55. 33.101 / 55. 33.101
libavformat    55. 18.104 / 55. 18.104
libavdevice    55.  3.100 / 55.  3.100
libavfilter     3. 88.100 /  3. 88.100
libswscale      2.  5.100 /  2.  5.100
libswresample   0. 17.103 /  0. 17.103
libpostproc    52.  3.100 / 52.  3.100
[image2 @ 022cfa60] Could find no file with path 'd:\WORK\MyFrames\IMG_%4d.bmp
' and index in the range 0-4
d:\WORK\Serega28-3\IMG_%4d.bmp: No such file or directory

1 个答案:

答案 0 :(得分:1)

错误消息说ffmpeg无法找到您的输入文件序列。

他们是如何编号的?如果他们被命名为'IMG_0001.bmp'等......你必须使用:

 fmpeg.exe" -r 4 -i d:\WORK\MyFrames\IMG_%04d.bmp -vcodec h264 -y out.avi