2011年1月31日 星期一

[MultiMedia] Mpeg Format

Mpeg Format
  • Mpeg TS: Transport Stream. 
  • Mpeg PS: Program Stream.
Mpeg TS Format
  • MPEG_TS_HD_NA: 192 bytes with 4 bytes zero time code.
  • MPEG_TS_HD_NA_ISO: 188 bytes without time code.
  • MPEG_TS_HD_NA_T: 192 bytes with 4 bytes valid time code.
  • MPEG_TS_JP_T: 192 bytes with 4 bytes valid time code. Has a CP Header.
MPEG_TS_JP_T CP Header Structure
  • 14 bytes header begin with 0x00 (byte_length is 10~13 bytes)
  • 4 bytes time code
  • 188 bytes payload begin with 0x47
MPEG_TSJP_T CP Header Structure Example
  • First CP Header begin at 00 00 00 00: 00 00 00 00 00 00 00 00 00 00 [00 0F FF C0] => Byte Length = 00 0F FF C0 means the length of the first segment (Time Code (4) + Payload (188)) is 00 0F FF C0
  • Time Code (4 bytes): BE 84 0A DC
  • Payload (188 bytes): 47 40 00 11 00 00 B0 11 40 F2 C1 00 00 00 00 E0 ...
  • Second CP Header begin at 00 0F FF CD: First CP Header Size + Byte Length = 14 + 00 0F FF C0 = 00 0F FF CD
References

沒有留言:

張貼留言