Any way to display an RTSP feed from an IP camera?

5,606 views
Skip to first unread message

Ben Jones

unread,
Nov 5, 2013, 4:51:31 AM11/5/13
to ope...@googlegroups.com
As the title suggests - does anyone know of any way to display the RTSP feed from an IP camera (in my case a Dahua HFW2100) in the openHAB UI?

I have the correct URL as I can view it in XBMC and VLC. But not sure how to do this in openHAB using either the Image/Webview/Video widgets?

will.st...@gmail.com

unread,
Nov 5, 2013, 7:07:53 AM11/5/13
to ope...@googlegroups.com
I also did not get RTSP working, though was able to find the HTTP stream for my camera. The iSpy Connect website implies that you might be able to utilize http with the following URLs;




Victor Belov

unread,
Nov 5, 2013, 8:04:49 AM11/5/13
to ope...@googlegroups.com
Hi,

Never checked if rstp would work on the android side, but the first problem to solve here is that openhab's proxy which proxies all those url's doesn't support rtsp. So probably we need to try to change this and put unsupported protocols urls to the site map as is. I'll check that with Kai who is the author of the proxy. Meanwhile I will look if standard Android video widget supports rtsp to playback video stream.

Best regards,
Victor Belov




--
You received this message because you are subscribed to the Google Groups "openhab" group.
To unsubscribe from this group and stop receiving emails from it, send an email to openhab+u...@googlegroups.com.
To post to this group, send email to ope...@googlegroups.com.
Visit this group at http://groups.google.com/group/openhab.
For more options, visit https://groups.google.com/groups/opt_out.

Ben Jones

unread,
Nov 5, 2013, 3:23:37 PM11/5/13
to ope...@googlegroups.com, will.st...@gmail.com
@will - thanks mate - yeah I came across that site as well, and was able to get openHAB to display a snapshot using http://192.168.1.70:9989/onvif/media_service/snapshot. Would be nice to have a streaming feed tho!

@victor - put it down your priority list - it was more a question to see if there was an 'easy' answer. I know you have enough on your plate!

Will Stewart

unread,
Nov 6, 2013, 12:13:02 PM11/6/13
to Ben Jones, ope...@googlegroups.com
If you have a web-based imagery app that comes with the camera, one longshot is to hover the cursor over the video image, rightclick and select "Copy image URL" from one or more browsers. That might get you an undocumented http stream from the camera.

Cheers,

Will

will.st...@gmail.com

unread,
Nov 9, 2013, 3:23:50 PM11/9/13
to ope...@googlegroups.com, Ben Jones, will.st...@gmail.com
And in the interim, consider a refresh to pull jpegs constantly;

Image url="http://192.168.0.1/jpg/image.jpg" refresh=250

Best,

Will

Ben Jones

unread,
Nov 10, 2013, 2:04:59 PM11/10/13
to ope...@googlegroups.com, Ben Jones, will.st...@gmail.com
Yep - I was able to get a snapshot image displayed using http://192.168.1.70:9989/onvif/media_service/snapshot.

I am experimenting with Motion and might try ZoneMinder as the built in motion detection on the camera is not all that reliable.

Really want to integrate with openHAB so I can 'arm/disarm' the camera when the rest of my security system is armed.

Alvaro Danilo Rodriguez Olmedo

unread,
Apr 1, 2014, 11:36:54 AM4/1/14
to ope...@googlegroups.com
I use this command 

cvlc rtsp://USER:PASS@IP:PORT/cam/realmonitor?channel=3 --sout '#transcode{vcodec=h264,vb=512,scale=1,acodec=none,venc=x264{aud,profile=high,level=60,keyint=15,bframes=0,ref=1,nocabac}}:duplicate{dst=std{access=livehttp{seglen=10,delsegs=true,numsegs=5,index=/var/www/live/mystream.m3u8,index-url=http://localhost/live/mystream-########.ts},mux=ts{use-key-frames},dst=/var/www/live/mystream-########.ts},dst=std{access=http,mux=ts,dst=:8082/3.mp4}}'

And then i can view the stream with openhab with a video item whit this url http://localhost:8082/3.mp4

Vermus Rus

unread,
Apr 5, 2014, 4:59:35 AM4/5/14
to ope...@googlegroups.com
what about cpu load?

вторник, 1 апреля 2014 г., 19:36:54 UTC+4 пользователь Alvaro Danilo Rodriguez Olmedo написал:

Kirk McCann

unread,
Dec 13, 2014, 5:32:33 PM12/13/14
to ope...@googlegroups.com
That's brilliant. I will give it a try.  Can you brak down the individual pieces of the command and add some additional information?  Like where and how are you running the command? 
Reply all
Reply to author
Forward
0 new messages