Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Bad .ts emtted #25

Open
darkdarkdragon opened this issue Mar 19, 2020 · 0 comments
Open

Bad .ts emtted #25

darkdarkdragon opened this issue Mar 19, 2020 · 0 comments

Comments

@darkdarkdragon
Copy link
Contributor

Often server emit bad TS segments (Example attached).

In this .ts file packet 3

* Packet 3
  ---- TS Header ----
  PID: 255 (0x00FF), header size: 12, sync: 0x47
  Error: 0, unit start: 1, priority: 0
  Scrambling: 0, continuity counter: 1
  Adaptation field: yes (8 bytes), payload: yes (176 bytes)
  Discontinuity: 0, random access: 1, ES priority: 1
  PCR: 0x00D1F8BAF98
  ---- PES Header ----
  Stream id: 0xE0 (Video 0)
  PES packet length: 65493
  ---- Full TS Packet Content ----
  47 40 FF 31 07 70 05 99 67 F9 7E 00 00 00 01 E0 FF D5 84 D0 0D 31 2C CB
  B7 19 11 2C CB 9F E5 80 0B B3 00 00 00 01 09 F0 00 00 00 01 67 64 00 20
  AC D9 40 50 05 BA 10 00 00 03 00 10 00 00 07 88 F1 83 19 60 00 00 00 01
  68 EF BC B0 00 00 00 01 65 88 84 03 FF DE 2A 1C D3 FF E0 B1 7E AE 0D B2
  29 B5 D0 78 5F 1D A6 16 B2 32 6D F2 98 19 40 39 BF 00 04 72 EE 8A 03 54
  AE 58 EE 36 2F 64 9D B2 4E 81 30 2D 85 D2 2E E3 10 E1 1B 81 81 9C 9D B3
  3A 88 7A E3 7D 0C 77 55 9B A9 9E 5C 72 99 BA 96 54 52 57 FD 03 E0 69 7D
  E9 23 F5 6B E2 91 25 A9 09 B4 BC 21 72 FE E8 33 29 00 FA 9F

Specifies PES packet length to be 65493. But actual data size for this PES packet 65490.
And in the header of the next PES packet:

* Packet 360
  ---- TS Header ----
  PID: 255 (0x00FF), header size: 166, sync: 0x47
  Error: 0, unit start: 1, priority: 0
  Scrambling: 0, continuity counter: 6
  Adaptation field: yes (162 bytes), payload: yes (22 bytes)
  Discontinuity: 0, random access: 1, ES priority: 1
  PCR: 0x00D1F8BAF98
  ---- PES Header ----
  Stream id: 0xE0 (Video 0)
  PES packet length: 19
  ---- Full TS Packet Content ----
  47 40 FF 36 A1 70 05 99 67 F9 7E 00 66 64 36 64 62 31 32 34 38 36 36 37
  65 34 61 33 39 38 64 39 34 38 36 61 66 66 32 33 62 62 31 31 00 66 64 36
  64 62 31 32 34 38 36 36 37 65 34 61 33 39 38 64 39 34 38 36 61 66 66 32
  33 62 62 31 31 00 66 64 36 64 62 31 32 34 38 36 36 37 65 34 61 33 39 38
  64 39 34 38 36 61 66 66 32 33 62 62 31 31 00 66 64 36 64 62 31 32 34 38
  36 36 37 65 34 61 33 39 38 64 39 34 38 36 61 66 66 32 33 62 62 31 31 00
  66 64 36 64 62 31 32 34 38 36 36 37 65 34 61 33 39 38 64 39 34 38 00 00
  01 E0 00 13 80 D0 0D 31 2C CB B7 19 11 2C CB 9F E5 80 0B B3

PES packet length specified 19, though with given payload length (22 bytes) it should be 16.

bad_video_RavinAmulet_0_1_index.m3u8_sessId_71371_1959_17f8cf19be7e24f7ad7c.ts.gz

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

1 participant