【问题标题】:how to specify reference frames for H264 encoding in iOS?如何在 iOS 中为 H264 编码指定参考帧?
【发布时间】:2014-09-26 01:24:05
【问题描述】:

我正在尝试提高我的视频录制应用程序的视频质量,生成的视频始终有 1 个参考帧(见下文),而我们确实看到其他应用程序的视频具有此值为 2,我检查了苹果文档和搜索了 SO,但找不到任何解决方案来指定此参数,有人可以在这里阐明一下吗?非常感谢!

Video
ID                                       : 2
Format                                   : AVC
Format/Info                              : Advanced Video Codec
Format profile                           : Main@L3.1
Format settings, CABAC                   : Yes
**Format settings, ReFrames                : 1 frame**
Format settings, GOP                     : M=1, N=30
Codec ID                                 : avc1
Codec ID/Info                            : Advanced Video Coding
Duration                                 : 14s 868ms
Bit rate                                 : 1 527 Kbps
Width                                    : 540 pixels
Height                                   : 960 pixels
Display aspect ratio                     : 0.562
Frame rate mode                          : Variable
Frame rate                               : 25.221 fps
Minimum frame rate                       : 3.750 fps
Maximum frame rate                       : 30.000 fps
Color space                              : YUV
Chroma subsampling                       : 4:2:0
Bit depth                                : 8 bits
Scan type                                : Progressive

【问题讨论】:

    标签: ios encoding h.264 avassetwriter encoder


    【解决方案1】:

    Encoding.com 支持通过其 api 中的标签修改参考帧。以下是他们对该参数的建议:

    “一个重要的 h.264 功能,允许参考帧而不是当前帧之前或之后的参考帧。使用此参数,您最多可以指定 16 个参考帧。对于实时动作,4-6 个参考帧就足够了,但是对于动画,应该使用 16。一般默认为 6。"

    http://www.encoding.com/http-live-streaming-hls/#Encodingcom_HLS_Pro

    【讨论】:

      猜你喜欢
      • 2012-06-12
      • 1970-01-01
      • 1970-01-01
      • 1970-01-01
      • 2016-01-19
      • 2015-05-26
      • 2023-03-10
      • 2013-12-03
      • 2012-02-11
      相关资源
      最近更新 更多