【问题标题】:avconv frames option (avconv -r 1)avconv 帧选项 (avconv -r 1)
【发布时间】:2013-04-23 10:04:54
【问题描述】:

我是这个工具的新手avconv

我想从视频中每秒提取 1 帧,我正在使用

avconv -i sample.avi -r 1 -s 200x200 -f image2 frames/foo-%03d.png

sample.avi 的长度为 30 秒,但转换后的输出为 920 帧。

怎么办?我只想要30

【问题讨论】:

  • 它对我有用...也许可以尝试通过 mencoder 而不是 avconv。

标签: avconv


【解决方案1】:

您可能需要指定 -vsync 选项。

我曾经使用以下命令从视频文件中获取每秒帧数。

avconv -i video_file -f image2 -vsync 1 -r 1 %03d.png

【讨论】:

    猜你喜欢
    • 1970-01-01
    • 1970-01-01
    • 1970-01-01
    • 1970-01-01
    • 2012-08-03
    • 1970-01-01
    • 2014-12-08
    • 1970-01-01
    • 2021-05-09
    相关资源
    最近更新 更多