Technical Discussion
  >> Web Design / HTML / Web hosting Forum


Register (or login) on our website and you will not see this ad.


These posts have been archived and can no longer be replied to or modified.
Pages in this thread: 1 | 2 | (show all)   Print Thread
Standard User MrGreg
(newbie) Sun 12-Apr-09 22:09:38
Print Post

Video stream on website


[link to this post]
 
I am somewhat a novice, and this is my first post here.
So here goes..

I have a technical problem for want of a better description.

I am trying to stream live video from a PAL camera via a website to internet
on a simple (my own local) webserver.
The stream works fine on intranet/LAN
The website works fine, and is accessable via internet. (port forward behind
NAT router) ports open on router 80 and 1234. I have also tried this on port 8080
But...
The video stream does not work when accessed from the internet?!

I have static IP and no ports blocked as far as I know

I am using this technique to get the stream to the website/page

<ASX version="3.0">
<Entry>
<ref HREF="http://192.168.0.3:1234"/>
</Entry>
</ASX>

Where above is an xxx.asx file and where 192.168.0.3 is the local webserver

I have also tried this

<br>
<object id="mediaPlayer" classid="CLSID:22d6f312-b0f6-11d0-94ab-0080c74c7e95" codebase="http://activex.microsoft.com/activex/controls/mplayer/en/nsmp2inf.cab#Version=6,4,5,715" standby="Loading Microsoft Windows Media Player components..." type="application/x-oleobject" height="370" width="400">
<param name="FileName" value="http://192.168.0.3:1234"><param name="AutoStart" value="true"> <param name="ShowControls" value="1"><param name="ShowStatusBar" value="1"><param name="ShowDisplay" value="false"></object><br>
<br>

So?.... What am I doing wrong? Any ideas why the stream cannot be viewed from internet when the website can, and the video stream works fine on a LAN. Any suggestions as to what method would work?
I do not wish to use a commercial product solve this problem.
I am perhaps trying to run before I can walk...
Standard User Etchy
(committed) Sun 12-Apr-09 22:33:49
Print Post

Re: Video stream on website


[re: MrGreg] [link to this post]
 
I presume you have checked you can get to a static page first on your webserver setup?

Also you have the bandwidth to upload live video?
Standard User MrGreg
(newbie) Sun 12-Apr-09 22:45:19
Print Post

Re: Video stream on website


[re: Etchy] [link to this post]
 
Yes, the static pages are accessable and work fine, and I have 832 up via Enta Office package.


Register (or login) on our website and you will not see this ad.

Standard User deleted
(deleted) Mon 13-Apr-09 00:28:26
Print Post

Re: Video stream on website


[re: MrGreg] [link to this post]
 
I would suggest the HREF value needs to be the external URL

So where you have HREF="http://192.168.0.3:1234" you ought to have HREF="http://[external IP or Domain name]:1234"

Does that make sense?

Again in your second example I suspect you need to change your Local IP for your Global IP.
Standard User MrGreg
(newbie) Mon 13-Apr-09 00:49:21
Print Post

Re: Video stream on website


[re: deleted] [link to this post]
 
OK .Thanks

I'll try that
Standard User deleted
(deleted) Mon 13-Apr-09 14:08:09
Print Post

Re: Video stream on website


[re: MrGreg] [link to this post]
 
Try this instead:

<br>
<object id="mediaPlayer" classid="CLSID:22d6f312-b0f6-11d0-94ab-0080c74c7e95" codebase="http://activex.microsoft.com/activex/controls/mplayer/en/nsmp2inf.cab#Version=6,4,5,715" standby="Loading Microsoft Windows Media Player components..." type="application/x-oleobject" height="370" width="400">
<param name="FileName" value="http://www.your-public-domain.com:1234"><param name="AutoStart" value="true"> <param name="ShowControls" value="1"><param name="ShowStatusBar" value="1"><param name="ShowDisplay" value="false"></object><br>
<br>

where www.your-public-domain.com is to be replaced by whaterver your public domain name or your public IP-addess is. Don't use a 192.168.x.x when it is for the public.

BTW.: Any reason why you use the proprietory MS Media Player in the first place? Not every visitor will be able to see or use it.
Standard User deleted
(deleted) Mon 13-Apr-09 17:07:37
Print Post

Re: Video stream on website


[re: MrGreg] [link to this post]
 
Let us know how you get on
Standard User MrGreg
(newbie) Mon 13-Apr-09 17:54:52
Print Post

Re: Video stream on website


[re: deleted] [link to this post]
 
I haven't tried anything yet owing to me being on Spring Cleaning duties at the mo.
However, a further question as I am a little confused
As I am behind a NAT router port forwarded, Do I point the streamer/encoder output to the local 192.168... IP Or to the global static IP of the router. Then set the HREF value to the global IP as well.
I would prefer to use this method (as mentioned above) as I do not wish to be tied to "MS Media Player" I hope to be able to do this in a platform and player independent manner.
I am open to ideas.


Thanks
MrGreg.
Standard User deleted
(deleted) Mon 13-Apr-09 18:13:32
Print Post

Re: Video stream on website


[re: MrGreg] [link to this post]
 
As I understand it, the link tells the remote client where to get the video from. Therefore the link should point to the routers Global IP (which is then forwarded to the local IP by the router) So you need to point everything at the Global IP.

I have hosted a website at home, and I apply that here, but I haven't done video streaming, so I could be wrong.
Standard User MrGreg
(newbie) Wed 15-Apr-09 23:16:05
Print Post

Re: Video stream on website


[re: deleted] [link to this post]
 
Many thanks all for your helpfull input.

Directing the stream to the global IP did it after some persistance.

I now have a sucessfull video stream via website to the www!!!! Well in as much as the preliminary tests this evening went. The best result was obtained using the HREF....asx file method using IIS XP server.
This worked as an embedded on page solution and as a pop out player.
I am discovering the quirky behaviour of some streamers can cause much stress.
I was hoping to use VideoLan VLC as the streamer. The main reason being that I wanted to use non platform/OS specific software to stream in a easely readable format.
Perhaps VLC and it's documentation will be ready for normal dumb mortals like me one day? (Any VLC gurus out there?)
If anyone knows of a "Simple" video streamer that will work under Linux I would be most greatfull.
I am happy to post back what worked for me in greater detail ,if of interest.

Thanks again

MrGreg
Pages in this thread: 1 | 2 | (show all)   Print Thread

Jump to