streaming webcam on web page

About encoding, codec settings, muxers and filter usage
mounir
New Cone
New Cone
Posts: 1
Joined: 09 Sep 2007 12:48

streaming webcam on web page

Postby mounir » 09 Sep 2007 13:58

Hello every bady

how can do a link witk the vlc streaming and the web page?
must do script with javascrip are php?
where can i find toturial?

thank you in advance for your answer

bogogil
New Cone
New Cone
Posts: 7
Joined: 20 Mar 2007 12:55

Re: streaming webcam on web page

Postby bogogil » 17 Sep 2007 06:58

Hi there,

I haven't found the perfect solution yet. But you could start trying with this.

Start vlc with (one line)

Code: Select all

vlc -Idummy v4l:/dev/video0:size=160x120 --no-audio --sout '#transcode{vcodec=DIV3,vb=128,scale=1}:std{access=mmsh,mux=asfh,dst=:8080/stream.asf}'
Where /dev/video0 is the video source (change it to your source).

In your webbpage add this:

Code: Select all

<OBJECT ID="MediaPlayer" WIDTH=320 HEIGHT=240 CLASSID="CLSID:22D6f312-B0F6-11D0-94AB-0080C74C7E95" STANDBY="Loading Windows Media Player components..." TYPE="application/x-oleobject" CODEBASE="http://activex.microsoft.com/activex/controls/mplayer/en/nsmp2inf.cab#Version=6,4,7,1112"> <PARAM name="autoStart" value="True"> <PARAM name='showControls' value="False"> <PARAM name="filename" value="mms://url-to-vlc-server:8080/stream.asf"> <EMBED TYPE="application/x-mplayer2" SRC="mmsh://url-to-vlc-server:8080/stream.asf" NAME="MediaPlayer" WIDTH=320 HEIGHT=240> </EMBED> </OBJECT>
Change url-to-vlc-server to the actual ip or fqdn.

Once you see mmsh://... and once mms://...
I tried to have it both the same, but either Win (IE) clients play the stream or Linux resp. Mozilla clients play it. This is a work-a-round. Maybe your users have to install vlc-plugin for mozilla.

Hope it helps! If you find a better solution, please let me know.

Simon

Ps: Here is what it can look like: http://www.ist-schlau.de/


Return to “VLC stream-output (sout)”

Who is online

Users browsing this forum: No registered users and 7 guests