This page last changed on Aug 06, 2014 by yayaxyupp.

I have a camera which support live video use the rtsp protocol, I can use vlc or other player visit the video , use command like this: rtsp://my-camera's-ip:port/idkey/device.sdp , how to add this to openremote system?

At this stage, RTSP is not supported in any of the OR consoles.

If you camera also supports MJPEG (e.g. some cameras support 2 streams with different settings), then you can use that URL on a Web widget to display it within an OR design.

Posted by ebariaux at Aug 06, 2014 18:16

thanks for you reply.
I want know is it easy if add the rtsp support?
Or give me some suggest for the guide for add it?
thank you again.

Posted by yayaxyupp at Aug 07, 2014 03:28

thanks for you reply.
I want know is it easy if add the rtsp support?
Or give me some suggest for the guide for add it?
thank you again.

Posted by yayaxyupp at Aug 07, 2014 03:28

I gather from your other post that you're talking about adding this to the iOS console.

I don't think it's really easy to do but all depends on your level of expertise in iOS and C development.

The iOS SDK does not support RTSP out of the box, so you need to find and compile a library to provide that service.
This bit should still be OK. If you want to contribute code back to OR, you however need to be careful on the licenses of the libraries you choose.
Juha is the expert on this, but anything Apache, MIT or LGPL should be OK.

But this is only the transport layer, now you need to decode and present the video.
I would take it that the video is H264, which is the most probable format.
Until now (that is up to iOS 7.1), Apple did not expose access to the hardware decoder, which meant that you need to do the decoding in software, using a library like ffmpeg.
I did look at that a very long time ago, but it turned out to be too slow for our application (it was on an iPhone 3G) and I never took it any further.

If you're happy with iOS 8 only support, then you can take advantage of the new API.
There is a specific WWDC session on this topic, for which you can find the video on Apple's dev site.

If you get that part running, which is totally independent of OpenRemote, the rest is pretty simple to do.
It'll need some thoughts on how to integrate within OR but there we can help and there should not be any technical difficulties.

I would thus advice, if you want to add this, to code a simple iOS app to display the video from your camera.
This will avoid you the need to look at OR code and deal with any issues that might arise there.
Once you're there, then we can see how to integrate.

Hope this gives you a better idea on the way forward.

Posted by ebariaux at Aug 07, 2014 12:11

Thanks a lot.

Before I focus the openremote project , I made a own platform to access the IPC, which like the dropcam's usage. In the iOS client , I use the VLCKit for support rtsp protocol and the H.264 decoder. And I use the libvlc in the Android platform for support the IPC . The vlc library is good for it. The vlc use the the live555 and ffmpeg library support it.

But I don't know much about the openremote architecture,I will study it then consider how to integrate the client and the platform .

Posted by yayaxyupp at Aug 08, 2014 08:27
Document generated by Confluence on Jun 05, 2016 09:36