Webcam Streaming Manual

You might also like

Download as pdf or txt
Download as pdf or txt
You are on page 1of 11

Streaming Manual for the Aircam, Unifi Video

Camera or Unifi Pro Video Camera

Intro
Uplinkspeed
ConfigurationofAircam
DynamicIPaddress/DynamicDNSservice
ConfigurePortForwardinginDSLrouter(Example:AVMFritzBox!)
Streamingservice
ConfigureDynDNSUpdateinRouter

Intro
TheAircam,UnifiVideoCameraorUnifiProVideoCamerageneratesalivevideostream.
Windfinderdoesnotprovideanysupportforvideostreaming.Howeverhereisa
comprehensiveguidetohelpyousetupyourvideostreamonyourwebsite.

TheAircamgeneratesvideostreamsin4differentresolutions:
rtsp://<yourlocalwebcamIPaddress>/live/ch00_01280x720px(HD)
rtsp://<yourlocalwebcamIPaddress>/live/ch01_0640x368px
rtsp://<yourlocalwebcamIPaddress>/live/ch02_0320x176px
rtsp://<yourlocalwebcamIPaddress>/live/ch03_0160x96px

BydefaulttheAircamproduces25framespersecond.

Ifyouwanttoprovidealivevideostreamonyourwebsiteyouneedtoconsiderseveral
aspects:
Uplinkspeed
DynamicIPaddress/DynamicDonainNameService(DNS)
Portforwarding
Streamingprovider

Uplink speed
Gotohttp://www.speedtest.net/andcheckyouruplinkspeed.InordertouploadaHD(1280x
720px)videostreamwithaframerateof25persecondfromyourlocalinternetaccessto
theworldwidewebyourinternetconnectionneedstoprovideatleast1Mbit/seconduplink
bandwidth.Ifyouruplinkspeedislowerthan1Mbpsselectoneofthelowerresolution
streamsmentionedaboveorlowertheframerate.Ifthevideostreamgeneratesfewerframes
persecondthedatavolumewillbelowerandthismightallowyoutouploadtheHDstream
(1280x720px).InordertolowertheframerateyouneedtoinstalltheUnifivideocontroller.

Configuration of Aircam
DownloadUnifiAirVisionfromhttp://www.ubnt.com/download/airvision/forWindows7,8or
8.1(64bit)orLinux(64bit)andinstallthesoftware.Thesoftwareisonlyneededfor
configuration.AsoftwareforMacOSisnotyetavailable.Inthelaststepoftheinstallation
processselectStartUbiquitiUnifiafterinstallation.TheUnifivideocontrollerwillappearas
aniconinthesystemtray.ClickonthisiconUnifiVideo:RunningandselectOpenin
Browser.

Thefollowingscreenwillappear:

ClickonAdvancedandthenonProceedto127.0.0.1(unsafe).

Acceptthelicenseagreement
2


Welcome:Enterthesystemnamee.g.Petersaircamcontroller,selectlanguageand
timezone.
Account:Enteryouremailaddress,yournameandapassword
Mode:Createasnewcontroller
Finishthesetupwizard
LoginintotheUnifiVideointerface

Thefollowingsceenappears:

ClickonClicktomanage.Intheboxauthentication/assignmententer:
Username:ubnt
password:ubnt

ThecamshouldbedisplayedasConnected,seebelow:

Movethemouseon1connectedandclickAircam.Intheboxclickconfigurationandthen
videosettings.Selectanotherframerate(ifyouruplinkspeedrequiresalowerframerate).

Dynamic IP address/ Dynamic DNS service


Mostinternetconnectionshavea(external)dynamicIPaddress(versusstaticIPaddress)..
Thismeansthateachtimeyouconnecttotheinternetfromthecomputer,tablet(via
WLAN/WIFI),smartphone(viaWLAN/WIFI)orwebcamyourinternetaccessproviderwill
assignanewIPaddresstoyourinternetconnection.IfyouhavesuchadynamicIPaddress
youcannotsimplyputthelivestream(forexamplertsp://100.200.300.400//live/ch00_0
1280x720)ontoyourwebsitebecausetheexternalIPaddresswhichisassigendtoyou
changeseverytimeyouconnecttotheinternet.

ThereforeyouwillneedtouseaservicewhichidentifiesyoureverchangingIPaddressand
connectsittoastaticdomain.Tolearnmoreaboutthispleaseread:
http://en.wikipedia.org/wiki/Dynamic_DNS

Youwillneedtoregisteratadynamicdomainnameservice(DNS):
5


http://www.noip.com/remoteaccess(freeservicebutrequiresmanualreactivation
every30daysalternatively19.95US$/year)
http://dyn.com/standarddns/(35US$/year)
http://freedns.afraid.org/(freeservice,recommended)

Gotohttp://freedns.afraid.org/signup/andfillinthesignupform:

ClicktheactivationlinkintheregistrationmailfromFreeDNS.Afraid.org.Clickonadda
subdomainandfillintheform:

InthefieldType:selectAfromthedropdownmenu,inthefieldSubdomain:typefor
exampleaircamhawaii,andinthefieldDomain:selectadomainofyourchoice,e.g.
mooo.com(public).ClickSave

AferregistrationyouneedtoinstallalittleprogramtofrequentlyinformFreeDNS.Afraid.orgof
yourcurrentIPaddress.Gotohttp://freedns.afraid.org/scripts/freedns.clients.phpandscroll
downtodownloadaprogramforyouroperatingsystem.Inthisexamplewechoose
FreeDNS UpdateforWindowsanddownloaditfromhttp://www.techknowpro.com/freedns/
anddownloadFreeDNSUpdatev1.8.4Setup.

IfyoucannotinstalltheprogramtoautomaticallyreportyourIPaddressto
FreeDNS.afraid.orgpleasereadthechapterConfigureDynDNSUpdateinRouter

Nowyouwillhaveadomainlikehttp://aircam1.mooo.com.Whenyouopenthisdomainin
yourbrowseryouwillprobablynotseeanythingoramessagelikeThiswebpageisnot
available.ThisisbecausetheDNSserviceisconnectingtothefirstdevicebehindyour
internetaccessandthisisusuallytheDSLrouter.InordertoaccessyourAircamfromoutside
withtheDynDNSserviceyouneedtoconfigurePortforwardinginyourinternetrouterin
ordertoforwardtheaddresshttp://aircam1.afraid.orgfromyourroutertoyourAircam.

Configure Port Forwarding in DSL router (Example: AVM FritzBox!)


Logintoyourrouter(inthisexampletheFritzbox)bytypingthefollowingURLintheaddress
lineofyourbrowser:http://fritz.box/
InthemenubarontheleftclickInternet,thenFreigaben(English:PortForwarding):

Thencreate2portforwardingrules:

1) CheckthecheckboxandselectPortfreigabeaktivfr:HTTPServer.(English:Port
forwardingactivefor:HTTPserver).InthefieldAnComputer:selectAircam
(English:Atcomputer:Aircam).ThefieldIPAdresse(English:IPaddressisfilledin
automatically).PressOKtosave.

ThisportforwardingrulewillcauseyourAircamwebinterfacetobeaccessiblefromanywhere
ontheinternetattheaddress:http://aircam.mooo.comwithusernameandpassword.(Please
keepusernameandpasswordsecret.)Howeverthelivestreamisnotyetaccessiblefrom
outside.Weneeda2ndportforwardingruleforthis:

2) CheckthecheckboxandselectPortfreigabeaktivfr:AndereAnwendung.(English:
Portforwardingactivefor:OtherApplication).InthefieldBezeichnungenter:
Aircam(English:Designation:Aircam).ForProtokoll(English:Protocol)select
TCP.InthefieldsVonPort/BisPortenterboth554(English:FromPort554/to
Port:554).InthedropdownfieldAnComputer(English:AtComputer)select
8


Aircam.ThefieldIPAdresse(English:IPaddressisfilledinautomatically).Finally
inthefieldAnPort(English:Atport)enter554andthenclickOKtosave.

The2ndrulecausesyourvideostreamtobecomeavailablefromtheinternetat:

StreamingURL(Example)

Resolution(pixel)

rtsp://aircam1.mooo.com/live/ch00_0

1280x720px(HD)

rtsp://aircam1.mooo.com/live/ch01_0

640x368px

rtsp://aircam1.mooo.com/live/ch02_0

320x176px

rtsp://aircam1.mooo.com/live/ch03_0

160x96px

Dependingontheuplinkspeedofyourinternetconnectionchoosethetypeofstreamthatyou
wanttomakeavailabletothepublic(onyourwebsite).Youcancheckifthestreamisworking
byrunningVLCmediaplayer.Ifthisprogramisnotinstalledyoucandownloaditfrom
https://www.videolan.org/.StartVLC,thenclickonmediainthedropdownmenuandselect
Opennetworkstream.CopyandpasteoneofthestreamingURLs(seeabove)intothefield
Enteranetworkaddress.Ifyouhavesetupeverythingcorrectlythelivevideostreamfrom
yourcamwillbeserved.

Streaming service
Youcouldnowpublishyourstreamonyourwebsitewiththehelpofavideoplayer.However
thisisnotrecommededatall.IfyoupublishtheHDstream
rtsp://windfinder.mooo.com/live/ch00_0onyourwebsiteandyouruplinkspeedatthesiteof
theaircamis1Mbit/sthenonly1personwillbeabletowatchthestreamontheinternetat
thesametime.Assoonas2peoplewanttowatchthestreamonlineatthesametimethe
streamwillsputterorbreakdownbecause2userswillrequire2times1Mbit/second.Thisis
whereastreamingservicecomesin.Astreamingservicewillmutliplyyourownuplinkstream
tothousandsofusersontheinternet.Becauseapermanentlivevideostreamwatchedby
manypeoplearoundtheworldgeneratesanenormousdatavolumetheseservicesare
usuallynotfree.Theremightbesomeserviceswhicharefreeofchargebutthenthevideo
streamishostedonthewebsiteofthestreamingproviderexclusively(whichmeansyou
cannotembeditintoyourownwebsite)ORthestreamisinterruptedbyvideoads(whichare
servedbythestreamingprovider).

Youneedtosignupwithastreamingservice.WerecommendStreamdaysstartingfrom29
permonth.Theyofferafreetrialandhavegoodsupportviaemail.Registeryourcamat:
http://www.streamdays.com/hostedwebcams/pricing


OnceyouhaveregisteredwithStreamdaystheywillprovideyouwithaURLstringorHTML
codewhichyoucanembedintoyourwebsitetoservethelivestreamofyourwebcam.

Therearesomeotherfreebutunsuitablestreamingservicesbecausetheyonlysupportbuilt
incamerasfromyourPC,notebook,tabletorPCandtheyhostthestreamexclusivelyontheir
website.Ifyouareasystemadministratoryoucanalsosetupyourownstreamingserver.
Thisrequiresalotofknowhowandwork.Awellknowstreamingserversoftwareis:
http://www.wowza.com/

Configure Dyn DNS Update in Router


(ReadthischapteronlyifyoucouldnotinstallandruntheDNSUpdateprogram.)

LogintoFritzboxbytypingthefollowingURLintheaddresslineofyourbrowser:
http://fritz.box/.ScrolltothebottomofthescreenandselectAnsicht:Erweitert(English:
View:Extended).ClickonthetabDynamicDNS.ChecktheboxDynamicDNSbenutzen
(English:UsedynamicDNS).Enterthefollowingdata:

Enterthefollowingvaluesintotherouterconfiguration:

DynamicDNSAnbieter:Benutzerdefiniert(English:DNSprovider:Userdefined)
UpdateURL:Gotohttp://freedns.afraid.org/dynamic/andclickonDirectURL

10

CopytheDirectURLaddress(seeexamplebelow):

intothefieldUpdateURLinyourrouter.

Domainname:<theusernamethatyouenteredattheDNSserviceregistration>,e.g.:
aircam1.mooo.com
Benutzername:<YourusernameatFreeDNS.afraid.org>(English:username)
Password:<YourpasswordatFreeDNS.afraid.org>

Clickbernehmen(English:AcceptorSave)

11

You might also like