How to embed live video stream into http

About encoding, codec settings, muxers and filter usage
tinyang
Blank Cone
Blank Cone
Posts: 19
Joined: 17 Mar 2009 20:52

How to embed live video stream into http

Postby tinyang » 02 Apr 2009 04:45

I have a machine using vlc to serve video across my lan. right now I can use vlc to view the stream from any computer on the lan, but I need to get this working on a webpage, so I'm trying to figure out how to embed the video object into the html. I have a couple questions:

Do I need to use an sdp file for this? My streaming protocol is http.

Or should I be using the virtual streaming file?

Here is a code snippet I have tried so far which is not working:

Code: Select all

<OBJECT CLASSID="clsid:02BF25D5-8C17-4B23-BC80-D3488ABDDC6B" CODEBASE="http://www.apple.com/qtactivex/qtplugin.cab" WIDTH="352" HEIGHT="240" > <PARAM NAME="src" VALUE="http://192.168.0.33:8080/stream"> <PARAM NAME="autoplay" VALUE="true" > <EMBED SRC="QTMimeType.pntg" TYPE="image/x-macpaint" PLUGINSPAGE="http://www.apple.com/quicktime/download" QTSRC="http://192.168.254.33:8080/stream" WIDTH="352" HEIGHT="240" AUTOPLAY="true" > </EMBED> </OBJECT>
My codec is mjpeg, and my encapsultation is mp4.

Thanks!!
Last edited by tinyang on 08 Apr 2009 21:15, edited 1 time in total.

tinyang
Blank Cone
Blank Cone
Posts: 19
Joined: 17 Mar 2009 20:52

Re: How to embed live video stream into http

Postby tinyang » 02 Apr 2009 18:23

http://wiki.videolan.org/Windows#VLC_Pl ... Mozilla.29

I just found this pouring through the documentation. Is there anything special I need to modify about the examples at the link in order to get a live stream to work? Thanks.

tinyang
Blank Cone
Blank Cone
Posts: 19
Joined: 17 Mar 2009 20:52

Re: How to embed live video stream into http

Postby tinyang » 08 Apr 2009 21:14

I finally got an http embedded vlc plugin player to pull an rtsp stream directly from my ipcamera (see code below), but I'm still having no luck getting it to work through vlc as a streaming server. Specifically, I can pull the stream from the cam to vlc via rtsp/mjpeg, I can stream it out (http/mjpeg/mp4) and successfully access it on vlc players on the lan, but I still can't get an http embedded vlc or QT plugin to receive the stream. So I could really still use some help on this! Any input is welcomed. Thanks. :)

Code: Select all

<embed type="application/x-vlc-plugin" autoplay="yes" loop="no" hidden="no" target="rtsp://username:password@192.168.0.20:7070" /> <br />

isoltechnologies
New Cone
New Cone
Posts: 7
Joined: 02 Apr 2009 13:17

Re: How to embed live video stream into http

Postby isoltechnologies » 17 Apr 2009 07:14

Code: Select all

<script language="javascript"> var vlc_controls = null; function init() { // load plugin myvlc = new VLCObject("mymovie", "600", "350"); // myvlc.addParam("MRL","http://code.revolunet.com/VLCjs/rambo.mpg"); myvlc.write("vlccontent"); // load controls vlc_controls = new VLCcontrols(myvlc); vlc_controls.onready = function () { vlc_controls.play("http://58.65.151.200:8080"); } } </script>
this is the code for reciving the stream from ip if you solve the problem then do tel me.


Return to “VLC stream-output (sout)”

Who is online

Users browsing this forum: No registered users and 12 guests