payload_unit_start_indicator - uupaa/H264.js GitHub Wiki
このエントリでは、PES パケットの、 payload_unit_start_indicator について説明しています。
The payload_unit_start_indicator is a 1-bit flag which has normative meaning for Transport Stream packets that carry PES packets (refer to 2.4.3.6) or PSI data (refer to 2.4.4).
When the payload of the Transport Stream packet contains PES packet data, the payload_unit_start_indicator has the following significance: a '1' indicates that the payload of this Transport Stream packet will commence with the first byte of a PES packet and a '0' indicates no PES packet shall start in this Transport Stream packet.
Payload が PES パケットデータを含んでいる場合は、 payload_unit_start_indicator は以下のように解釈されます。 - 1なら、ペイロードに PES パケットの先頭が含まれています。 - 0なら、ペイロードに PES パケットの先頭は含まれていません。
If the payload_unit_start_indicator is set to '1', then one and only one PES packet starts in this Transport Stream packet. This also applies to private streams of stream_type 6 (refer to Table 2-34).
When the payload of the Transport Stream packet contains PSI data, the payload_unit_start_indicator has the following significance:
Payload が PSI データを含んでいる場合は、 payload_unit_start_indicator は以下のように解釈されます。 - PSIセクションの最初の1バイトを含んでいる場合は、1になります。 この場合は、パケットのヘッダとペイロードの間に pointer_field (1byte)が挿入されます ``` | header(4byte) | pointer_field(1byte) | payload (183byte) | ``` - PSIセクションの最初の1バイトを含んでいない場合は、0になります。 この場合は、パケットのヘッダとペイロードの間に pointer_field (1byte)が挿入されません ``` | header(4byte) | payload (184byte) | ```
if the Transport Stream packet carries the first byte of a PSI section, the payload_unit_start_indicator value shall be '1', indicating that the first byte of the payload of this Transport Stream packet carries the pointer_field. If the Transport Stream packet does not carry the first byte of a PSI section, the payload_unit_start_indicator value shall be '0', indicating that there is no pointer_field in the payload. Refer to 2.4.4.1 and 2.4.4.2. This also applies to private streams of stream_type 5 (refer to Table 2-34).
payload_unit_start_indicator = 1 の場合はこのような構成になります
+-------+------------------+--------------+
| TH(4) | pointer_field(1) | PAYLOAD(183) |
+-------+------------------+--------------+
~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ = PES
payload_unit_start_indicator = 0 の場合はこのような構成になります
+-------+--------------+
| TH(4) | PAYLOAD(184) |
+-------+--------------+
~~~~~~~~~~~~~~ = PES