Buffering incoming stream

All you've ever wanted to know about the ActiveX, Mozilla plugins, the web interface and various PHP extensions
lagarazo
Blank Cone
Blank Cone
Posts: 34
Joined: 20 Sep 2006 13:50

Buffering incoming stream

Postby lagarazo » 28 Sep 2006 13:08

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.

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:

Postby Jean-Baptiste Kempf » 28 Sep 2006 13:22

You have a --htp-caching --file-caching --file-caching etc.. that control the caching time in ms.
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.

lagarazo
Blank Cone
Blank Cone
Posts: 34
Joined: 20 Sep 2006 13:50

Postby lagarazo » 28 Sep 2006 15:53

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?

lagarazo
Blank Cone
Blank Cone
Posts: 34
Joined: 20 Sep 2006 13:50

Postby lagarazo » 29 Sep 2006 10:52

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?

lagarazo
Blank Cone
Blank Cone
Posts: 34
Joined: 20 Sep 2006 13:50

Postby lagarazo » 02 Oct 2006 11:49

No.

Please, does anybodyknow how to configure this?

paulc0001
New Cone
New Cone
Posts: 7
Joined: 02 Oct 2006 16:22

Postby paulc0001 » 02 Oct 2006 16:28

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.

lagarazo
Blank Cone
Blank Cone
Posts: 34
Joined: 20 Sep 2006 13:50

Postby lagarazo » 03 Oct 2006 14:50

Thank you!!! :D


Return to “Web and scripting”

Who is online

Users browsing this forum: No registered users and 12 guests