Using CSA with VOD in VLM

Discussion about configuration and usage of VLM (a stream scheduler) within VLC.
blafu
New Cone
New Cone
Posts: 1
Joined: 10 Feb 2008 19:34

Using CSA with VOD in VLM

Postby blafu » 10 Feb 2008 19:49

Hello,
I'm trying to work out a way to get the VLM scramble the video/audio streams that it sends out via it's VOD facility. I can successfully stream a CSA-encrypted transport stream using the broadcast facility with the following configuration:

Code: Select all

> new somestream broadcast enabled > setup somestream input /path/to/videofile > setup somestream output #std{access=http,dst=:8080,mux=ts{crypt-video,crypt-audio,csa-ck=0123456789101112}} > control somestream play
I realize that it's not using RTP at all, but it's a proof of concept that CSA works with VLM, the log states:

Code: Select all

[00000260] [Media: somestream] mux_ts private debug: using CSA scrambling with ck=1:23:45:67:89:10:11:12 [00000260] [Media: somestream] mux_ts private debug: encrypting 188 bytes of packet
Now I'm trying to achieve the same thing with true Video On Demand. I can't really specify any output/muxer options as I can't set an output parameter. I tried to do the following with no success:

Code: Select all

> new somestream vod enabled > setup somestream input /path/to/videofile > setup somestream mux mp2t > setup somestream option sout-ts-csa-ck=012345678910112 > setup somestream option sout-ts-crypt-video > setup somestream option sout-ts-crypt-audio
and

Code: Select all

> new somestream vod enabled > setup somestream input /path/to/videofile > setup somestream mux mp2t > setup somestream option :sout-ts-csa-ck=012345678910112 > setup somestream option :sout-ts-crypt-video > setup somestream option :sout-ts-crypt-audio
and

Code: Select all

> new somestream vod enabled > setup somestream input /path/to/videofile > setup somestream mux ts{crypt-video,crypt-audio,csa-ck=012345678910112}
None of these option gave me CSA encryption. Any ideas on how to get that?

abhilash.harichandan
New Cone
New Cone
Posts: 2
Joined: 30 Mar 2010 10:19
VLC version: 1.0.5
Operating System: Windows XP/7
Location: Delhi
Contact:

Re: Using CSA with VOD in VLM

Postby abhilash.harichandan » 30 Mar 2010 10:23

How to Integrate VLC CSA-ck with Internet Explorer while decrypt a crypted CSA-CK ?
Plzzz help me how to integrate VLC CSA Key with Internet Explorer.
I have integrate VLC with IE - its working, but not able to integrate VLC CSA-ck Key with IE.
Below I have mentioned all my codes.

HTML:

<html>
<head><title></title>
<script src="Scripts/AC_ActiveX.js" type="text/javascript"></script>
<script src="Scripts/AC_RunActiveContent.js" type="text/javascript"></script>
</head>

<script type="text/javascript" src="TV.js"></script>

<BODY onLoad="init();">

<TABLE>
<TR><TD colspan="2">

</TD></TR>
<TR><TD align="center" colspan="2">
<!--
Insert VideoLAN.VLCPlugin.2
-->
<script type="text/javascript">
AC_AX_RunContent( 'classid','clsid:9BE31822-FDAD-461B-AD51… ); //end AC code
</script><noscript><OBJECT classid="clsid:9BE31822-FDAD-461B-AD51-B…
codebase="http://downloads.videolan.org/
width="320"
height="540"
id="vlc"
events="True">
<param name="MRL" value="udp://@235.1.3.6:9000" />
<param name="ShowDisplay" value="True" />
<param name="AutoLoop" value="False" />
<param name="AutoPlay" value="True" />
<param name="Volume" value="50" />
<param name="StartTime" value="0" />

<EMBED pluginspage="http://www.videolan.org"
type="application/x-vlc-plugin"
progid="VideoLAN.VLCPlugin.2"
width="320"
height="540"
name="vlc">
</EMBED>
</OBJECT></noscript>
</TD></TR>
<TR><TD colspan="2">
<TABLE><TR>
<TD valign="top" width="550">



<DIV id="inputTrackerDiv"></DIV>
</TD><TD width="15%">
<DIV id="info" style="text-align:center">-:--:--/-:--:-…
</TD>
</TR></TABLE>
</TD></TR>
<TR><TD>
<INPUT type=button id="PlayOrPause" value=" Play " disabled onClick='doPlayOrPause();'>

<INPUT type=button id="Stop" value="Stop" enabled onClick='doStop();'>

<INPUT type=button value=" << " onClick='doPlaySlower();'>
<INPUT type=button value=" >> " onClick='doPlayFaster();'>
<INPUT type=button value=" <-> " onClick='getVLC("vlc").video.toggleFulls…
AR:
<SELECT readonly onChange='doChangeAspectRatio(this.value…
<OPTION value="default">Default</OPTION>
<OPTION value="1:1">1:1</OPTION>
<OPTION value="4:3">4:3</OPTION>
<OPTION value="16:9">16:9</OPTION>
<OPTION value="221:100">221:100</OPTION>

<OPTION value="5:4">5:4</OPTION>
</SELECT>

<INPUT type=button value="Version" onClick='alert(getVLC("vlc").VersionInfo…
</TD><TD align="right">
<SPAN style="text-align:center">Volume:</SPAN>
<INPUT type=button value=" - " onClick='updateVolume(-10)'>
<SPAN id="volumeTextField" style="text-align: center">--</SPAN>
<INPUT type=button value=" + " onClick='updateVolume(+10)'>
<INPUT type=button value="Mute" onClick='getVLC("vlc").audio.toggleMute(…
</TD>
</TR>
</TABLE>
</BODY>
</html>

JAVASCRIPT:

// JavaScript Document

function init()
{
inputTracker = new Bs_Slider();
inputTracker.attachOnChange(onInputTrack…
inputTracker.attachOnSlideStart(onInputT…
inputTracker.attachOnSlideEnd(onInputTra…
inputTracker.width = 530;
inputTracker.height = 15;
inputTracker.minVal = 0.0;
inputTracker.maxVal = -1.0;
inputTracker.valueDefault = 0.0;
inputTracker.valueInterval = 1 / 530;
inputTracker.setDisabled(true);
inputTracker.imgDir = '/blueshoes-4.5/javascript/components/sl…
inputTracker.setBackgroundImage('aluminu… 'repeat');
inputTracker.setArrowIconLeft('aluminuma… 2, 19);
inputTracker.setArrowIconRight('aluminum… 2, 19);
inputTracker.setSliderIcon('aluminumallo… 15, 19);
inputTracker.useInputField = 0;
inputTracker.draw('inputTrackerDiv');

if (navigator.appName.indexOf("Microsoft Internet") == -1)
{
onVLCPluginReady()
}
else if (document.readyState == 'complete')
{
onVLCPluginReady();
}
else
{
/* Explorer loads plugins asynchronously */
document.onreadystatechange = function()
{
if (document.readyState == 'complete')
{
onVLCPluginReady();
}
}
}
}


function getVLC(name) {
if (window.document[name]) {

jwilsoncheryl
New Cone
New Cone
Posts: 6
Joined: 17 Jan 2012 02:08
VLC version: 1.1.11
Operating System: Windows
Contact:

Re: Using CSA with VOD in VLM

Postby jwilsoncheryl » 19 Feb 2012 09:02

How to Integrate VLC CSA-ck with Internet Explorer while decrypt a crypted CSA-CK ?
Plzzz help me how to integrate VLC CSA Key with Internet Explorer.
I have integrate VLC with IE - its working, but not able to integrate VLC CSA-ck Key with IE.
Below I have mentioned all my codes.

HTML:

<html>
<head><title></title>
<script src="Scripts/AC_ActiveX.js" type="text/javascript"></script>
<script src="Scripts/AC_RunActiveContent.js" type="text/javascript"></script>
</head>

<script type="text/javascript" src="TV.js"></script>

<BODY onLoad="init();">

<TABLE>
<TR><TD colspan="2">

</TD></TR>
<TR><TD align="center" colspan="2">
<!---
Insert VideoLAN.VLCPlugin.2
-->
<script type="text/javascript">
AC_AX_RunContent( 'classid','clsid:9BE31822-FDAD-461B-AD51… ); //end AC code
</script><noscript><OBJECT classid="clsid:9BE31822-FDAD-461B-AD51-B…
codebase="http://downloads.videolan.org/
width="320"
height="540"
id="vlc"
events="True">
<param name="MRL" value="udp://@235.1.3.6:9000" />
<param name="ShowDisplay" value="True" />
<param name="AutoLoop" value="False" />
<param name="AutoPlay" value="True" />
<param name="Volume" value="50" />
<param name="StartTime" value="0" />

<EMBED pluginspage="http://www.videolan.org"
type="application/x-vlc-plugin"
progid="VideoLAN.VLCPlugin.2"
width="320"
height="540"
name="vlc">
</EMBED>
</OBJECT></noscript>
</TD></TR>
<TR><TD colspan="2">
<TABLE><TR>
<TD valign="top" width="550">



<DIV id="inputTrackerDiv"></DIV>
</TD><TD width="15%">
<DIV id="info" style="text-align:center">-:--:--/-:--:-…
</TD>
</TR></TABLE>
</TD></TR>
<TR><TD>
<INPUT type=button id="PlayOrPause" value=" Play " disabled onClick='doPlayOrPause();'>

<INPUT type=button id="Stop" value="Stop" enabled onClick='doStop();'>

<INPUT type=button value=" << " onClick='doPlaySlower();'>
<INPUT type=button value=" >> " onClick='doPlayFaster();'>
<INPUT type=button value=" <-> " onClick='getVLC("vlc").video.toggleFulls…
AR:
<SELECT readonly onChange='doChangeAspectRatio(this.value…
<OPTION value="default">Default</OPTION>
<OPTION value="1:1">1:1</OPTION>
<OPTION value="4:3">4:3</OPTION>
<OPTION value="16:9">16:9</OPTION>
<OPTION value="221:100">221:100</OPTION>

<OPTION value="5:4">5:4</OPTION>
</SELECT>

<INPUT type=button value="Version" onClick='alert(getVLC("vlc").VersionInfo…
</TD><TD align="right">
<SPAN style="text-align:center">Volume:</SPAN>
<INPUT type=button value=" - " onClick='updateVolume(-10)'>
<SPAN id="volumeTextField" style="text-align: center">--</SPAN>
<INPUT type=button value=" + " onClick='updateVolume(+10)'>
<INPUT type=button value="Mute" onClick='getVLC("vlc").audio.toggleMute(…
</TD>
</TR>
</TABLE>
</BODY>
</html>

JAVASCRIPT:

// JavaScript Document

function init()
{
inputTracker = new Bs_Slider();
inputTracker.attachOnChange(onInputTrack…
inputTracker.attachOnSlideStart(onInputT…
inputTracker.attachOnSlideEnd(onInputTra…
inputTracker.width = 530;
inputTracker.height = 15;
inputTracker.minVal = 0.0;
inputTracker.maxVal = -1.0;
inputTracker.valueDefault = 0.0;
inputTracker.valueInterval = 1 / 530;
inputTracker.setDisabled(true);
inputTracker.imgDir = '/blueshoes-4.5/javascript/components/sl…
inputTracker.setBackgroundImage('aluminu… 'repeat');
inputTracker.setArrowIconLeft('aluminuma… 2, 19);
inputTracker.setArrowIconRight('aluminum… 2, 19);
inputTracker.setSliderIcon('aluminumallo… 15, 19);
inputTracker.useInputField = 0;
inputTracker.draw('inputTrackerDiv');

if (navigator.appName.indexOf("Microsoft Internet") == -1)
{
onVLCPluginReady()
}
else if (document.readyState == 'complete')
{
onVLCPluginReady();
}
else
{
/* Explorer loads plugins asynchronously */
document.onreadystatechange = function()
{
if (document.readyState == 'complete')
{
onVLCPluginReady();
}
}
}
}


function getVLC(name) {
if (window.document[name]) {
what is it?? I'm suck in coding :'(


Return to “VLM”

Who is online

Users browsing this forum: No registered users and 1 guest