Roku Developer Program

Join our online forum to talk to Roku developers and fellow channel creators. Ask questions, share tips with the community, and find helpful resources.
cancel
Showing results for 
Show  only  | Search instead for 
Did you mean: 
fubaya
Visitor

Re: IP Camera app/channel

Anyone working on this?

For what it's worth, you can get the video stream or snapshot from the following URLs. There are two ways to get each, whichever you prefer. I tried to stream from a couple Roku apps but didn't have any luck. Just plug in the cam IP and user/pass.

video:
http://IP/videostream.asf?user=USER&pwd=PASS
or
http://USER:PASS@IP/videostream.asf?

snapshot:
http://USER:PASS@IP/snapshot.cgi?
or
http://IP/snapshot.cgi?user=USER&pwd=PASS
0 Kudos
bollywood
Visitor

Re: IP Camera app/channel

"fubaya" wrote:
Anyone working on this?

For what it's worth, you can get the video stream or snapshot from the following URLs. There are two ways to get each, whichever you prefer. I tried to stream from a couple Roku apps but didn't have any luck. Just plug in the cam IP and user/pass.

video:
http://IP/videostream.asf?user=USER&pwd=PASS
or
http://USER:PASS@IP/videostream.asf?

snapshot:
http://USER:PASS@IP/snapshot.cgi?
or
http://IP/snapshot.cgi?user=USER&pwd=PASS


i don't think this was a concern.
the concern is finding a camera which outputs live video in a compatible format for roku. another option mentioned was using the jpegs or in other words, just using the pictures that the camera is taking and refreshing them rapidly.

I have not found a camera that supports HLS. if you do know of one, or can find one, please let us all know.
Hawk Cam
Live footage from the nest on top of Bobst Library at N.Y.U.
copy and paste the link in your browser or use keyword: hawkcam

https://owner.roku.com/add/hawkcam
0 Kudos
dfv78
Visitor

Re: IP Camera app/channel

I got it working but I had to use VLC to restream the video in order to support HLS.
I'm using an Axis M1011-W IP Camera.
I'm using Ubuntu with Apache as web server and the latest (nightly build) version of VLC. As I understand it, this funcionality can only be done with version 1.2 of VLC (which as of this writing is not released yet so you need the nightly builds)

Basically I run VLC from a computer (I may install it on a server later) to get the rtsp stream from the camera and I save it on a web server.
Basically the steps are:
1- VLC - Get the video stream from the camera, prepare the files for http live streaming
2- Save those files on a directory accesible by a Web Server
3- Use the web address of the stream within the Roku application


The steps with a little more detail:

Steps 1 and 2
On my IP Camera I can access the video stream this way:
rtsp://root:password@192.168.1.5:554/axis-media/media.amp


So I run VLC this way:
vlc -I dummy --mms-caching 0 rtsp://root:password@192.168.1.5:554/axis-media/media.amp vlc://quit --sout='#transcode{width=320,height=240,fps=25,vcodec=h264,vb=256,venc=x264{aud,profile=baseline,level=30,keyint=30,ref=1},acodec=mp3,ab=96}:std{access=livehttp{seglen=10,delsegs=true,numsegs=5,index=/var/www/streaming/mystream.m3u8,index-url=http://mywebserver/streaming/mystream-########.ts},mux=ts{use-key-frames},dst=/var/www/streaming/mystream-########.ts}' 


Where:
/var/www/streaming/ is the directory where I'm saving the stream files
http://mywebserver/streaming/ is web address of the location of the stream
The link http://mywebserver/streaming/mystream.m3u8 will get you access to the HTS stream.

Step 3
To test it I used the program 'customvideoplayer' from the RokuSDK and I only changed the line of the stream url on the main.brs to
http://mywebserver/streaming/mystream.m3u8


And it worked!

I'm still testing it but I'm thinking if I have a lot of people watching my IP camera I will run out of bandwidth very soon.

Does anyone know a way I could upload the video stream to Livestream or UStream using VLC (I have done it before) and then get the video directly from a Roku application? This way Livestream or UStream will handle the bandwidth.

To get it working I used as a reference :
- http://wiki.videolan.org/Documentation:Streaming_HowTo/Streaming_for_the_iPhone
- How to stream anything on your hard drive to your roku http://forums.roku.com/viewtopic.php?f=28&t=38551&p=258686#p252994
0 Kudos
gklaas
Visitor

Re: IP Camera app/channel

>by kc8pql » Sat May 21, 2011 1:03 pm
>Maybe not that silly. It's been asked for a number of times before this. I wouldn't have any use for it, but apparently some do.

I have two IP cameras at my second home. They will serve up a JPG image with URL http://IP/image/jpeg.cgi
I'd like to create a screensaver that displays a fresh picture every minute or so. It'll allow me enjoy my vacation home window view while I'm (so sad) having to work for a living 400 miles away....

I'm currently studying deviantart and roku clock examples to figure out how to do this.....

Gerald
0 Kudos
YungBlood
Streaming Star

Re: IP Camera app/channel

Interesting concept. I don't have any IP cams to play with. I'm working on a project VERY closely related to it. Does anyone have (or know of) a publicly available IP cam feed I could play with? With some minor tweaking of one of my current projects, I could have a beta version up in a couple days. I'll see if I can go find some public IP cams...
YungBlood

Bringing more fun to Roku!
0 Kudos
YungBlood
Streaming Star

Re: IP Camera app/channel

Good News! My initial test is working. I'll add in the ability to enter the addresses & refresh rates, and have something published in a day or 2...
YungBlood

Bringing more fun to Roku!
0 Kudos
gonzotek
Visitor

Re: IP Camera app/channel

"YungBlood" wrote:
Good News! My initial test is working. I'll add in the ability to enter the addresses & refresh rates, and have something published in a day or 2...

Woohoo 🙂
Remoku.tv - A free web app for Roku Remote Control!
Want to control your Roku from nearly any phone, computer or tablet? Get started at http://help.remoku.tv
by Apps4TV - Applications for television and beyond: http://www.apps4tv.com
0 Kudos
gklaas
Visitor

Re: IP Camera app/channel

"YungBlood" wrote:
Good News! My initial test is working. I'll add in the ability to enter the addresses & refresh rates, and have something published in a day or 2...


Hey YungBlood, I'm really looking forward to it.

In the meantime, I have been successful modifying the SDK DeviantArt example code to start a slideshow with JPEG's from my two cameras. This works just fine for a quick check of what's happening at home..... I go into the channel, see what the weather's like, see my car is still in the driveway, no flooding in the yard, etc... but the thing I notice is that the Roku caches the images, so if I watch long enough for the slideshow to cycle it always shows the same picture from the moment I started the channel. I did test that my camera will accept URL's with a QUERY_STRING ( http://IP/image/jpeg.cgi?r=#### ) so now I need to figure out how to increment the value of r within the slideshow so it sees a new URL and gets a new image each cycle.

Gerald
0 Kudos
gonzotek
Visitor

Re: IP Camera app/channel

Have a look at TheEndless' suggestion here to add a unique string to the url parameters:
viewtopic.php?f=34&t=47078#p320077
Remoku.tv - A free web app for Roku Remote Control!
Want to control your Roku from nearly any phone, computer or tablet? Get started at http://help.remoku.tv
by Apps4TV - Applications for television and beyond: http://www.apps4tv.com
0 Kudos
YungBlood
Streaming Star

Re: IP Camera app/channel

For viewing a single webcam, try this:

https://owner.roku.com/add/PNVUS

I will be adding a multi-cam app later. 🙂
YungBlood

Bringing more fun to Roku!
0 Kudos
Need Assistance?
Welcome to the Roku Community! Feel free to search our Community for answers or post your question to get help.

Become a Roku Streaming Expert!

Share your expertise, help fellow streamers, and unlock exclusive rewards as part of the Roku Community. Learn more.