Hi All,
No matter what I try I cannot integrate my IP camera in Home Assistant. I have tried both using ONVIF via the UI and manually, and adding it as a generic camera in configuration.yaml. The result is always the same, ‘Error starting stream, see logs for details (Stream never started)’ and in the logs
‘2022-02-28 14:51:52 ERROR (stream_worker) [homeassistant.components.stream.stream.camera.generic_camera] Error from stream worker: Error opening stream (INVALIDDATA, Invalid data found when processing input) rtsp://:@192.168.1.220:554/realmonitor?channel=0&stream=0.sdp’
I’ve generated multiple rtsp URLs and all work fine in VLC.
Done loads of googling, rebuilt HA again, updated ffmpeg and all other random things, nothing will get it to work.
I’m using core-2022.2.9 as a docker container on Raspberry Pi.
Some logs:
2022-02-28 15:21:46 ERROR (stream_worker) [homeassistant.components.stream.stream.camera.camera_fixedprofilea01] Error from stream worker: Error opening stream (INVALIDDATA, Invalid data found when processing input) rtsp://****:****@192.168.1.220:554/realmonitor?channel=0&stream=0.sdp
####################################
ffplay rtsp://*****:*******@192.168.1.220:554/realmonitor?channel=0.sdp -loglevel debug
Initialized opengles2 renderer.
[tcp @ 0x6a302640] No default whitelist set
[tcp @ 0x6a302640] Original list of addresses:
[tcp @ 0x6a302640] Address 192.168.1.220 port 554
[tcp @ 0x6a302640] Interleaved list of addresses:
[tcp @ 0x6a302640] Address 192.168.1.220 port 554
[tcp @ 0x6a302640] Starting connection attempt to 192.168.1.220 port 554
[tcp @ 0x6a302640] Successfully connected to 192.168.1.220 port 554
[rtsp @ 0x6a3005f0] SDP:
v=0
o=- 1089506642 1089506642 IN IP4 192.168.1.220
t=0 0
c=IN IP4 192.168.1.220
a=packetization-supported:Puwell
m=video 0 RTP/AVP 96
a=control:trackID=0
a=rtpmap:96 H264/90000
a=framerate:0S
a=fmtp:96 profile-level-id=4d4028; packetization-mode=1; sprop-parameter-sets=Z01AKJ2oHgCJ+WEAAAMAAQAAAwAyhA==,aO48gA==
m=audio 0 RTP/AVP 8
a=control:trackID=1
a=rtpmap:8 PCMA/8000
[rtsp @ 0x6a3005f0] video codec set to: h264
[rtsp @ 0x6a3005f0] RTP Profile IDC: 4d Profile IOP: 40 Level: 28
[rtsp @ 0x6a3005f0] RTP Packetization Mode: 1
[rtsp @ 0x6a3005f0] Extradata set to 0x6a303c88 (size: 34)
[rtsp @ 0x6a3005f0] audio codec set to: pcm_alaw
[rtsp @ 0x6a3005f0] audio samplerate set to: 8000
[rtsp @ 0x6a3005f0] audio channels set to: 1
[rtp @ 0x6a304eb0] No default whitelist set
[udp @ 0x6a3053d0] No default whitelist set
[udp @ 0x6a3053d0] end receive buffer size reported is 131072
[udp @ 0x6a3157c0] No default whitelist set
[udp @ 0x6a3157c0] end receive buffer size reported is 131072
rtsp://*****:******@192.168.1.220:554/realmonitor?channel=0.sdp: Invalid data found when processing input
Any help would be greatly appreciated!