H-264 or MPEG into http

All you've ever wanted to know about the ActiveX, Mozilla plugins, the web interface and various PHP extensions
Quillion
New Cone
New Cone
Posts: 3
Joined: 30 Aug 2011 15:02

H-264 or MPEG into http

Postby Quillion » 30 Aug 2011 15:53

Hello all, sorry if this question has been asked before but I did not find anything I needed in search function.
My setup is like this. I have an encoder (no idea what OS it is, it just encodes a stream), my computer (windows XP) and my server (headless Debian Lenny, without any GUI, controlled through putty, ip is 192.168.193.17) all hooked up together into one 1GB router (none of them connected to internet).
I have a H-264 or MPEG stream coming out of my encoder with ip and port of
239.0.0.35:1234
I can see this stream just perfectly by using vlc player on my windows. Now I would like to show this stream on a webpage on my server.
I have tried using these methods to display an image

METHOD 1:
<embed type="application/x-vlc-plugin" pluginspage="http://www.videolan.org" version="VideoLAN.VLCPlugin.2" width="480px" height="360px" id="vlc" loop="yes" autoplay="yes" target="http://239.0.0.35:1234/"></embed>

METHOD 2:
<embed src="testvlc.asx" height="360" width="480">

METHOD 3:
<embed type="application/x-vlc-plugin"
name="video2"
autoplay="no" loop="no" hidden="yes"
target="udp:@239.0.0.35:1234"
height="360" width="480" />

METHOD 4:
<OBJECT id=WMPPlayer41 style="width:350px;height:350px"
classid=clsid:6BF52A52-394A-11D3-B153-00C04F79FAA6 VIEWASTEXT>
<PARAM NAME="URL" VALUE="http://239.0.0.35:1234">
</OBJECT>

Before I go to my webpage to view anything I tried using command line to start vlc using these commands,

vlc -vvv udp:@239.0.0.35:1234 (I know this one is useless I just wanted to see if I would get an error message, which I didn't)


vlc -vvv udp:@239.0.0.35:1234 --sout '#duplicate{dst=rtp{mux=ts,dst=239.0.0.44,sdp=sap,name="TestStream"}'

vlc -vvv udp:@239.0.0.35:1234 --sout '#standard{access=http,mux=ogg,dst=239.0.0.44:1234}'

vlc -vvv udp:@239.0.0.35:1234 --sout '#standard{access=http,mux=ogg,dst=192.168.193.17:1234}'

And nothing has worked. I am completely new to this, and would love to create a small project like this. I want to use this to communicate with my parents in another country, yes I know there are better ways, but this is fun.

Thanks a lot to anyone who can give me a push in the right direction.

dumoulex
New Cone
New Cone
Posts: 5
Joined: 16 Feb 2011 16:53

Re: H-264 or MPEG into http

Postby dumoulex » 20 Sep 2011 09:49

Hello,

Im woking with some axis cameras and using h264 & mjpeg. Your methods should work, I tried this and its working :
<embed type="application/x-vlc-plugin" id='embedLecteur' fullscreen=true target=\""+filmsrc+"\" autostart=true />

which browser are you using ?

if it's mozilla or chrome, maybe it is your plugin, because the method is right. try to re-install your plugin.
if it's internet explorer, forget the plugin, and try html5 with this : <video>.

but I have an advice, if you want to work with h264 don't use vlc plugin, often, there are some bugs.

good luck


Return to “Web and scripting”

Who is online

Users browsing this forum: No registered users and 10 guests