ffmpeg分割成帧
嘿,我想将一个一秒长(25fps)的视频分割成 25 个单独的视频文件。我知道我可以将其分割成 jpeg,但我需要保留音频。所以当我重新编译时音频仍然存在。
这就是我试图仅抓取第一帧(带音频)的方法:
ffmpeg -i 1.mov -vcodec mjpeg -qscale 1 -an -ss 00:00:00:00 -t 00:00:00:1 frame1.mov
但它似乎不起作用。我假设 ffmpeg 支持这种格式的时间戳是错误的吗?时:分:ss:f?
谢谢
Hey, I want to split a video which is one second long (25fps)into 25 seperate video files. I know I can split it up into jpegs but I need to retain the audio. So when I recompile audio is still there.
This is what I tried to grab the first frame only (with audio):
ffmpeg -i 1.mov -vcodec mjpeg -qscale 1 -an -ss 00:00:00:00 -t 00:00:00:1 frame1.mov
But it doesn't seem to work. Am I wrong in assuming ffmpeg supports time stamps in this format? hh:mm:ss:f?
Thanks
如果你对这篇内容有疑问,欢迎到本站社区发帖提问 参与讨论,获取更多帮助,或者扫码二维码加入 Web 技术交流群。
绑定邮箱获取回复消息
由于您还没有绑定你的真实邮箱,如果其他用户或者作者回复了您的评论,将不能在第一时间通知您!
发布评论
评论(1)
您假设 ffmpeg 支持该格式的时间戳是错误的,但这并不是
hh:mm:ss[.xxx]
(两个冒号和一个点,而不是三个冒号)。-an
的作用。You are wrong in assuming
ffmpeg
supports timestamps in that format, but that's not the only problemffmpeg
does not support the time format you're using. Options are either the time in seconds, orhh:mm:ss[.xxx]
(two colons and a dot instead of three colons).-an
does.