5 ms·
ffmpeg is such a great tool! Be aware that -pattern_type glob is not supported on Windows, though, iirc. A workaround is to name your jpegs with consecutive nu
by _Microft 2y ago
ffmpeg is such a great tool!
Be aware that -pattern_type glob is not supported on Windows, though, iirc. A workaround is to name your jpegs with consecutive numbers (not necessarily starting at 0) and use a pattern with a counter placeholder in it instead.
- ancientstraits 2y agoHmm, I wonder why `-pattern_type glob` doesn't work on Windows. Perhaps it is something that could easily be programmed into the source code?
- mhitza 2y agoIf I were yo guess, it might be using the GNU libc (or compatible) glob functionality under the hood.
- ncr100 2y agoObligatory humor: https://youtu.be/9kaIXkImCAM https://youtu.be/9kaIXkImCAM Note of support: ffmpeg supported many of the transcoding needs of my former employer back in 2007, being a "friendly" tool to the team. Yes it had/s issue. Being open source gave us a lifeline, to be able to fix our own stuff, and build up our video and audio live streaming and video watching white label service.
- philshem 2y agoAlso be aware of this infamous “bug” > The sortedness of glob.glob's output is platform-dependent. https://bugs.python.org/issue33275#msg315254 https://bugs.python.org/issue33275#msg315254 https://pubs.acs.org/doi/10.1021/acs.orglett.9b03216 https://pubs.acs.org/doi/10.1021/acs.orglett.9b03216
- dewey 2y agoAt least in this case you'd find out pretty quickly!
- atif089 2y agowsl --cd=%cd% ffmpeg -framerate 30 -pattern_type glob -i '*.JPG' -c:v libx264 -r 30 -pix_fmt yuv420p timelapse.mp4
- gsich 2y agoCorrect, most annoying bug there is.
- canucker2016 2y agoOr you can use '-f concat' and specify a text file with the explicit order of image files to be used as input - no need to hope and pray that the wildcard will pick the files in the correct order. see https://trac.ffmpeg.org/wiki/Concatenate https://trac.ffmpeg.org/wiki/Concatenate or https://shotstack.io/learn/use-ffmpeg-to-concatenate-video/ https://shotstack.io/learn/use-ffmpeg-to-concatenate-video/
- gmiller123456 2y agoI use -pattern_type glob on Windows without issue. Not sure how long I've been using it, at least a year, possibly two. This is what I use: ffmpeg -framerate 30 -pattern_type glob -i '*.jpg' -c:v libx264 -pix_fmt yuv420p out.mp4