on Oct 8, 2017 at 8:25:03 pm Last Edited By Lopici Gaspar on Oct 8, 2017 at 8:28:22 pm
Using ffmpeg, I am writing a script to create thumbnails, at every 5 sec, from 100s of videos of different filetypes (.mp4, .mts, .avi, .wmv), all videos being in one folder. I am having trouble to figure out how to handle the thumbnail filenames, so (i) it preserves the video's filename (without extension), yet (ii) appends with a __timestamp corresponding with the actual seconds of the thumbnails taken (e.g., __0005, __0010, __0015... up to __5400, in case of a 90 min video).
ffmpeg is installed: C:\ffmpeg
source videos' dir: C:\video
thumbnails to be placed: C:\thumb
intended thumbnail filename output (e.g., from 2 videos):
video-1__0005.png or jpg
video-2__0005.png or jpg