Does TS Stream file size should divided by 188?

About encoding, codec settings, muxers and filter usage
xsh525
New Cone
New Cone
Posts: 2
Joined: 20 Aug 2007 10:48

Does TS Stream file size should divided by 188?

Postby xsh525 » 20 Aug 2007 11:06

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?

shifty
New Cone
New Cone
Posts: 7
Joined: 17 Aug 2007 23:02

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

Postby shifty » 20 Aug 2007 16:26

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!

xsh525
New Cone
New Cone
Posts: 2
Joined: 20 Aug 2007 10:48

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

Postby xsh525 » 21 Aug 2007 04:26

Thank you very much!

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


Return to “VLC stream-output (sout)”

Who is online

Users browsing this forum: No registered users and 8 guests