Search code examples
video-streamingraspberry-pichromecastonvif

Possible approaches to stream video from an IP camera to chromecast or raspberry pi


This is related to this question, which is not answered yet.

Basically I want to know if it is possible to:

Cast the stream from an IP camera to chromecast or some other devices (like raspberry pi)

The IP camera I have is a D-Link one, with some GPL code downloadable. It is also ONVIF conformant.

The vendor solution provides both "cloud" access and iOS / Android app, which makes me think it is possible to write some service and/or an app for it.

I am open to any and all possible approaches for the viewing / casting feature, and I do not need to control the camera (just viewing the video stream on the TV).

Thanks in advance.

---- UPDATE ----

I should mention that I can also accept approaches using other devices, like Raspberry Pi or what is suggested in this dlink forum question.


Solution

  • As for Chromecast: I'm not an expert on how to feed a video stream on the bundled players but you can make your own Chromecast app that would pull in the video feed and render it. You can get the exact rtsp/http links from the camera documentation and then all you need is a code to receive/demux/render the stream, I've been involved in making a similar app that plays MJPEG streams on the TV, worked fine.

    If you are not bound to Chromecast but can use any embedded device, then Raspberry Pi + omxplayer should be a very easy setup. Omxplayer is provided as a Rasbioan package and plays an rtsp link straightforward using hardware acceleration that could be beneficial to big streams. If more than one camera is targeted you can always write an ONVIF client to get the stream url from any ONVIF compliant camera and feed it to the omxplayer.