stebest
V2EX  ›  FFmpeg

关于 FFmpeg 的问题

  •  
  •   stebest · Aug 18, 2020 · 3051 views
    This topic created in 2097 days ago, the information mentioned may be changed or developed.

    有个问题,就是使用 FFmpeg 的 API 解码 h264 出来的图片好像一直比 FFmpeg 命令行解码的少一帧,使用的是 FFmpeg 的 repo 里的 doc 目录下的 example 里的 video decode 的例子,想请问下原因。 如果用只包含一帧(I 帧)的 h264 去解,命令行可以解出一张图片,但是 API 输出没有结果。

    lamy
        1
    lamy  
       Aug 18, 2020   ❤️ 1
    https://patchwork.ffmpeg.org/project/ffmpeg/patch/[email protected]/

    试下这个 patch,没有 flush parser 的问题
    stebest
        2
    stebest  
    OP
       Aug 19, 2020
    @lamy 确实是这个问题,谢谢,解决了
    About   ·   Help   ·   Advertise   ·   Blog   ·   API   ·   FAQ   ·   Solana   ·   867 Online   Highest 6679   ·     Select Language
    创意工作者们的社区
    World is powered by solitude
    VERSION: 3.9.8.5 · 74ms · UTC 20:28 · PVG 04:28 · LAX 13:28 · JFK 16:28
    ♥ Do have faith in what you're doing.