Page 1 of 1

[Feature request] Extract first frame of a video using "Batch convert"

Posted: Thu Feb 08, 2024 8:40 pm
by user123
Currently it is not possible and it gives an error " 0x0x0 : not a picture".
Would be nice if batch convert could extract the first frame from an mp4 video for example into any image format, at least png or jpg.

Re: [Feature request] Extract first frame of a video using "Batch convert"

Posted: Thu Feb 08, 2024 9:41 pm
by cday
user123 wrote: Thu Feb 08, 2024 8:40 pm Would be nice if batch convert could extract the first frame from an mp4 video for example into any image format, at least png or jpg.
Extract first frame from (normally) multiple videos?

Re: [Feature request] Extract first frame of a video using "Batch convert"

Posted: Tue Feb 13, 2024 9:35 pm
by user123
Yes, there are some videos that are just a static picture and there is no purpose for a video file for that.
But I already used this ffmpeg script in a bat file (extracts frame at 1 second):

Code: Select all

@echo off
set /p dir="Directory of mp4 files: "
mkdir "%dir%\VideoToImage"
for %%a in ("%dir%\*.mp4") do (
    ffmpeg -i "%%a" -vf "select=eq(n\,30)" -vframes 1 "%dir%\VideoToImage\%%~na.png"
)
echo Done!
pause