FFMpeg和png图像出错(glob / libavformat)

时间:2013-05-31 22:19:19

标签: ffmpeg

我正在尝试使用FFMpeg根据几个png图像生成动画 不遵循序列号。同 the following command line

ffmpeg -f image2 -r 1 -pattern_type glob -i '*.png' -c:v libx264 mov.mp4

我收到以下错误

ffmpeg version N-53033-g56ba331 Copyright (c) 2000-2013 the FFmpeg developers
built on May 13 2013 22:18:29 with gcc 4.7.3 (GCC)
configuration: --enable-gpl --enable-version3 --disable-w32threads
--enable-avisynth --enable-bzlib --enable-fontconfig --enable-frei0r
--enable-gnutls --enable-iconv --enable-libass --enable-libbluray
--enable-libcaca --enable-libfreetype --enable-libgsm --enable-libilbc 
--enable-libmp3lame --enable-libopencore-amrnb --enable-libopencore-amrwb 
--enable-libopenjpeg --enable-libopus --enable-librtmp
--enable-libschroedinger --enable-libsoxr --enable-libspeex
--enable-libtheora --enable-libtwolame --enable-libvo-aacenc
--enable-libvo-amrwbenc --enable-libvorbis --enable-libvpx --enable-libx264 
--enable-libxavs --enable-libxvid --enable-zlib
  libavutil      52. 31.100 / 52. 31.100
  libavcodec     55.  9.100 / 55.  9.100
  libavformat    55.  7.100 / 55.  7.100
  libavdevice    55.  0.100 / 55.  0.100
  libavfilter     3. 65.100 /  3. 65.100
  libswscale      2.  3.100 /  2.  3.100
  libswresample   0. 17.102 /  0. 17.102
  libpostproc    52.  3.100 / 52.  3.100
[image2 @ 0268b600] Pattern type 'glob' was selected but globbing is not 
supported by this libavformat build
'*.png': Function not implemented

我正在使用Windows 7。

1 个答案:

答案 0 :(得分:4)

和你一样 can see here, 要使globbing工作,您需要glob.h

从我的快速查看MinGW-w64不包含此文件,因此您需要使用Cygwin编译器。然而,这可能并不理想,因为生成的FFmpeg需要Cygwin dll。