ffmpeg Error: Pattern type 'glob' was selected but globbing is not support ed by this libavformat build

cyber101 picture cyber101 · Jul 3, 2015 · Viewed 13.5k times · Source

I'm trying to convert group of ".jpg" files acting as individual frames into 1 single mpeg video ".mp4"

Example parameters i used:

frame duration  = 2 secs
frame rate      = 30  fps
encoder         = libx264 (mpeg)
input pattern   = "*.jpg"
output pattern  = video.mp4

Based on ffmpeg wiki instructions at (https://trac.ffmpeg.org/wiki/Create%20a%20video%20slideshow%20from%20images), I issued this command:

ffmpeg -framerate 1/2 -pattern_type glob -i "*.jpg" -c:v libx264 -r 30 -pix_fmt yuv420p video.mp4

But I'm getting this error:

[image2 @ 049ab120] Pattern type 'glob' was selected but globbing is not 
supported by this libavformat build *.jpg: Function not implemented

Which probably means the API pattern matching commands for my build/version have changed. By the way this my windows 32bit ffmpeg download build (ffmpeg-20150702-git-03b2b40-win32-static).

How can I choose a group of files using pattern matching using ffmpeg?

Answer

aergistal picture aergistal · Jul 20, 2015

-pattern_type glob requires glob.h.

glob is defined in the POSIX standard and it's not available on Windows by default.

Create/rename your files using sequential file naming image###.jpg then use sequence wildcards like -i image%03d.jpg as input.