[FFmpeg-user] Issue with "%04d" when creating image sequence from a video

JJ jo paologrosso1999 at gmail.com
Fri Jan 20 01:37:16 EET 2023

I'm new and I don't know if it's the right way to ask for a problem. I have
a problem when attempting to create an image sequence from an mkv file.
This is the code i put in a *.bat file:

ffmpeg -i input.mkv %04d.jpg

I think I wrote it right, but it gives me a directory error which you can
see in the attached image.
The "%" char is not recognized as part of "%04d" function, but it is
replaced with the directory, and this generate a single wrong directory.
The the first frame is being saved, instead for the others it asks me to
overwrite the first one because it doesn't increase the final number to be
assigned to the frame name.
FFmpeg is correctly installed, I checked, and I even tried older versions,
but the result is the same.

Please let me know if you need any additional information.

Thank you for your time and assistance.

Best regards,
-------------- next part --------------
A non-text attachment was scrubbed...
Name: Error message.png
Type: image/png
Size: 123981 bytes
Desc: not available
URL: <https://ffmpeg.org/pipermail/ffmpeg-user/attachments/20230120/29256ed6/attachment.png>

More information about the ffmpeg-user mailing list