Timelapse from image files in subfolders using FFMPEG

701 views Asked by At

Is it possible to search for image files in subfolders using FFMPEG? I'm creating a time lapse video file from jpegs and they are located in subfolders (for each recorded day).

Here is my current code, which will work if I run it in the folder with the image files, but it will not work if I try to run it on the parent folder (the folder containing the subfolders).

ffmpeg -framerate 50 -pattern_type glob -i '*.jpg' -c:v libx264 -pix_fmt yuv420p out3.mp4

Edit: I also tried this after the suggestion from @kesh

ffmpeg -framerate 50 -pattern_type glob -i '**/*.jpg' -c:v libx264 -pix_fmt yuv420p out3.mp4

What happens with that one is that it will indeed find the files in the subfolder but it only seems to encode the contents of the first subfolder.

0

There are 0 answers