TS demux, how to remove padding

For questions and discussion that is NOT (I repeat NOT) specific to a certain Operating System.
padrino
New Cone
New Cone
Posts: 2
Joined: 08 Jun 2006 14:17

TS demux, how to remove padding

Postby padrino » 16 Jun 2006 06:02

I have spent some time understanding how VLC handles different ES types in the hopes of adding one. I have it demuxing an ES however I'm having a hard time understanding how VLC removes padding bytes (0xff) because a demux from ts.c will still leave them in there. Can someone point me to where it might be done?

Thanks.

Micha_R
New Cone
New Cone
Posts: 4
Joined: 29 May 2006 07:55
Location: Europe / Germany
Contact:

Postby Micha_R » 31 Jul 2006 09:34

Hi,

stuffing normally is aplied on the PES and/or TS-level. For an detailed description of how it works, have a look at ISO 13818 part 1.

Removing stufing from a TS is done by simply ignoring all the adaption-fields and only pass the payload to the demuxed stream.

Removing stufing from a PES-stream, you have to analyse the PES-headers to find the stufing bytes and, of course, have to remove the stuffing bytes and modify the PES-Headers.

Micha


Return to “General VLC media player Troubleshooting”

Who is online

Users browsing this forum: No registered users and 54 guests