Real-Time Stream Broadcasting Cookbook
By Jian Shuo Wang on 2002-09-18 23:55 · Webcam9:50 PM
As I promised before, I will share with the steps to set up a webcam to broadcast real time video with Windows Media Encoder in this article.
Before I begin, please visit my webcam page to experience what you are going to create. (It will open a new window.)
Overview
There are two part of this article. The first part is the client side configuration. Please make you check you can view the content of my webcam from your Windows client. A simple troubleshooting guide is included.
The second part is the server side configuration. I will guide you to setup the hardware and software on the server side, so you can broadcast what your webcam captures to the whole world.
Client side platform supported
Your experience will depend on the operating system you are using.
Windows XP. You should not encounter with any problem if you are using Windows XP, since it includes Windows Media Player Windows Media Player 8.0.
Windows 2000. If you are using Windows 2000, which includes Windows Media 7.1, you will be prompted to install Windows Media 8.0 codec. Choose Yes if you want to continue to view.
Windows 98, Windows 95 I haven’t tried yet, but it should be more complex to get it work. It includes Windows Media Player 6.4 by default.
Mac. If you cannot view it, try download Windows Media Player for Mac OS X. To be honest, I haven’t tried to view my broadcasting on a Mac computer now.
Solaris Download Windows Media Player 6.3 for Solaris. I was working of Solaris when I was in Tele cooperation Lab when I was a senior in SJTU. But I believe not so many people is using Solaris now, especially for viewing online media.
Other OS. I don’t know how to view it. :-(
Bandwidth required
I am using broadband in my home. You should also use a high speed connection. I have tested it from different locations around China. It works very good for both broadband connection or T1. My friend Bill Lum also told me that he can view the video smoothly in San Francisco. For modem dial-up, maybe you can only see black window, with “buffering” always there on status bar. Try a faster connection.
Troubleshooting when connecting
Check the status bar of the Windows Media Player. The correct status bar sequence should be
Connecting…
Connecting to Media…
Buffering: xx% complete…
Buffering: 100% complete…
Playing
If you see Ready in status bar but the video does not come out, it means there is a connection problem, or the Windows Media Encoder is not running on my server side.
If you can only see stable Buffering, it must be a speed problem.
**Hurry, tell me how you made it **
Well. After addressing the client side requirements and troubleshooting steps, let’s take a look at the server side.
Hardware
A normal computer that can run Windows XP is fine. Mine is a Intel Celeron 440, 256M Memory. Pretty low configured, isn’t it?
OS
I am using Windows XP. Windows 2000 will also do.
Webcam
Any webcam should be fine. I am using Samsung Anycam. The only annoying thing I met was, Windows does not natively support it, so I need to download driver separately for it.
Media Server
Broadcasting from home does not need a Windows Media Server, the only software you need is Windows Media Encoder. It is FREE. You can download the latest version from Microsoft web site.
Install the Windows Media Encoder
Download Windows Media Encoder (9 MB) first. Installation the Windows Media 9 Series is as easy as installing any other Microsoft product, even easier. Click Next forth and click the Finish button will do the work. The only additional step you need to go is choosing “I agree” at the End User License Agreement page.
Configure Windows Media Encoder
Follow the New Session Wizard. It should be very easy step, since more of the questions are easy to understand. Here are some tips:
Select “Broadcast a live event…” since you are not broadcasting a piece of video you have recorded.
Select the camera in Video source.
You can select your Audio source too, but don’t expect the sound effect is good. You can use a .WAV file as background music.
HTTP port. Just leave it as it was – 8080. Change it if you have to.
Always select Pull instead of Push, since you don’t have Windows Media Server.
For profile selection, you can try different profile that meet your needs. The common rule is, the higher the resolution is, the more bandwidth it requires. I am using 320x240 in size, 15 fps, and on 100 kbps.
Think carefully when entering Title and Author, it will be displayed on the viewer’s media player.
Finally, do NOT select save the video to file unless the video is really important or you have enough disk space.
After everything is done, click “Start Encoding”. Congratulations. The server part is done.
How about the client then?
To test, you can open Windows Media Player, click Open URL… on the File menu. In the “Open URL…” dialog box, enter your media source like this,
(It is valid source and you can try to open it)
Substitute the source with your server name and the port you chose.
If you can see the video, you can go ahead to create a web page so others can directly view it on a web page as I did.
You can copy the source code of my page into your page. You are free to do so and you don’t need to link back since I got the source code from MSDN sample.
Congratulations
If you have successfully setup your own Windows Media server and can broadcast to the Internet, I will congratulate you on the achievement. I will feel very happy for the 1.5 hour I have spent on this article. My only requirement for you is to write a comment under this article and share the URL of your online broadcasting station with my readers.
“Oops. It does not work as you said”
It may also be common. Write a comment under this article so all the community members, including me, can help you on that.
Happy broadcasting!
Updated
95 Comments
sorry it doesn't work. Windows media encoder says : the device is not connected
but this is not possible.
with other programms i don't have any problems with capturing. I am using a ati all in wonder card
Can you help me ?
warm regards
Aleks
I followed the steps to broadcast live from my connected Sony DV Camcorder. Problem is that in the Wizard the Media Encoder sets the following http:
http://192.168.0.1:8080/ and the problem is that 192.168.0.1 is the Local Ethernet Adapter's IP Address, not the PPP Adapter's IP address.
I can view the broadcast using my local Windows Media 9 player (entering the above http as URL), but someone else connected to the internet cannot pull the broadcast.
Any help?
Thanks.
re: the above comments, I am using DSL with dynamic IP also, but i run an ipcop firewall which updates an hn.org DNS account everytime the IP address changes. This allows me to host a domain even though the ip address can change.
how to setup my computer after installed windows
media server and windows media encoder to send audio stream to another computer that connected
through the LAN network.
please inform me as soon as possible.
Do the steps in this article help? It is all about completing the tasks you mentioned.
I managed to up-load the media player to my website and thought it was working great until i emailed a friend with a link and to my horror she said it wasnt working so i tryed it my self on another pc also using Broadband same again just getting the message Connecting to the media
Then message saying Playing but still nothing on the screen this is strange since it is working fine on my own PC that i am up-loading the webcam from any idea's whats going wrong why i can view the player on my PC but others can't??
Wich software do you recomend me to do this??
Thanks a lot...
if you see this message please contact me. (click on my name)
Is there something I am missing out.
Please help
Itayi Masona
Insert -> Picture -> From Scanner or Camera...
You should be able to insert the picture from the camera. If you cannt, something wrong with the camera and you need to fix it. How to fix? I don't know. It is out of the topic of this article.
Good luck.
Thx in advance
thanks in advance.
Ask more people to try. Just paste your URL here so we can tell what happened.
And after all time is one of the most valuble commodities.
Cheers again.
Mac.
I don't have a web cam, so i used the eye of a bull that i got from the local butchers. I tried connecting the eye to my pc with a USB cable but discovered that the bulls eye does not have a USB port. I used some sticky tape to attach the cable in the mean time, but when prompted to select the video source, 'Bulls Eye' is not displayed.
Do you know how to configure a bulls eye for windows encoder or server. Your advice would be appreciated.
Please be quick as the eye is starting to smell odd.
Thanks Gareth
I don't have a web cam, so i used the eye of a bull that i got from the local butchers. I tried connecting the eye to my pc with a USB cable but discovered that the bulls eye does not have a USB port. I used some sticky tape to attach the cable in the mean time, but when prompted to select the video source, 'Bulls Eye' is not displayed.
Do you know how to configure a bulls eye for windows encoder or server. Your advice would be appreciated.
Please be quick as the eye is starting to smell odd.
Thanks Gareth
I don't have a web cam, so i used the eye of a bull that i got from the local butchers. I tried connecting the eye to my pc with a USB cable but discovered that the bulls eye does not have a USB port. I used some sticky tape to attach the cable in the mean time, but when prompted to select the video source, 'Bulls Eye' is not displayed.
Do you know how to configure a bulls eye for windows encoder or server. Your advice would be appreciated.
Please be quick as the eye is starting to smell odd.
Thanks Gareth
This method of yours saved me a lot of time and work.
Thanks.
please
tanks
I followed the steps to broadcast live from my connected Web Cam. Problem is that in the Wizard the Media Encoder sets the following http:
http://192.168.0.1:8080/ and the problem is that 192.168.0.1 is the Local Ethernet Adapter's IP Address, not the PPP Adapter's IP address.
I can view the broadcast using my local Windows Media 9 player (entering the above http as URL), but someone else connected to the internet cannot pull the broadcast.
Any help?
Thanks.
Why not try to find out your external IP address ( go to http://whatismyipaddress.com) and give the URL of http://yourexertnalIDAddres:8080 to your friend?
Also, you need to setup a port rely or port mapping on your DSL router for people outside your router to see your broadcast.
I think you have misunderstood my question, I know how to find out my externalID address, but windows media encoder always default the URL to http://192.168.0.1:8080/ and it is protected, I can not change it.
How do I setup a port rely or port mapping on a Ad Hoc Wireless network (only connect to PCs via wireless network card, I am not using any DSL router.
How do I setup a port rely or port mapping on a Ad Hoc Wireless network (only connect to PCs via wireless network card, I am not using any DSL router.
I'm having the same problem as Kin Shum, I am using Windows Media Encoder 9 on an XP Pro PC connected to the Internet via DSL with dynamic IP. Windows media encoder can not find my internet ip, but only my local network ip, therefore people outside my network could not see my live cam.
I can see my cam from my external ip address, but only from the pc running the encoder, I have disabled my firewall but it doesn't help. and encoder can not see my external ip, only my local network ip. please help me.
loco
can anyone help me? thank you.
please
tanks
I have the same problem...!!!
Nobody know answers ??
I am using Windows Media Encoder 9 on an XP Pro PC connected to the Internet via DSL with dynamic IP.
I followed the steps to broadcast live from my connected Web Cam. Problem is that in the Wizard the Media Encoder sets the following http:
http://192.168.0.1:8080/ and the problem is that 192.168.0.1 is the Local Ethernet Adapter's IP Address, not the PPP Adapter's IP address.
I can view the broadcast using my local Windows Media 9 player (entering the above http as URL), but someone else connected to the internet cannot pull the broadcast.
Any help?
Thanks.
ps. By other Friends i see his IP like 86.33.12.55 so he can stream to the net.
here i see my computername by internet outgoing..??
P.L.E.A.S.E. HELP..!!! I LIKE TO STREAM...
Since you said your local address http://192.168.0.1:8080, it means your local computer get the IP address of 192.168.xxx.xxx from an equipment (should be a proxy, or router that dynamically assign IP to your LAN computer) while this equipment connects to the Internet directly with public IP address, like 86.33.12.55. The proxy may be using technology like NAT (Network Address Translation) or other ways to enable you access the Internet.
However, this kind of proxy does not allow any one from outside to connect to a server inside the proxy. For example, if three machines in your LAN with the following IP address 192.168.0.1, 192.168.0.2 and 192.168.0.3 are behind the same proxy and share the same public IP address, how can the external machines (or the proxy) know which of the three server a inbound request should go to?
The solution is, configure your proxy, router or whatever to forward all request to the 8080 port to your server inside the LAN. The ways to configure are different from equipment to equipment. Let me know which solution you are using to access the Internet first.
and it does not work with windows 2000.
where did you find the driver? couse the link on the page does not leed 2 the driver instalation.
i am looking for the driver but i can't find it, i will be greatfull if you can send me the link for the insyalation of the driver.
thanks :)
Amit
i use webcam32
COULD YOU SEND ME THE DRIVER, SO I CAN INSTALL IT ON WINDOWS ME.
THANKS
AMIT
1) to find you Web IP use http://whatismyip.com/
2) Did anyone know why the encoder says "device not connected" ?? it IS connected and works fine with ALL other programs also Messenger.
Thanks :O)
Where can I find it in your site?
The device is not connected (0x8007048F)
Can any one help me?
worked for me!
-brodie
http://192.168.0.1:8080/
I use the window media player and type the internal lan address in it.. it works. but my friend use the the URL above http://192.168.0.1:8080/ it cant see it..
I wants to ask
your example http://home.wangjianshuo.com:8080 .... "home.wangjianshuo" then what i type in this part?
Thank you very much .. I wants to watch EURO2004... thankyou
Thanks in advance, have a nice day
"The device is not connected. (0x8007048F)"
After researching this error message I've concluded that there is an incompatability issue between the driver and the Encoder supplied by Windows.
Since the video card and driver DEFINITELY work and DEFINITLEY stream accross the net and LAN, is there someone who might know of an alternate driver which will see both my old Nvidia Capture Card AND Windows Media Encoder?
I'm running on an Athalon 2500 1.8 with a full gig of RAM. Windows XP Home.
Thanks in advance for any help you might provide.
Ben
interestint Web!!!
I'm trying to make a radio station by web, I install windows media encoder, an put the radio like LINE IN of the encoder, I can see that Media Encoder is emiting, but I can't connect via internet, I think is problem of the Firewall, Can you tell me witch port/s use?
please, send me an e-mail!!!
thanks for all
edu
dsilver23@hotmail.com
2004, re-taking that plunge again to re-try it, and I'm STILL getting the same old "the device is not connected" message, same as everyone else, it works in all other video cap programs, aswell as Vidcap32 and AmCap.
Oh well, time to give up for another year and go back to encoder 7....
-Dave
I have spent an hour trying to work it out and got to this forum. However, if you give your IP address to someone and ask them to access it - it WILL work anyway. It has for me!
Hope that helps.
Mail me if not.
Search Google http://www.google.com/
Thanks
women sperme femmes photo cogiendo fotografias foto anal sexe penetracion photo enlarged nuas lesbian d nude erotic sexo sexe et chatte oral anal clitoris nymphomane caresse sperme cartoon domina star lesbian oral femme sexo belle mouillie et filles jeunes cul putain japanese japan lesben cartoon jennifer love water nues sexo chatte sexe anal
Thanks in advance
Monica
monic_bravo@yahoo.com.ar
Your solution works great and your article was very well written.
Best,
Charles
1 - After you do all your set up as directed above click the Encode button above the preview screen in Windows Encoder.
2 - When you add script to your website to embed Windows Media have the video properties point to mms://ipaddress:port instead of http://ipaddress:port as was posted above by Brodie_np on June 3, 2004 07:05 AM.
Thanks to all for thier help!
it wont connect to my webserver
so i used my ip and i can see it but nobody else can
Please help me
Thanks For All Your Help
Imran.
I've tried to checkout your sample link to visit a broadcasted webcam , but it dosn't work. may I have another link to check it out?
Thank you
Babak
do i can see webcam on mobile ?
tanks
javan
Thank you for your reply.I did start successfully broadcasting my webcam in a local network ., but now i dont know how can i share it to get by a dial up phoneline. can you please let me have the tutorail of this item or something that can help me.or please let me have email address of other members that can help me.
Best regards
Babak
It's nice of you to put the steps up here. However I encountered a problem of my WebCam. I could not even display it in the Windows Media Encoder, since it is not directly connected to my PC. I can access the WebCam through an internal IP. How can I set it as an input in WME? Thanks in advance!
Regards,
Cathy
I learned something new today. Awesome, cool. I can broadcast my cam.
Thanks a bunch.
then when i hook up my linksys router the ip adress is 192.....and looks like its broadcasting but my friends cant log on..i disabled fire walls-did the port forward-port trigger-even dmz to open all ports on the router. i see others having the same problem.
anyone get the encoder to work running through a router?
please let me know
john
I have already done the server thing. Now on my html page how do i embed the live stream broadcast. The thing is that ur http://www.wangjianshuo.com/news/20020814WebCam/webcam.htm does not show the webcam any more... so where do i get the source code
When I launch Media Encoder, it will automatically recognize internal IP as Internet IP. I cannot edit the IP for external access on my Windows XP Prof. Can you advise?
JY
regards,
-Jr-
i am having the same problem that people outside my network cant listen my stream. can u please solve this prob. i hv embeded the code but the prob is the same. i m using TP Link wireless router