Good afternoon. I am a beginner programmer. I am doing a training project in which I am trying to combine video and audio into one .ts container. What information comes after the staffing bytes on this screenshot.
Asked
Active
Viewed 308 times
-3
-
Can you please state the question more clearly. – szatmary Jun 28 '19 at 17:20
-
ok, how do you think that makes sense? – Nikita Kupershtein Jun 29 '19 at 06:28
1 Answers
0
That packet is PID 0, which make the payload a Program Association Table (PAT).

szatmary
- 29,969
- 8
- 44
- 57
-
ok,if it's PAT I have an error section_syntax_indicator == 0b0, and reserved bit == 0b01 – Nikita Kupershtein Jun 30 '19 at 06:29
-
No. 0xb0 = 0b1011 hence. section_syntax_indicator= 1, private bit =0 and reserved bits = 11 – szatmary Jun 30 '19 at 16:19
-
That's right, thank you. But it's not clear why we flip the first byte after FF, 0b00 is the number table_id and what does the second 0b00 mean before 0xB0 ? – Nikita Kupershtein Jul 01 '19 at 06:35
-
I don’t know what you mean by flips the first byte. But I believe you are forgetting to count the pointer field. – szatmary Jul 01 '19 at 17:37
-
Please advise 166 bytes to be counted from the first stacking byte (0xFF), immediately after 0xA600 – Nikita Kupershtein Jul 02 '19 at 06:09
-
0xA6 is the fifth byte. 166 + 5 = 171, which is the first byte after the stuffing. I don't know why you are not counting the flags. Please read the wikipedia articles on transport streams. It's all documented there. If you have more questions. Please make a new post. – szatmary Jul 02 '19 at 07:40