coderluan
V2EX  ›  问与答

ffmpeg 命令行怎么输出每帧的编码信息?

  •  
  •   coderluan · Nov 17, 2021 · 2253 views
  •   You need to sign in to view this topic
    This topic created in 1639 days ago, the information mentioned may be changed or developed.
    命令行大概类似于
    ffmpeg -f rawvideo -s:v 2560x1440 -r 30 -pix_fmt yuv420p -i input.yuv -c:v h264_nvenc -preset fast output.h264

    log 会跳跃显示每帧的信息
    [info] frame= 175 fps=174 q=47.0 size= 1280kB time=00:00:05.76 bitrate=1818.3kbits/s speed=5.74x
    [info] frame= 282 fps=187 q=47.0 size= 2048kB time=00:00:09.33 bitrate=1797.6kbits/s speed=6.19x

    加什么参数能让 frame 连续显示全部的 frame 信息呢
    3 replies    2021-11-17 18:10:46 +08:00
    XiSH
        1
    XiSH  
       Nov 17, 2021
    用 ffprobe 可以查看每一帧的各种信息,装了 ffmpeg 应该就自带 ffprobe 了
    coderluan
        2
    coderluan  
    OP
       Nov 17, 2021
    @XiSH 我需要显示编码时候的一些信息,主要是 fps 或者 time ,来评估编码过程性能,但是 ffprobe 只能显示编码之后的结果吧,也就没有这些信息了。
    About   ·   Help   ·   Advertise   ·   Blog   ·   API   ·   FAQ   ·   Solana   ·   1217 Online   Highest 6679   ·     Select Language
    创意工作者们的社区
    World is powered by solitude
    VERSION: 3.9.8.5 · 32ms · UTC 17:45 · PVG 01:45 · LAX 10:45 · JFK 13:45
    ♥ Do have faith in what you're doing.