ES & PES

ES (Elementary stream)

An elementary stream (ES) 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.

可以看出ES流通常是指编码器的音频或视频输出, 且只能包含一种类型的数据: 如音频数据或视频数据等.

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.

PES (Packetized Elementary Stream)

PES is a specification that defines carrying of elementary streams in packets within MPEG program streams(PS) and MPEG transport streams(TS).

PES用于定义如何在TS和PS流中以包的形式携带ES流.

The elementary stream is packetized by encapsulating sequential(有序的) data bytes from the elementary stream inside PES packet headers.
A typical method of transmitting elementary stream data from a video or audio encoder:

  • Step1: create PES packets from the elementary stream data.

  • Step2: encapsulate these PES packets inside Transport Stream (TS) packets or Program Stream (PS) packets.

  • PES流是ES流经过PES打包器处理后形成的数据流
    在这个过程中完成了将ES流分组、打包、加入包头信息等操作(对ES流的第一次打包).

  • PES流的基本单位是PES包.

  • PES包由包头和payload组成.

  • PES包只能包含一种类型的ES.
    ES是只含一种内容的数据流,如只含视频或只含音频等,打包之后的PES也是只含一种性质的ES,如只含视频ES的PES,只含音频ES的PES等

Transport Streams and Program Streams are each logically constructed from PES packets.
PES packets shall be used to convert between Transport Streams and Program Streams. In some cases the PES packets need not be modified when performing such conversions.
PES packets may be much larger than the size of a Transport Stream packet.[3]

图示

Paste_Image.png

References:
https://en.wikipedia.org/wiki/Elementary_stream
https://en.wikipedia.org/wiki/Packetized_elementary_stream
http://blog.csdn.net/beyond0824/article/details/19618929
http://wenku.baidu.com/link?url=Xw0LAwQlpXQ9xPk7l9-z52hdb-3lxFSHtdZ_iQoGOESGAT7izoUZs9Ii5rFYVG_zHIzLasf95OIWT_KUdghmc_dJerz0gY0eWZhrfo2EMuO

最后编辑于
©著作权归作者所有,转载或内容合作请联系作者
【社区内容提示】社区部分内容疑似由AI辅助生成,浏览时请结合常识与多方信息审慎甄别。
平台声明:文章内容(如有图片或视频亦包括在内)由作者上传并发布,文章内容仅代表作者本人观点,简书系信息发布平台,仅提供信息存储服务。

推荐阅读更多精彩内容

  • 教程一:视频截图(Tutorial 01: Making Screencaps) 首先我们需要了解视频文件的一些基...
    90后的思维阅读 10,278评论 0 3
  • 要么旅行,要么读书,身体和灵魂必须有一个在路上。 我始终记得这句话。 流光易把人抛,红了樱...
    赵小狒阅读 3,138评论 9 6
  • 不管是创业还是婚姻,找到好的搭档,就已经成功了一半。 做菜也是这样,选择性味相近的食材,搭配制做成一道道菜肴后,不...
    宽爱MSH阅读 5,160评论 1 4
  • 在午后,她顶着明晃晃的阳光离开这个小岛。在船上的时候,看见白云慢慢从海上飘过,天蓝若水晶,海水是沉静的湛蓝,风倒是...
    mo清夜无尘阅读 1,598评论 1 2
  • 阳光洒在我的身上, 却照不进我的心房, 阴沉低落的心绪, 真的需要晒晒太阳。 但我害怕灿烂的阳光, 它会将许多隐秘...
    粉妖阅读 1,468评论 0 0

友情链接更多精彩内容