[vlc-devel] modify vlc to support decryption

Edoardo Radica dodo.r84 at gmail.com
Thu Feb 25 19:28:48 CET 2010


Hello,

first sorry for my bad English!!

I've this problem: I've a Java application that encrypts a mpeg4 video 
stream using gstreamer appropriarly modified.
Now, I've to read this video stream with VLC.

In a "static scenario", I put the decipher key in a variable in the 
DecoderDecodeVideo function  (vlc-1.0.5/src/input/decoder.c) and call 
the openssl function to decrypt passing it the "block_t *p_block", just 
before
" while( (p_pic = p_dec->pf_decode_video( p_dec, &p_block )) ) { ... } "
This works fine, obviously the video must be encrypted mpeg4 and the key 
must be the same in the variable!

How can I pass the key when I open VLC?
I thought I would pass the key on the commandline, is it possible?
(e.g.  vlc --key=AA00CC)
In this way if I have to see a cipher video I can put the key on the 
commandline otherwise just open VLC.

If you have a better idea please help me!!!

best regards,

Edoardo Radica




More information about the vlc-devel mailing list