开发者

ffmpeg convert variable framerate movie to pics

开发者 https://www.devze.com 2023-01-24 11:43 出处:网络
is it possible to use ffmpeg to convert a movie with variable framerate to a sequence of still pics without duplicates?

is it possible to use ffmpeg to convert a movie with variable framerate to a sequence of still pics without duplicates? I tried something like:

ffmpeg -i vid.avi pic%d.png

but each frame generates thousands of pictures. I also tried:

ffmpeg 开发者_运维问答-i vid.avi -r 10 pic%d.png

but I still have lots of duplicates AND some frames are missing

is it possible to specify something like "-r natural"???

TIA


A bit late, but...

ffmpeg -vsync 2 -i <input movie> <output with %d>

will do the trick. For example:

ffmpeg -vsync 2 -i "C:\Test.mp4" "C:\Thumbnails\Test%d.jpg"

will create exactly one jpeg per frame in the C:\Thumbnails folder, and each jpeg will be sequentially numbered with no gaps or duplicates in numbering.

0

精彩评论

暂无评论...
验证码 换一张
取 消