I want to covert the input video file to a set of WebP images: one for each frame.
I’m trying to use the common video-to-images pattern:
ffmpeg -i input.mp4 -f image2 frame%04d.webp
But all I get is a single animated file frame0001.webp
Is there any param to force ffmpeg to generate a separate file for each frame?
Otez7 is a new contributor to this site. Take care in asking for clarification, commenting, and answering.
Check out our Code of Conduct.
You could let ffmpeg create a png file for each frame and then convert the png files to webp afterwards.
ffmpeg -i input.mp4 -vf "fps=1" frame%04d.png