Obligatory humor: 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.
Re:Make Timelapse easily using FFmpeg
by ancientstraits on Sunday May 19, 2024 @12:16PM
(#40407905)
Hmm, I wonder why `-pattern_type glob` doesn't work on Windows. Perhaps it is something that could easily be programmed into the source code?
If I were yo guess, it might be using the GNU libc (or compatible) glob functionality under the hood.
Also be aware of this infamous “bug”
> The sortedness of glob.glob's output is platform-dependent.
At least in this case you'd find out pretty quickly!
wsl --cd=%cd% ffmpeg -framerate 30 -pattern_type glob -i '*.JPG' -c:v libx264 -r 30 -pix_fmt yuv420p timelapse.mp4
Correct, most annoying bug there is.
Re:Make Timelapse easily using FFmpeg
by canucker2016 on Sunday May 19, 2024 @05:06PM
(#40409748)
Or 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 or https://shotstack.io/learn/use-ffmpeg-to-concatenate-video/
Re:Make Timelapse easily using FFmpeg
by gmiller123456 on Sunday May 19, 2024 @11:32PM
(#40412001)
I 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
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.