H-264 or MPEG into http
Posted: 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.
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.