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

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!

1 Like

Same problem here, streams are running fine in VLC and even in Synology

hey @Nopelken & @ariggon

Running into the same issue here, were you able to get it fixed?

Hi @Nopelken and @ariggon, I have the same error. It was just on a Tuya camera but now it’s also occuring on my aarlo camera integration.

I know the Arlo camera has worked well but struggles with streaming, with probably a 50% success rate. The Tuya has only streamed once.

I have removed and reinstalled aarlo, tuya and camera integrations with no success.

Has there been any progress with this issue?

I am having the same issue with a REOLINK camera. The stream is h.265 but I have another camera that is h.265 that is working.

Update:
I found that changing the resolution of my camera seemed to get things working. In my case I had to choose the highest resolution of the camera and then things started working. Also, I am connecting using the Synology integration.