Page 1 of 1

Buffering incoming stream

Posted: 28 Sep 2006 13:08
by lagarazo
I have an activex in a html page where I see a streaming coming from a remote webcam.

My problem is that there is a delay of about 5seconds. I think this is because of the VLC buffer, and I would like to reduce this time.

Does anyone know how this can be done?

Thanks.

Posted: 28 Sep 2006 13:22
by Jean-Baptiste Kempf
You have a --htp-caching --file-caching --file-caching etc.. that control the caching time in ms.

Posted: 28 Sep 2006 15:53
by lagarazo
Thanks!!!

I have modified the stream source to use a smaller cache.

Also, I am watching this stream from an activeX. How can I run the activeX with these parameter?

Posted: 29 Sep 2006 10:52
by lagarazo
Would it work properly if I write:

<OBJECT classid="clsid:E23FE9C6-778E-49D4-B537-38FCDE4887D8" codebase="http://downloads.videolan.org/pub/video ... /axvlc.cab"
width="150" height="166" id="vlc" events="True">
<param name="Src" value="udp://@ --udp-caching 0"/>
<param name="ShowDisplay" value="True" />
<param name="Loop" value="True" />
<param name="AutoPlay" value="True" />
<param name="AutoLoop" value="True" />
<param name="Volume" value="100">
</OBJECT>

Is the udp-caching parameter in its right place?

Posted: 02 Oct 2006 11:49
by lagarazo
No.

Please, does anybodyknow how to configure this?

Posted: 02 Oct 2006 16:28
by paulc0001
I'm using something like this:

<head>
<script type="text/javascript">
function startIt()
{
var ob = document.getElementById('vlc');
if (ob)
{
var options=[":http-caching=400"];
ob.addTarget("http://some.server:8080/",options,2,0);
ob.play();
}
}
</script>
</head>
<body onLoad="startIt()">
<object classid="clsid:E23FE9C6-778E-49D4-B537-38FCDE4887D8"
codebase="/res/videolan/axvlc.cab"
width="848" height="480" id="vlc" events="True" >
<param name="Src" value="" />
<param name="ShowDisplay" value="True" />
<param name="AutoLoop" value="False" />
<param name="AutoPlay" value="False" />
<param name="Volume" value="100">
</object>
</body>

although it's http and not udp streaming. This sets the client-side caching to 400ms which seems to work in my environment.

Posted: 03 Oct 2006 14:50
by lagarazo
Thank you!!! :D