MPEG: Difference between revisions
Jump to navigation
Jump to search
No edit summary |
No edit summary |
||
| Line 63: | Line 63: | ||
* PES packet: fixed-sized 184 bytes | * PES packet: fixed-sized 184 bytes | ||
* TS packet: fixed-sized 188 bytes | * TS packet: fixed-sized 188 bytes | ||
* TS packet header: | * TS packet header: minimum 4 bytes (without adaptation) added to the PES packet (PID, continuity counter, PCR) | ||
* Multiple PS can be multiplexed with different clocks (PCR) | * Multiple PS can be multiplexed with different clocks (PCR) | ||
* Metadata: PAT, PMT | * Metadata: PAT, PMT | ||
| Line 69: | Line 69: | ||
|Single Program Transport Stream | |Single Program Transport Stream | ||
|SPTS | |SPTS | ||
| | |||
* 1 PCR channel that recreates 1 program clock for both audio and video | |||
|- | |||
|Multiple Program Transport Stream | |||
|MPTS | |||
| | |||
* Contains control information (Signaling SI) requires to coordinate the entire transmission such as EPG | |||
|- | |||
|Electronic Program Guide | |||
|EPG | |||
| | | | ||
|- | |- | ||
| Line 75: | Line 85: | ||
| | | | ||
* Lists every programs in the TS | * Lists every programs in the TS | ||
* Each entry points to a PMT | * Each entry points to a program-specific PMT | ||
* PID=0 | * PID=0 | ||
* First Entry of PAT: program 0 is for network data (PID of NIT) | |||
|- | |||
|Network Information Table | |||
|NIT | |||
| | |||
|- | |||
|Conditional Access Table | |||
|CAT | |||
| | |||
* PID=1 | |||
* Necessary of the program is encrypted | |||
* Contains PIDs for ECM and EMM | |||
|- | |||
|Entitlement Control Messages | |||
|ECM | |||
| | |||
|- | |||
|Entitlement Management Messages | |||
|EMM | |||
| | |||
|- | |||
|Transport Stream Description Table | |||
|TSDT | |||
| | |||
* PID=2 | |||
|- | |- | ||
|Program Map Table | |Program Map Table | ||
|PMT | |PMT | ||
| | | | ||
* Each entry lists for | * Each entry lists ESs for a given program | ||
|- | |||
|Program Specific Information | |||
|PSI | |||
| | |||
|- | |- | ||
|Program Identifier Code | |Program Identifier Code | ||
Packet Identification Code | |||
|PID | |PID | ||
| | | | ||
* 13-bit | |||
* Packets in the same ES all have the same PID | * Packets in the same ES all have the same PID | ||
* TS Packet header | * TS Packet header | ||
* NULL packet = 8191= 0b1111111111111 | |||
|- | |- | ||
|Program Clock Reference | |Program Clock Reference | ||
| Line 106: | Line 148: | ||
| | | | ||
* Use to achieve synchronization of separate ES | * Use to achieve synchronization of separate ES | ||
* 90KHz resolution | * 90KHz resolution / 33 bits | ||
* In the PES header | * In the PES header | ||
* Divide PCR by 300 | |||
* They must not be more than 700 ms apart in the PS or TS | |||
|- | |- | ||
| | |Decode Timestamp | ||
|DTS | |DTS | ||
| | | | ||
* Only for video PES | |||
|} | |} | ||
Revision as of 01:59, 19 September 2020
MPEG-TS or TS and MPEG-PS or PS are digital container format.
I-picture: intra-coded picture that does not need additional information to be decoded
P-picture: picture predicted from an earlier I-picture or P-picture
B-picture: picture bidirectionally predicted from earlier and/or later I-picture or P-pictures
MPEG-1 Audio layer 1: audio bit stream
MPEG-1 Audio layer 2: audio bit stream
MPEG-1 Audio layer 3: audio bit stream
MPEG-2 BC (Backward compatible)
MPEG-2 AAC
MPEG-4 Audio
AC-3
MPEG-1
MPEG-2
MPEG-4
MPEG-7/MXF: metadata
MPEG-21
Glossary
| Elementary Stream | ES |
|
| Packetized Elementary Stream | PES |
|
| Program Stream | PS |
|
| Transport Stream | TS |
|
| Single Program Transport Stream | SPTS |
|
| Multiple Program Transport Stream | MPTS |
|
| Electronic Program Guide | EPG | |
| Program Association Table | PAT |
|
| Network Information Table | NIT | |
| Conditional Access Table | CAT |
|
| Entitlement Control Messages | ECM | |
| Entitlement Management Messages | EMM | |
| Transport Stream Description Table | TSDT |
|
| Program Map Table | PMT |
|
| Program Specific Information | PSI | |
| Program Identifier Code
Packet Identification Code |
PID |
|
| Program Clock Reference | PCR |
|
| System Clock Reference | SCR |
|
| Presentation Timestamp | PTS |
|
| Decode Timestamp | DTS |
|