zoukankan      html  css  js  c++  java
  • 关于MPEG2中的图像序列和图像组头GOP

    图像序列

    图像序列是由图像组构成的,是随机存取段落

    sequence_header_code – The sequence_header_code is the bit string ‘000001B3’ in hexadecimal

    sequence_end_code – The sequence_end_code is the bit string ‘000001B7’ in hexadecimal.

    MPEG-2为了实现随机访问,在码流中会插入repeat_sequence_header,它可以插在I、P帧或GOP前面;假如是场编码,只能插在第一场前面。

    图像组头

    图像组(GOP)是为方便随机存取而加的,图像组是随机存取视频单位。一个GOP由一串IBP帧组成,起始为I帧。基准帧(I/P)的反复频率用M表示,它描述为多少帧里出现一次I/P帧。GOP的长度是一个I帧到下一个I 帧的间隔,即多少帧里面出现一次I帧,一般用N表示,这个长度是可变的,长GOP可以提供高的压缩比,但是会造成随机存取的延迟(必须等到下一个I帧)和误差的积累(P帧的误差传播)。一般是一秒内有两个I帧,用来作为随机存取的入口。在MPEG2中也没有规定GOP的结构,帧反复方式可以是IP,IB,IBP,IBBP,甚至全部是I帧。

    M=1 N=X:IPPP...

    M=2 N=X:IBPBP...

    M=3 N=X:IBBPBBP...

    MPEG-2标准中的GOP语法结构如下:

    group_start_code – The group_start_code is the bit string ‘000001B8’ in hexadecimal.

    closed_gop – This is a one-bit flag which indicates the nature of the predictions used in the first consecutive B-pictures (if any) immediately following the first coded I-frame following the group of picture header.closed_gop is set to ‘1’ to indicate that these B-pictures have been encoded using only backward prediction or intracoding.

    broken_link – This is a one-bit flag which shall be set to ‘0’ during encoding. It is set to ‘1’ to indicate that the first
    consecutive B-Pictures (if any) immediately following the first coded I-frame following the group of picture header may not be correctly decoded because the reference frame which is used for prediction is not available (because of the action of editing).A decoder may use this flag to avoid displaying frames that cannot be correctly decoded.

    http://lyj2682.spaces.live.com/blog/cns!177B1314D2038BE4!142.entry

  • 相关阅读:
    【转】c语言中的#号和##号的作用
    stm32 HAL库编程驱动控制文件<stm32f1xx_hal_conf.h>的使能方法
    rt-thread是如何做到通过menuconfig配置将相应文件加入工程和从工程中除去
    rt-thread 学习路线
    stm32使用rt-thread在文件《stm32f1xx_hal.h》中头文件包含顺序引出的错误
    rt-thread之stm32系列BSP制作方法
    使用rt-thread中BSP-stm32 ENV构建工具报错
    rt-thread中动态内存分配之小内存管理模块方法的一点理解
    内存对齐
    rt-thread中线程内置定时器的作用 ---
  • 原文地址:https://www.cnblogs.com/retrieval/p/3171200.html
Copyright © 2011-2022 走看看