Page 1 of 1

Does TS Stream file size should divided by 188?

Posted: 20 Aug 2007 11:06
by xsh525
Hi:
I want to write a TS file parser. But now I found some TS File's size(Byte) can not be divided by 188.

These files can play and parse by another TS tool. I want to know why these TS File's size(Byte) can not be divided by 188?

Does there may be interval between 2 TS packs? And how to deal it in my code?

Re: Does TS Stream file size should divided by 188?

Posted: 20 Aug 2007 16:26
by shifty
FYI -

TS can be either 188 byte or 204 byte.

188 byte packet = 1 sync byte, 187 data bytes
204 byte packet = 1 sync byte, 187 data bytes, 16 parity bytes

I hope this helps!

Re: Does TS Stream file size should divided by 188?

Posted: 21 Aug 2007 04:26
by xsh525
Thank you very much!

But can one TS stream file (*.ts) both have 188 bytes packet and 204 bytes packet?