How to drop packets in demux

For questions and discussion that is NOT (I repeat NOT) specific to a certain Operating System.
nelliekins
Blank Cone
Blank Cone
Posts: 11
Joined: 24 Mar 2006 08:08

How to drop packets in demux

Postby nelliekins » 31 Jan 2008 21:41

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.

Jean-Baptiste Kempf
Site Administrator
Site Administrator
Posts: 37523
Joined: 22 Jul 2005 15:29
VLC version: 4.0.0-git
Operating System: Linux, Windows, Mac
Location: Cone, France
Contact:

Re: How to drop packets in demux

Postby Jean-Baptiste Kempf » 31 Jan 2008 23:03

You should ask jpsaman on IRC.
Jean-Baptiste Kempf
http://www.jbkempf.com/ - http://www.jbkempf.com/blog/category/Videolan
VLC media player developer, VideoLAN President and Sites administrator
If you want an answer to your question, just be specific and precise. Don't use Private Messages.

nelliekins
Blank Cone
Blank Cone
Posts: 11
Joined: 24 Mar 2006 08:08

Re: How to drop packets in demux

Postby nelliekins » 01 Feb 2008 09:51

You should ask jpsaman on IRC.
Thanks j-b - I'll do just that! 8)

Neil.


Return to “General VLC media player Troubleshooting”

Who is online

Users browsing this forum: No registered users and 143 guests