How To: Stream Video from Your Webcam to the Internet
Posted 12/07/06 at 06:30:09 PM by Will Smith
2. Configure TinCam
Open TinCam, and cancel out of the configuration wizard. The wizard helps you configure a webcam that posts a static image on the web, but we’re going to be streaming video, so it’s not necessary. Click the Setup menu and open the Setup option, then go to Video Devices and make sure the box for your camera is selected. Then click the sub-menu for your camera and configure its output format and the affiliated audio source (if you want to stream audio, that is).
This is also the pane you use to set the streaming resolution. The resolution has a direct impact on the number of clients you can stream video to. If you set it too high, your connection will only be able to support one stream. Too low, and you won’t be able to see anything on your video. We recommend starting at 640x480, then testing the video outside your home LAN to see exactly how it performs. Of course, if you’re only going to stream the video within your home, bandwidth is no object, and you’ll be able to stream at the maximum resolution of your webcam.
Next, you’ll need to create the streaming file, which you’ll need to upload to your personal website. This .wvx file contains the relevant information about your video stream—including the IP address, bit rate, and format—which lets software players find and connect to your server. Configure the downstream bit rate for your connection type (e.g. DSL, cable, T1) and the maximum number of users you want to support. Then click the Detect button to embed your IP address in the file, and make sure the Create Stream File box is checked. When you close the dialog box, the streaming file will be in the directory you specified earlier.
3. Design Your Streaming Page
The nice thing about your streaming page is that it can be as fancy or simple as you like. The simplest thing to do is to make a link to the .wvx file (created in Step 2) on your website. This is the code we used on our webpage (replace the brackets with greater than/less than): [a href=”http://www.url.com/webcam.wvx”]Webcam[/a]
Of course, you’ll need to replace www.url.com/webcam.wvx with the path to your streaming file.
If you want your own streaming page to look a little fancier, use Notepad or your favorite HTML editor to create the page, just like you would for any other webpage, and embed this code where you want the video player to show up (replace brackets with greater than/less than):
[OBJECT ID=”MediaPlayer0” WIDTH=640 HEIGHT=525
CLASSID=”CLSID:22D6f312-B0F6-11D0-94AB-0080C74C7E95”
STANDBY=”Loading Windows Media Player components...”
TYPE=”application/x-oleobject”]
[PARAM name=”autoStart” value=”True”]
[PARAM name=”filename” value=”webcam.wvx”]
[EMBED TYPE=”application/x-mplayer2”
src=”webcam.wvx”
NAME=”MediaPlayer0”
WIDTH=640
HEIGHT=525]
[/EMBED]
[/OBJECT]
4. Configure Your Router
Next, you need to configure your router to forward connections from the net to your streaming server. The details will vary from router to router, but the basic steps are the same. First, you need to access your router’s web interface. Open your browser and type the IP address you wrote down earlier for your default gateway—your router is your gateway. Enter your router’s password when prompted, and then look for a page labeled Port Forwarding, Gaming, or Servers.
Regardless of your router’s brand, you’ll need to configure a port to forward, as well as tell the router which type of traffic to pass through, and the destination on your internal network. The port range will be 8080 to 8080, the IP address will be the static IP you assigned in Step 1, and you should forward both TCP and UDP packets. Make sure your new forwarded port is enabled, click the button to apply your settings, and you’re done with the router config.
5. Upload and Test Your Stream
Now you’ll need to upload the stream file you created in Step 2, as well as the HTML file you created in Step 3, to your website. It’s a good idea to put these in a subfolder of your public_html directory. That way, you can easily add a password to the subfolder, to give your cam minimal protection from prying eyes.When the files are uploaded, go to your streaming server, open TinCam, click the Capture menu, and then select Video Streaming. Your stream should be live at this point. Browse to the page you uploaded, and check it out!
Tracking
Submitted by PhoneyVirus on Fri, 09/04/2009 - 5:30pm
Just Tracking Thanks
Stream with VLC?
Submitted by Lars Rasmussen on Fri, 06/01/2007 - 9:55am
Have you been able to get streaming to work similarly with VLC instead of TinCam?
It'd be $19 cheaper.
Feature
Review
Feature
Feature
Feature






