简体   繁体   English

ffmpeg 无法提取所有帧

[英]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:这个视频是 15 FPS 45 秒,我得到这个结果:

 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 

声明:本站的技术帖子网页,遵循CC BY-SA 4.0协议,如果您需要转载,请注明本站网址或者原文地址。任何问题请咨询:yoyou2525@163.com.

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