ffmpeg-python
ffmpeg-python copied to clipboard
[image2 @ 000001edff239dc0] Pattern type 'glob' was selected but globbing is not supported by this libavformat build
When I try this:
ffmpeg \
.input(
"my/absolute/path/image%03d.png",
pattern_type="glob",
framerate=24,
bufsize="192k"
) \
.output("absolute/output/path/video.avi") \
.run()
I get this error:
ffmpeg version git-2019-12-07-ff2b75d Copyright (c) 2000-2019 the FFmpeg developers
built with gcc 9.2.1 (GCC) 20191125
configuration: --enable-gpl --enable-version3 --enable-sdl2 --enable-fontconfig --enable-gnutls --enable-iconv --enable-libass --enable-libdav1d --enable-libbluray --enable-libfreetype --enable-libmp3lame --enable-libopencore-amrnb --enable-libopencore-amrwb --enable-libopenjpeg --enable-libopus --enable-libshine --enable-libsnappy --enable-libsoxr --enable-libtheora --enable-libtwolame --enable-libvpx --enable-libwavpack --enable-libwebp --enable-libx264 --enable-libx265 --enable-libxml2 --enable-libzimg --enable-lzma --enable-zlib --enable-gmp --enable-libvidstab --enable-libvorbis --enable-libvo-amrwbenc --enable-libmysofa --enable-libspeex --enable-libxvid --enable-libaom --enable-libmfx --enable-ffnvcodec --enable-cuvid --enable-d3d11va --enable-nvenc --enable-nvdec --enable-dxva2 --enable-avisynth --enable-libopenmpt --enable-amf
libavutil 56. 36.101 / 56. 36.101
libavcodec 58. 64.101 / 58. 64.101
libavformat 58. 35.101 / 58. 35.101
libavdevice 58. 9.101 / 58. 9.101
libavfilter 7. 68.100 / 7. 68.100
libswscale 5. 6.100 / 5. 6.100
libswresample 3. 6.100 / 3. 6.100
libpostproc 55. 6.100 / 55. 6.100
[image2 @ 000001edff239dc0] Pattern type 'glob' was selected but globbing is not supported by this libavformat build
C:\Users\myzel\PycharmProjects\data_to_qr\tmp\image%03d.png: Function not implemented
I followed this: https://stackoverflow.com/questions/31201164/ffmpeg-error-pattern-type-glob-was-selected-but-globbing-is-not-support-ed-by and #180 but it still doesn`t work.
Any progress ? Or at least workarounds ?
Any progress ? Or at least workarounds ?
I ended up using shell to call ffmpeg. This provides more flexibility and is easier in my opinion.
Removing the "pattern_type" and keeping the correct padding syntax (%04d for padding 4), eg:
.input(f'{folder}/{filename}.%04d.jpg', framerate=24)
worked for me.