zoukankan      html  css  js  c++  java
  • H264分层编码SVC

    参考链接文档:

    https://blog.csdn.net/tanningzhong/article/details/80578981

    https://blog.csdn.net/qq_29350001/article/details/78271900

    分层的关键:

    openh264 中 temporal layer 的输出顺序与帧率

    在 openh264 的内部,存在一张表,用来记录每一层的输出顺序,可以在 encoder_data_tables.cpp 中找到内容如下:

    解析如下:

    iTemporalLayerNum 的值为 1 时,使用 uiGopSize = 1 的配置,即每一帧为一组,每一组的 uiTemporalId 值为 0

    iTemporalLayerNum 的值为 2 时,使用 uiGopSize = 2 的配置,即每两帧为一组,每一组中对应的uiTemporalId 为 [0, 1]

    iTemporalLayerNum 的值为 3 时,使用 uiGopSize = 4 的配置,即每四帧为一组,每一组中对应的uiTemporalId 为 [0, 2, 1, 2]

    iTemporalLayerNum 的值为 4 时,使用 uiGopSize = 8 的配置,即每 8 帧为一组,每一组中对应的uiTemporalId 为 [0, 3, 2, 3, 1, 3, 2, 3]

    根据上述描述以及输入的帧率可计算每一层的帧率是多少,例如在 30fps 下分两层输出,则 T0 帧率为 15fps;

    分 3 层时,每 4 帧组则有完整 7 组,则 T0 的帧率有 7 + 1 = 8fps,T1 的帧率有 8 + 7 = 15fps,T2 则有 30fps;

    分 4 层的情况可按相同的方法计算每一层的帧率。

    ————————————————
    版权声明:本文为CSDN博主「老衲不出家」的原创文章,遵循 CC 4.0 BY-SA 版权协议,转载请附上原文出处链接及本声明。
    原文链接:https://blog.csdn.net/tanningzhong/article/details/80578981

  • 相关阅读:
    CentOS升级Python 2.6到2.7
    ps命令使用 进程查看
    MySQL导入sql脚本 导出数据库
    html php 重定向 跳转 刷新
    Linux查看可执行程序所在路径
    解决phpMyAdmin“登录超时 (1440 秒未活动),请重新登录”的问题
    怎样选购冲锋衣
    常见排序算法及其java实现
    java开发环境搭建
    【转】与BT下载相关的概念
  • 原文地址:https://www.cnblogs.com/1234abcdttttjy001/p/11711953.html
Copyright © 2011-2022 走看看