【问题标题】:ffmpeg enforces bitrate value other than what specifiedffmpeg 强制执行比特率值而不是指定的值
【发布时间】:2021-03-12 00:40:14
【问题描述】:

我有一个包含 1701 个图像帧的文件夹,名为“frame0000.jpg”、“frame0001.jpg”、...、“frame1700.jpg”。当我尝试使用此命令将它们转换为视频时:

ffmpeg -r:1751/61 -b:2400k -i frame%3d.jpg video1.avi

它会生成一个比特率为 717kbs 和 25 帧/秒的视频(因此 FPS 也与我指定的不同!);因此,它的质量很差。

我阅读了很多关于此问题的信息,例如: FFMPEG ignores bitrate

但找不到我的案例的解决方案。

感谢任何帮助。

【问题讨论】:

  • 输出的比特率在输入之后,例如ffmpeg -framerate 1751/61 -i frame%3d.jpg -b:v 2400k video1.avi

标签: ffmpeg frame-rate bitrate


【解决方案1】:

固定命令:

ffmpeg -framerate 1751/61 -i frame%3d.jpg -b:v 2400k video1.avi

选项放置很重要

Syntax 是:

  ffmpeg [input options] -i input [output options] output

使用有效选项

  • -r:1751/61 不正确。使用-framerate 1751/61image demuxer 更喜欢-framerate,而不是-r
  • -b:2400k 不正确。使用-b:v 2400k

参考日志

它应该提供错误来帮助您确定问题:

  • Invalid stream specifier: 1751/61
  • Option b (video bitrate (please use -b:v)) cannot be applied to input -- you are trying to apply an input option to an output file or vice versa. Move this option before the file it belongs to.

【讨论】:

    猜你喜欢
    • 2012-06-10
    • 1970-01-01
    • 1970-01-01
    • 2017-05-27
    • 2017-06-13
    • 1970-01-01
    • 1970-01-01
    • 1970-01-01
    • 1970-01-01
    相关资源
    最近更新 更多