windows – ffmpeg convert images in a folder with no defined start number
I’m setting up a batch file to daily convert a folder of screen captures to video.
I can specify the filename of the screen caps, but I can’t get it to reset each day, so say 2 might start at 03213. Without renaming the files is a way to either
- get ffmepg to find the start number and go to the oldest newest file or
- read the start and end file names in the batch file and plug that into the ffmpeg command?
this is my current command:
ffmpeg.exe -f image2 -framerate 25 -pattern_type sequence -start_number 00001 -i "Y:\ft\!new_folder!\%%05d.jpg" -c:v libx265 -b:v 5000k -g 100 "Y:\ft\!new_folder!.mp4"
Read more here: Source link