First create a chaifen folder to save images. video.avi is the source video to be split.
- Save one image per frame of the video
ffmpeg -i video.avi chaifen/%06d.png
- Save 20 images per second of the video
ffmpeg -i video.avi -r 20 chaifen/%06d.png
- Save one image every ten seconds of the video
ffmpeg -i video.avi -r 0.1 chaifen/%06d.png
Command Explanation
Add -y before -i to overwrite existing images
-f image2
-----------------------------------
©Copyright belongs to the author: from 51CTO blog, author fengyuzaitu
https://blog.51cto.com/fengyuzaitu/2805731
暂无评论。