Anda di halaman 1dari 5

You know it and I know it: The moment you leave your house, your pets have a party.

But the moment you return, they go right back to their mild-mannered pet personas. To catch them in party mode, you need a streaming video camera! By connecting a typical webcam to an old laptop or PC running the appropriate software, you can set up a streaming video feed that you can access from anywhere on the Internet. Its easy to do and youll be able to peek into your home from anywhere you have Internet access. Weve even peeked in on our pooch from a cellphone. Even though it seems like a fairly simple project, youll need to muck around in the configuration screens for your router. Lets get started! Kau tahu itu dan aku tahu itu: Saat Anda meninggalkan rumah Anda, hewan peliharaan Anda memiliki sebuah pesta. Tapi saat Anda kembali, mereka langsung kembali ke berwatak halus mereka personas hewan peliharaan. Untuk menangkap mereka dalam mode pesta, Anda memerlukan kamera video streaming! Dengan menghubungkan webcam khas untuk laptop tua atau PC yang menjalankan perangkat lunak yang sesuai, Anda dapat mengatur feed video streaming yang dapat Anda akses dari mana saja di Internet. Sangat mudah dilakukan dan Anda akan dapat mengintip ke dalam rumah Anda dari mana pun Anda memiliki akses Internet. Kami bahkan mengintip pada anjing kami dari ponsel. Meskipun tampaknya seperti proyek yang cukup sederhana, Anda akan perlu untuk kotoran di dalam layar konfigurasi untuk router Anda. Mari kita mulai!

1. Prepare Your Streaming Server The first thing youll need to do is configure the machine youre going to connect the camera to. Youll need to install the drivers and software for your webcam, install the streaming software, configure the machine to use a static IP address, and disable power managementyou dont want the machine going into a power-saving mode.

To disable power management, open the Control Panel and go to the Power Options panel. Then make sure the System Standby option is set to Never. Make sure your webcam is working properlymost cams include an app that shows you the output. To configure your rig for a static IP address, the first thing you need to do is find the appropriate settings for your config. Go to the Control Panel, then click the Network Connections icon. Right-click your Internet connectionit will usually be called Local Area Connectionand click Status. Go to the Support tab and click Details. You should write down your current IP address, default gateway, and DNS servers; youll need that info when you configure the static IP.

1. Siapkan Server Streaming Anda Hal pertama yang Anda harus lakukan adalah mengkonfigurasi mesin Anda akan menghubungkan kamera ke. Anda harus menginstal driver dan perangkat lunak untuk webcam Anda, instal perangkat lunak streaming, mengkonfigurasi mesin untuk menggunakan alamat IP statis, dan menonaktifkan manajemen daya-Anda tidak ingin mesin masuk ke mode hemat daya. Untuk menonaktifkan manajemen power, buka Control Panel dan pergi ke panel Power Options. Kemudian pastikan pilihan Sistem Siaga diatur ke Tidak pernah. Pastikan webcam Anda sudah bekerja dengan baik-paling Cams termasuk sebuah aplikasi yang menunjukkan output. Untuk mengkonfigurasi rig Anda untuk alamat IP statis, hal pertama yang perlu Anda lakukan adalah menemukan pengaturan yang sesuai untuk konfigurasi Anda. Pergi ke Control Panel, kemudian klik icon Network Connections. Klik kanan koneksi Internet Anda-biasanya akan disebut Local Area Connection dan klik Status. Buka tab Support dan klik Details. Anda harus menuliskan alamat saat ini IP, default gateway, dan DNS server, Anda akan memerlukan info bahwa ketika Anda mengkonfigurasi IP statis. Now, close that window, go back to the General tab, and click Properties. Double-click Internet Protocol (TCP/IP). In the window that opens, you should click Use the following IP address. This is where it gets tricky. To figure out your new static IP, you should look at the default gateway setting you wrote down before. Then add one to the final number in the default gateway (its usually 192.168.0.1, so your new IP would be 192.168.0.2). Your subnet mask will be 255.255.255.0 and you can use the same default gateway and DNS servers you were using before. Press OK and close all the windows you just opened. If everything works and Windows doesnt give you an error, you can move on to the next step. If Windows says your IP is already in use, youll need to try another IP address.

If youre using a software firewall on this machine, youll also need to configure it to allow TinCam (the streaming app) to receive requests on port 8080, or the firewall will stop them. Consult your firewalls documentation for info on enabling port forwarding for a single app or port.

Sekarang, dekat jendela itu, kembali ke tab General, dan klik Properties. Klik dua kali Internet Protocol (TCP / IP). Pada jendela yang terbuka, Anda harus klik "Gunakan alamat IP berikut." Ini adalah di mana ia mendapat rumit. Untuk mengetahui IP statis baru Anda, Anda harus melihat pada pengaturan default gateway Anda tulis sebelumnya. Kemudian tambahkan satu ke nomor terakhir dalam default gateway (biasanya 192.168.0.1, jadi IP yang baru Anda akan menjadi 192.168.0.2). Subnet mask 255.255.255.0 Anda akan dan Anda dapat menggunakan default gateway yang sama dan server DNS yang Anda gunakan sebelumnya. Tekan OK dan tutup semua jendela Anda hanya dibuka. Jika semuanya bekerja dan Windows tidak memberikan pesan error, anda dapat melanjutkan ke langkah berikutnya. Jika Windows mengatakan IP anda sudah digunakan, Anda harus coba yang lain alamat IP. Jika Anda menggunakan software firewall pada mesin ini, Anda juga harus mengkonfigurasinya untuk memungkinkan TinCam (aplikasi streaming) untuk menerima permintaan pada port 8080, atau firewall akan menghentikan mereka. Konsultasikan dokumentasi firewall Anda untuk informasi tentang cara mengaktifkan port forwarding untuk aplikasi tunggal atau port.

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 were going to be streaming video, so its 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 wont 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 youre only going to stream the video within your home, bandwidth is no object, and youll be able to stream at the maximum resolution of your webcam. Next, youll need to create the streaming file, which youll need to upload to your personal website. This .wvx file contains the relevant information about your video streamincluding the IP address, bit rate, and formatwhich 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, youll 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 routers web interface. Open your browser and type the IP address you wrote down earlier for your default gatewayyour router is your gateway. Enter your routers password when prompted, and then look for a page labeled Port Forwarding, Gaming, or Servers.

Regardless of your routers brand, youll 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 youre done with the router config. 5. Upload and Test Your Stream Now youll 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. Its 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!

Anda mungkin juga menyukai