Elementary stream

Elementary stream


An elementary stream (ES) as defined by MPEG communication protocol is usually the output of an audio or video encoder. ES contains only one kind of data, e.g. audio, video or closed caption. An elementary stream is often referred to as "elementary", "data", "audio", or "video" bitstreams or streams. The format of the elementary stream depends upon the codec or data carried in the stream, but will often carry a common header when packetized into a packetized elementary stream.

Contents

   [hide

Header for MPEG-2 video elementary stream[edit]

Partial Sequence Header Format
Field Name # of bits Description
start code320x000001B3
Horizontal Size12 
Vertical Size12 
Aspect ratio4 
Frame rate code4 
Bit rate18Actual bit rate = bit rate * 400, rounded upwards. Use 0x3FFFF for variable bit rate.
Marker bit1Always 1.
VBV buf size10Size of video buffer verifier = 16*1024*vbv buf size
constrained parameters flag1 
load intra quantizer matrix1If bit set then intra quantizer matrix follows, otherwise use default values.
intra quantizer matrix0 or 64*8 
load non intra quantizer matrix1If bit set then non intra quantizer matrix follows.
non intra quantizer matrix0 or 64*8 

General layout of MPEG-1 audio elementary stream[edit]

The digitized sound signal is divided up into blocks of 384 samples in Layer I and 1152 samples in Layers II and III. The sound sample block is encoded within an audio frame:

  • header
  • error check
  • audio data
  • ancillary data

The header of a frame contains general information such as the MPEG Layer, the sampling frequency, the number of channels, whether the frame is CRC protected, whether the sound is the original:

Field Name # of bits Description
sync word120xFFF
ID1'1'=mpeg1 '0'=mpeg2
layer2'11'=1 '10'=2 '01'=3
no protection1'0'=Protected by CRC (16bit CRC follows header)
'1'=Not Protected
bit rate index4 
sampling frequency2kHz '00'=44.1 '01'=48 '10'=32
padding1 
private1 
mode2'00'=Stereo '01'=joint stereo '10'=dual channel '11'=single channel
mode extension2 
copyright10=none 1=yes
original or copy10=copy 1=original
emphasis2 

Although most of this information may be the same for all frames, MPEG decided to give each audio frame such a header in order to simplify synchronization and bitstream editing.


  • 0
    点赞
  • 0
    收藏
    觉得还不错? 一键收藏
  • 0
    评论

“相关推荐”对你有帮助么?

  • 非常没帮助
  • 没帮助
  • 一般
  • 有帮助
  • 非常有帮助
提交
评论
添加红包

请填写红包祝福语或标题

红包个数最小为10个

红包金额最低5元

当前余额3.43前往充值 >
需支付:10.00
成就一亿技术人!
领取后你会自动成为博主和红包主的粉丝 规则
hope_wisdom
发出的红包
实付
使用余额支付
点击重新获取
扫码支付
钱包余额 0

抵扣说明:

1.余额是钱包充值的虚拟货币,按照1:1的比例进行支付金额的抵扣。
2.余额无法直接购买下载,可以购买VIP、付费专栏及课程。

余额充值