简体   繁体   中英

ffmpeg can't extract all frames

I need to extract all frames from a video.

I have tried this command:

ffmpeg -i battle1.avi outN-%d.png 

This video is 15 FPS with 45 seconds and I get this result:

 Could not get frame filename number 2 from pattern 'outN-d.png'. Use '-frames:v 1' for a single image, or '-update' option, or use a pattern such as %03d within the filename.
av_interleaved_write_frame(): Invalid argument

there is a way to solve?

Thanks !

In your batch file you need to escape the % with, ironically, a % :

ffmpeg -i battle1.avi outN-%%d.png 

The technical post webpages of this site follow the CC BY-SA 4.0 protocol. If you need to reprint, please indicate the site URL or the original address.Any question please contact:yoyou2525@163.com.

 
粤ICP备18138465号  © 2020-2024 STACKOOM.COM