V2EX = way to explore
V2EX 是一个关于分享和探索的地方
Sign Up Now
For Existing Member  Sign In
stebest
V2EX  ›  FFmpeg

关于 FFmpeg 的问题

  •  
  •   stebest · Aug 18, 2020 · 3007 views
    This topic created in 2081 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   ·   2413 Online   Highest 6679   ·     Select Language
    创意工作者们的社区
    World is powered by solitude
    VERSION: 3.9.8.5 · 27ms · UTC 01:06 · PVG 09:06 · LAX 18:06 · JFK 21:06
    ♥ Do have faith in what you're doing.