Hi! I have a dlink 825L that I’m trying to setup. It works with the mpeg endpoint but I want to use it as stream so I can cast it to my Google home hub.
The stream plays well using vlc. I can also get it to work somewhat well by running ffmpeg in the background to transform the stream to hls. I can do that my using the following:
ffmpeg -rtsp_transport udp -i rtsp://admin:[email protected]/play1.sdp -fflags +genpts -hls_wrap 40 -flags -global_header ~/cam.m3u8
I can add that as a generic ip camera but I want hass to do the work as it has support for ffmpeg I shouldn’t have to handle that in the background.
I run home assistant in a virtual env. ubunutu and a good NUC. This is my best attempt to set it up:
ffmpeg:
ffmpeg_bin: /usr/bin/ffmpeg
stream:
camera:
- platform: ffmpeg
input: -rtsp_transport tcp -i rtsp://admin:[email protected]/play1.sdp
name: Baby
extra_arguments: -fflags +genpts -flags -global_header -q:v 2
It can fetch a thumbnail from the stream but not play it so I think I’m close. My extra_arguments helped that. Now I have demuxing errors “No dts packet”. This was solved before with the genpts when i ran ffmpeg.
I read somewhere that the device must support multiple clients, I don’t think my camera does that. Maybe that’s what I solve by running ffmpeg as one client and then distributing the new stream.
Any ideas where to go from here?