【问题标题】:ffmpeg: Decoding specific AVProgram from the hls streamffmpeg:从 hls 流中解码特定的 AVProgram
【发布时间】:2015-03-13 14:41:04
【问题描述】:

我正在开发一个基于ffmpeg的播放器。

现在我尝试解码 hls 视频。视频流有几个按质量分隔的节目 (AVProgram)。我想选择一个具有所需质量的特定程序。但是 ffmpeg 从所有程序(所有流)中读取数据包。

如何告诉 ffmpeg 读取哪些流?

【问题讨论】:

    标签: ffmpeg decoding video-player m3u8 http-live-streaming


    【解决方案1】:

    通过在AVStream结构中使用disard字段解决:

    _stream->discard = AVDISCARD_ALL;
    

    【讨论】:

      猜你喜欢
      • 1970-01-01
      • 1970-01-01
      • 1970-01-01
      • 1970-01-01
      • 2019-03-25
      • 2011-08-26
      • 2021-09-17
      • 1970-01-01
      • 2020-10-06
      相关资源
      最近更新 更多