News for hackers. Stuff that matters.
Re:Make Timelapse easily using FFmpeg by _Microft on Sunday May 19, 2024 @12:07PM (#40407826)
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.

Re:Make Timelapse easily using FFmpeg by ncr100 on Sunday May 19, 2024 @12:32PM (#40408025)
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?
Re:Make Timelapse easily using FFmpeg by mhitza on Sunday May 19, 2024 @12:51PM (#40408151)
If I were yo guess, it might be using the GNU libc (or compatible) glob functionality under the hood.
Re:Make Timelapse easily using FFmpeg by philshem on Sunday May 19, 2024 @01:00PM (#40408208)
Also be aware of this infamous “bug”

> The sortedness of glob.glob's output is platform-dependent.

https://bugs.python.org/issue33275#msg315254

https://pubs.acs.org/doi/10.1021/acs.orglett.9b03216

Re:Make Timelapse easily using FFmpeg by dewey on Sunday May 19, 2024 @01:59PM (#40408566)
At least in this case you'd find out pretty quickly!
Re:Make Timelapse easily using FFmpeg by atif089 on Sunday May 19, 2024 @01:19PM (#40408317)
wsl --cd=%cd% ffmpeg -framerate 30 -pattern_type glob -i '*.JPG' -c:v libx264 -r 30 -pix_fmt yuv420p timelapse.mp4
Re:Make Timelapse easily using FFmpeg by gsich on Sunday May 19, 2024 @01:37PM (#40408421)
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