ffmpeg将avi拆分成具有已知帧速率的帧 [英] ffmpeg split avi into frames with known frame rate

查看:182
本文介绍了ffmpeg将avi拆分成具有已知帧速率的帧的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

我将此作为此相关主题发表的评论。但是,他们似乎已经不注意了=(

I posted this as comments under this related thread. However, they seem to have gone unnoticed =(

我已经使用了

ffmpeg -i myfile.avi -f image2 image-%05d.bmp

code> myfile.avi 存储为 .bmp 文件的框架,似乎除了不完整的工作外,录制视频时,我以 1000fps 的速度录制,视频原来是 2min29sec long。如果我的数学是正确的,那应该对于整个视频,总共总共为<149,000帧,但是当我运行

to split myfile.avi into frames stored as .bmp files. It seemed to work except not quite. When recording my video, I recorded at a rate of 1000fps and the video turned out to be 2min29sec long. If my math is correct, that should amount to a total of 149,000 frames for the entire video. However, when I ran

ffmpeg -i myfile.avi -f image2 image-%05d.bmp

我只获取了4472个文件,我得到原来的149k框架?

I only obtained 4472 files. How can I get the original 149k frames?

我也尝试通过做

ffmpeg -i myfile.avi -r 1000 otherfile.avi

但这似乎并没有解决我的担忧。

but this didn't seem to fix my concern.

解决方案

ffmpeg -i myfile.avi -r 1000 -f image2 image-%07d.png

我不知道输出150k bmp文件将是一个好主意。也许png够好吗?

I am not sure outputting 150k bmp files will be a good idea. Perhaps png is good enough?

这篇关于ffmpeg将avi拆分成具有已知帧速率的帧的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

查看全文
登录 关闭
扫码关注1秒登录
发送“验证码”获取 | 15天全站免登陆