# MPEG 传输流

**MPEG 传输流**（MPEG-TS、MTS，或简称 TS）是 MPEG-2 系统层 ISO/IEC 13818-1（与 ITU-T H.222.0 建议书等同）所定义的一种标准数字容器格式，用于在卫星、有线和地面广播等易发生错误的传输环境中承载音频、视频和数据<sup>[1](https://www.itu.int/rec/dologin_pub.asp?id=T-REC-H.222.0-202308-S%21%21PDF-E&lang=e&type=items)</sup><sup> • </sup><sup>[2](https://learn.microsoft.com/en-us/windows/win32/directshow/overview-of-mpeg-2-systems)</sup>。同一标准还定义了与之并列的另一种格式——MPEG 节目流，并规定符合 H.222.0 | ISO/IEC 13818-1 的复用比特流必为二者之一<sup>[1](https://www.itu.int/rec/dologin_pub.asp?id=T-REC-H.222.0-202308-S%21%21PDF-E&lang=e&type=items)</sup>。

| 关键事实 | 详情 |
|---|---|
| 定义标准 | ISO/IEC 13818-1（MPEG-2 系统），与 ITU-T H.222.0 等同；现行版本为第十版（2025 年）<sup>[1](https://www.itu.int/rec/dologin_pub.asp?id=T-REC-H.222.0-202308-S%21%21PDF-E&lang=e&type=items)</sup><sup> • </sup><sup>[3](https://streamneo.com/blog/what-is-mpeg-ts-the-mpeg-transport-stream-format-explained)</sup> |
| 包大小 | 固定 188 字节：4 字节包头，加上最多 184 字节的净荷和可选适配域<sup>[2](https://learn.microsoft.com/en-us/windows/win32/directshow/overview-of-mpeg-2-systems)</sup><sup> • </sup><sup>[4](https://www.etsi.org/deliver/etsi_en/300400_300499/300421/01.01.02_60/en_300421v010102p.pdf)</sup> |
| 同步字节 | 每个包均以 0x47 开头，使接收机能够锁定包边界<sup>[4](https://www.etsi.org/deliver/etsi_en/300400_300499/300421/01.01.02_60/en_300421v010102p.pdf)</sup><sup> • </sup><sup>[5](https://www.thebroadcastbridge.com/content/entry/21938/network-traffic-engineering-why-mpeg-ts-is-still-the-standard)</sup> |
| 寻址 | 13 位包标识符（PID）标记每个基本流或信令流；PID 在一条传输流内唯一<sup>[2](https://learn.microsoft.com/en-us/windows/win32/directshow/overview-of-mpeg-2-systems)</sup> |
| 错误保护 | DVB 系统采用里德-所罗门 RS(204,188) 编码，将每个包扩展至 204 字节<sup>[4](https://www.etsi.org/deliver/etsi_en/300400_300499/300421/01.01.02_60/en_300421v010102p.pdf)</sup> |
| 时基 | 适配域中的节目时钟参考（PCR）字段使每个解码器能够重建编码器时钟；实际网络中的 PCR 抖动按 ITU-T J.133 测量<sup>[6](https://www.itu.int/ITU-T/recommendations/rec.aspx?lang=en&rec=6105)</sup> |
| 典型用途 | 广播复用（DVB、ATSC）、节目回传链路和 HLS 媒体分片<sup>[5](https://www.thebroadcastbridge.com/content/entry/21938/network-traffic-engineering-why-mpeg-ts-is-still-the-standard)</sup><sup> • </sup><sup>[7](https://developer.apple.com/documentation/http-live-streaming/hls-authoring-specification-for-apple-devices/)</sup> |

## 目的与设计

MPEG-2 系统层支持六项基本功能：解码时多路压缩流的同步、多路流交织为单路流、解码启动时的缓冲初始化、持续的缓冲管理、时间标识，以及各组件的复用与信令<sup>[1](https://www.itu.int/rec/dologin_pub.asp?id=T-REC-H.222.0-202308-S%21%21PDF-E&lang=e&type=items)</sup>。两种流类型均由打包基本流（PES）包构成，即将压缩基本流分割为携带时间戳的变长包<sup>[1](https://www.itu.int/rec/dologin_pub.asp?id=T-REC-H.222.0-202308-S%21%21PDF-E&lang=e&type=items)</sup><sup> • </sup><sup>[2](https://learn.microsoft.com/en-us/windows/win32/directshow/overview-of-mpeg-2-systems)</sup>。

两种流类型按工作条件分工。节目流通常更适合几乎无错误的环境，如本地文件存储，它以公共时基承载一个节目的音频和视频。传输流更适合易发生错误的环境，并且额外支持来自多个节目、具有独立时基的流的复用<sup>[1](https://www.itu.int/rec/dologin_pub.asp?id=T-REC-H.222.0-202308-S%21%21PDF-E&lang=e&type=items)</sup><sup> • </sup><sup>[3](https://streamneo.com/blog/what-is-mpeg-ts-the-mpeg-transport-stream-format-explained)</sup>。

**失效行为优先于效率。** 20 世纪 90 年代，MPEG-TS 的设计目标是在易出错、单向的链路上——卫星、地面射频和有线——承载不间断的音视频，这些链路中丢包或包损坏是预期之内的。它没有请求重传的反向通路；一个包丢了就是丢了。取而代之的是，固定大小的包、简单的定时模型和内置的错误检测使接收机能够从任意点加入流，并在有错误的情况下继续播放，而不是直接失效<sup>[5](https://www.thebroadcastbridge.com/content/entry/21938/network-traffic-engineering-why-mpeg-ts-is-still-the-standard)</sup>。

## 包结构

每个 TS 包为 188 字节：4 字节包头，后跟 184 字节，用于承载净荷、可选适配域，或二者兼有<sup>[2](https://learn.microsoft.com/en-us/windows/win32/directshow/overview-of-mpeg-2-systems)</sup>。包头包含同步字节 0x47、传输错误指示符、净荷单元起始指示符、传输优先级位、13 位 PID、传输加扰控制字段、适配域控制字段和 4 位连续计数器<sup>[8](https://eclass.uoa.gr/modules/document/file.php/D476/references%20%28books%29/Digital%20Video%20and%20Audio%20Broadcasting%20Technology.pdf)</sup>。

同步字节锚定包边界。尽管 0x47 这个值可能出现在净荷数据中，但假定它会规律地出现在包起始处，从而为接收机提供同步点<sup>[5](https://www.thebroadcastbridge.com/content/entry/21938/network-traffic-engineering-why-mpeg-ts-is-still-the-standard)</sup>。对于给定 PID 的每个携带净荷的连续包，连续计数器递增 1；如果接收机看到计数器不连续且没有信令指示的不连续，则应假定某些包已丢失<sup>[9](https://www.atsc.org/wp-content/uploads/2015/03/a_54a_with_corr_1.pdf)</sup>。传输错误指示符可被置位，以表明该包中至少存在一个不可纠正的比特错误<sup>[9](https://www.atsc.org/wp-content/uploads/2015/03/a_54a_with_corr_1.pdf)</sup>。

适配域承载额外的包头信息，包括节目时钟参考。PES 包头中的 PTS（呈现时间戳）和 DTS（解码时间戳）值均基于 PCR<sup>[2](https://learn.microsoft.com/en-us/windows/win32/directshow/overview-of-mpeg-2-systems)</sup><sup> • </sup><sup>[10](https://www.atsc.org/wp-content/uploads/2015/03/Transport-Stream-Verification.pdf)</sup>。

## 复用与信令

复用器为每个 PES 流和每个节目信息流分配一个 PID。PID 标识 TS 包的方式，如同流 ID 标识 PES 包；即使流 ID 不唯一，PID 分配在一条传输流内也是唯一的<sup>[2](https://learn.microsoft.com/en-us/windows/win32/directshow/overview-of-mpeg-2-systems)</sup>。

节目特定信息（PSI）告知接收机复用流中包含什么。MPEG-2 规范要求符合规范的 TS 复用流为每条流提供 PSI<sup>[11](https://www.rfc-editor.org/info/rfc4326/)</sup>。有两种基本数据结构承载 PSI：段（section），封装流类型和节目指南数据等描述性信息；以及 PES 包，承载媒体内容本身。节目映射表（PMT）由 TS_program_map_section 段构建，记录哪些基本流属于哪个节目<sup>[9](https://www.atsc.org/wp-content/uploads/2015/03/a_54a_with_corr_1.pdf)</sup>。在 ATSC 实践中，要求传输流中存在 PAT 和 PMT 信息<sup>[12](https://www.atsc.org/wp-content/uploads/2021/04/A69-2009.pdf)</sup>。

**恒定比特率与空包。** 复用流中的单个节目可以具有可变比特率，而整个传输流可以是恒定比特率或可变比特率<sup>[18](https://www.loc.gov/preservation/digital/formats/fdd/fdd000635.shtml)</sup>。空包始终由 PID 0x1FFF 标识，在没有其他包就绪时发送，用于填充流；其净荷可包含任意数据，其连续计数器未定义。任何再复用过程均可添加或移除空包<sup>[9](https://www.atsc.org/wp-content/uploads/2015/03/a_54a_with_corr_1.pdf)</sup>。

## 在广播系统中的应用

DVB 传输标准以传输流作为输入。最初的 DVB-S 卫星标准 EN 300 421 将输入组织为固定长度的 188 字节 MPEG-2 传输包，对其进行随机化以实现能量扩散，并在调制前应用里德-所罗门 RS(204,188) 缩短编码以及深度为 12 的卷积交织<sup>[4](https://www.etsi.org/deliver/etsi_en/300400_300499/300421/01.01.02_60/en_300421v010102p.pdf)</sup>。DVB-S2 仍然兼容使用传输流包复用的 MPEG-2 和 MPEG-4 编码电视业务，其第二代扩展（DVB-S2X）增加了向后兼容的模式，可在通用流模式之外承载 MPEG-TS<sup>[13](https://www.etsi.org/technologies/dvb-s-s2?highlight=WyJpZiIsInRoZSIsIid0aGUiXQ%3D%3D)</sup><sup> • </sup><sup>[14](https://www.etsi.org/deliver/etsi_ts/102600_102699/10260601/01.02.01_60/ts_10260601v010201p.pdf)</sup>。

该格式还承载数据和 IP 流量。多协议封装（EN 301 192）是 DVB 在 MPEG-TS 包上封装数据的标准，RFC 4326 定义了用于 MPEG-2 传输流上 IP 数据报的单向轻量封装（ULE），适用于 DVB、ATSC 及类似的基于 MPEG-2 的系统<sup>[14](https://www.etsi.org/deliver/etsi_ts/102600_102699/10260601/01.02.01_60/ts_10260601v010201p.pdf)</sup><sup> • </sup><sup>[11](https://www.rfc-editor.org/info/rfc4326/)</sup>。

当传输流经由 IP 网络传输时，定时约束至关重要。DVB 关于基于 IP 的 MPEG-2 业务的规范要求 RTP 包抖动峰峰值至多 40 毫秒，相当于符合 MPEG-2 实时接口（ISO/IEC 13818-9）中抖动参数为 20 毫秒的要求，并建议每小时不超过一次可察觉的失真；对于每个 IP 包承载七个 TS 包的 4 Mb/s 传输流，这相当于 IP 包错误率低于 1 × 10<sup>-6</sup><sup> • </sup><sup>[15](https://www.etsi.org/deliver/etsi_ts/102000_102099/102034/01.02.01_60/ts_102034v010201p.pdf)</sup>。

## 流媒体中的 MPEG-TS 及其替代方案

MPEG-TS 不是视频编解码器；它是一种系统容器，用于组织压缩媒体并承载关于媒体的信令，其中的编解码器是独立的选择<sup>[3](https://streamneo.com/blog/what-is-mpeg-ts-the-mpeg-transport-stream-format-explained)</sup>。在 HTTP 直播流（HLS）中，Apple 的制作规范允许以 MPEG 传输流作为 H.264 视频的容器（HEVC 要求使用分片 MP4），MIME 类型为 video/mp2t，扩展名为 .ts，并要求连续计数器和时间戳在各分片之间保持连续<sup>[7](https://developer.apple.com/documentation/http-live-streaming/hls-authoring-specification-for-apple-devices/)</sup>。HLS 和 MPEG-TS 描述的是不同层次：HLS 是一种分发方法，而 MPEG-TS 可用作其分片格式<sup>[3](https://streamneo.com/blog/what-is-mpeg-ts-the-mpeg-transport-stream-format-explained)</sup>。

188 字节的包也能轻松放入 IP 净荷：多个 TS 包被组合进单个 UDP 数据报，处于以太网 MTU 限制之内，避免 [IP 分片](https://www.edgepedia.org/zh/ip-fragmentation)，而丢失一个 UDP 包的接收机可以在几个包之内重新同步<sup>[5](https://www.thebroadcastbridge.com/content/entry/21938/network-traffic-engineering-why-mpeg-ts-is-still-the-standard)</sup>。

**后继者与竞争者。** 在第二代 DVB 卫星系统中，通用流封装（GSE）协议提供了替代基于 MPEG-TS 的 MPE 的方案，将 IP 传输开销降至原来的二分之一至三分之一；在交互式 DVB-S2 系统中，开销平均从 MPE/MPEG-TS 的约 10% 降至 GSE 的 2% 至 3%，总吞吐量增益约为 5% 至 15%。自适应编码与调制带来的信道速率可变性，也使通用流格式在这些系统中比传输流更为适用<sup>[14](https://www.etsi.org/deliver/etsi_ts/102600_102699/10260601/01.02.01_60/ts_10260601v010201p.pdf)</sup>。

在广播设施内部，MPEG-TS 仍然普遍使用，尤其是在使用 IP 的场合，因为它优化的是失效行为而非峰值效率；现代平台在基于 IP 的直播制作中提供无缝传输流切换、再复用和频道延迟功能<sup>[5](https://www.thebroadcastbridge.com/content/entry/21938/network-traffic-engineering-why-mpeg-ts-is-still-the-standard)</sup><sup> • </sup><sup>[16](https://www.tvtechnology.com/news/fast-tracks-open-for-broadcasters-transitioning-to-live-ip-production)</sup>。

## 测量与工具

在实际网络上传输的传输流会在 PCR 值及其在流中的位置上产生抖动。ITU-T J.133 建议书（2002 年）仍然有效，规定了能够确定这种抖动的测量方法<sup>[6](https://www.itu.int/ITU-T/recommendations/rec.aspx?lang=en&rec=6105)</sup>。验证实践对 PCR 错误状况进行分类，如未信令指示的 PCR 不连续和 PCR 重复间隔错误，并对 PSI 速率加以限制：正在解码的节目的 PAT 和 PMT PID 适用 80 kbps 的上限，ATSC 中每个 PSIP 基础 PID、EIT PID 和 ETT PID 适用 250 kbps 的上限<sup>[10](https://www.atsc.org/wp-content/uploads/2015/03/Transport-Stream-Verification.pdf)</sup>。

已有用于分析和操作的开源工具。TSDuck 是一套免费的开源命令行工具集，适用于 Linux、Windows、macOS 和 BSD，可从 DVB 调谐器、Dektec 设备、UDP/IP、HTTP、HLS、SRT 和 RIST 读取实时传输流，并通过其传输流处理器 `tsp` 及其插件系统进行处理<sup>[17](https://tsduck.io/docs/tsduck.html)</sup>。

## References

1. [ITU-T H.222.0 | ISO/IEC 13818-1: Systems (v9, 08/2023), scope text](https://www.itu.int/rec/dologin_pub.asp?id=T-REC-H.222.0-202308-S%21%21PDF-E&lang=e&type=items)
2. [Overview of MPEG-2 Systems, Microsoft Learn](https://learn.microsoft.com/en-us/windows/win32/directshow/overview-of-mpeg-2-systems)
3. [What Is MPEG-TS? The MPEG Transport Stream Format Explained, StreamNeo](https://streamneo.com/blog/what-is-mpeg-ts-the-mpeg-transport-stream-format-explained)
4. [ETSI EN 300 421 V1.1.2: DVB framing structure, channel coding and modulation for 11/12 GHz satellite services](https://www.etsi.org/deliver/etsi_en/300400_300499/300421/01.01.02_60/en_300421v010102p.pdf)
5. [Network Traffic Engineering: Why MPEG-TS Is Still The Standard, The Broadcast Bridge](https://www.thebroadcastbridge.com/content/entry/21938/network-traffic-engineering-why-mpeg-ts-is-still-the-standard)
6. [ITU-T J.133 (07/2002): Measurement of MPEG-2 transport streams in networks](https://www.itu.int/ITU-T/recommendations/rec.aspx?lang=en&rec=6105)
7. [HLS Authoring Specification for Apple Devices](https://developer.apple.com/documentation/http-live-streaming/hls-authoring-specification-for-apple-devices/)
8. [Digital Video and Audio Broadcasting Technology, chapter 11: Measurements on the MPEG-2 Transport Stream](https://eclass.uoa.gr/modules/document/file.php/D476/references%20%28books%29/Digital%20Video%20and%20Audio%20Broadcasting%20Technology.pdf)
9. [ATSC A/54A: Guide to Use of the ATSC DTV Standard](https://www.atsc.org/wp-content/uploads/2015/03/a_54a_with_corr_1.pdf)
10. [ATSC A/78A: Transport Stream Verification Recommended Practice](https://www.atsc.org/wp-content/uploads/2015/03/Transport-Stream-Verification.pdf)
11. [RFC 4326: Unidirectional Lightweight Encapsulation (ULE) for Transmission of IP Datagrams over an MPEG-2 Transport Stream](https://www.rfc-editor.org/info/rfc4326/)
12. [ATSC A/69: PSIP Implementation Guidelines for Broadcasters](https://www.atsc.org/wp-content/uploads/2021/04/A69-2009.pdf)
13. [ETSI: DVB-S/S2/S2X standard overview](https://www.etsi.org/technologies/dvb-s-s2?highlight=WyJpZiIsInRoZSIsIid0aGUiXQ%3D%3D)
14. [ETSI TS 102 606-1 V1.2.1: DVB Generic Stream Encapsulation (GSE), Part 1: Protocol](https://www.etsi.org/deliver/etsi_ts/102600_102699/10260601/01.02.01_60/ts_10260601v010201p.pdf)
15. [ETSI TS 102 034 V1.2.1: Transport of MPEG-2 Based DVB Services over IP Based Networks](https://www.etsi.org/deliver/etsi_ts/102000_102099/102034/01.02.01_60/ts_102034v010201p.pdf)
16. [Fast Tracks Open for Broadcasters Transitioning to Live IP Production, TV Technology](https://www.tvtechnology.com/news/fast-tracks-open-for-broadcasters-transitioning-to-live-ip-production)
17. [TSDuck User Guide](https://tsduck.io/docs/tsduck.html)
18. [MPEG-2 Transport Stream](https://www.loc.gov/preservation/digital/formats/fdd/fdd000635.shtml)

---
*Initially written Sep 17, 2026 · Reviewed: Sep 30, 2026; Oct 15, 2026 · Edited: Sep 30, 2026; Oct 15, 2026 · Last review: Oct 15, 2026*

Topic: 技术与人造世界 › 交通运输与航天 › 航天 › 卫星 › 卫星提供的服务 › 卫星传输标准（DVB-S系列及同类）

Copyright 2026 Edgepedia

License: Edgepedia Community License 1.0, https://www.edgepedia.org/edgepedia/license

Source: https://www.edgepedia.org/zh/mpeg-transport-stream

English original: https://www.edgepedia.org/mpeg-transport-stream
