This repository has been archived by the owner on Feb 16, 2024. It is now read-only.
-
-
Notifications
You must be signed in to change notification settings - Fork 41
Stream camera to Chromecast or Google Nest Hub
DewGew edited this page Dec 19, 2022
·
4 revisions
Stream security camera to chromecast. Supports hls, dash, smooth streaming, Progressive MP4 urls. More info: https://developers.google.com/actions/smarthome/traits/camerastream#video-formats. You need a to convert your video url to one of above. Try with ffmpeg or with a surveillance software system. Try out http://shinobi.video.
In domoticz you need to attach a switch to your camera (create a switch then in Settings/Camera, add the switch to the camera)
If its a doorbell camera if needed you can add:
<voicecontrol>
devicetype = Doorbell
</voicecontrol>
or in config.yaml under Device_Config add devicetype: Doorbell.
Example settings in config.yaml: In config:
Camera_Stream:
Enabled: true
Cameras:
Idx:
- '123'
- '234'
- '345'
Camera_URL:
- 'http://your.web.server/cam/cam.m3u8'
- 'https://content.jwplatform.com/manifests/yp34SRmf.m3u8'
- 'http://user:[email protected]:8080/mp4/cctv/camera2/s.mp4'
Example convert rtsp to hls or mp4 using ffmpeg:
ffmpeg -rtsp_transport tcp -i rtsp://admin:[email protected]/live/ch1 \
-acodec copy \
-vcodec copy \
-hls_wrap 40 \
-flags -global_header \
/var/www/html/cam/cam.m3u8
ffmpeg -rtsp_transport tcp -i rtsp://admin:[email protected]/live/ch1 \
-c:a aac \
-vcodec copy \
-f mp4 \
-y \
-flags -global_header \
/var/www/html/cam/cam.mp4