Page 1 of 1

How to drop packets in demux

Posted: 31 Jan 2008 21:41
by nelliekins
Hi everyone,

I'm looking to build a new CA mechanism for VLC (specifically, encryption of MPEG-2 TS to a higher standard than CSA). In the general case, everything works quite well. (I have written a series of hooks into TS demux, although the final version will be a completely separate filter).

However, occasionally VLC doesn't receive the decryption key quickly enough. In this scenario, VLC crashes and dies horribly because the downstream decoders receive encrypted data.

Is there some way to silently drop the TS packets in the demux() method until the stream is being decrypted? I've tried rewriting the packet headers to make the data look like MPEG-2 padding, but it didn't appear to solve the issue.

Thanks in advance.

Neil.

Re: How to drop packets in demux

Posted: 31 Jan 2008 23:03
by Jean-Baptiste Kempf
You should ask jpsaman on IRC.

Re: How to drop packets in demux

Posted: 01 Feb 2008 09:51
by nelliekins
You should ask jpsaman on IRC.
Thanks j-b - I'll do just that! 8)

Neil.