probe producer error="wrong user/pass"
For some reason, integration cannot authenticate to cameras, even thought rtsp stream is working as generic camera.
10:09:52.842 INF [api] listen addr=:1984
10:09:52.843 INF [rtsp] listen addr=:8554
10:09:52.844 INF [hass] load stream url=hass:bedroom_camera
10:09:52.844 INF [hass] load stream url=hass:balcony_camera
10:09:52.844 INF [hass] load stream url=hass:livingroom_camera
10:09:52.844 INF [srtp] listen addr=:8443
10:10:04.350 ERR [streams] probe producer error="wrong user/pass" url=rtsp://xxxx:[email protected]:554/primary
10:10:04.372 ERR [streams] probe producer error="wrong user/pass" url=rtsp://xxxx:[email protected]:554/primary
10:10:04.398 ERR [streams] probe producer error="wrong user/pass" url=rtsp://xxxx:[email protected]:554/primary
10:10:04.399 WRN [api.webrtc] add consumer error="couldn't find the matching tracks"
10:10:04.400 ERR [api.hass] exchange SDP error="couldn't find the matching tracks"
what im doing wrong?
Maybe you has special symbols in password
Nothing special, plain chars. Also tried a simple test password. RTSP stream is fine, still got the authentication error.

this is my generic camera configuration

You need to increase log level to rtsp: trace and check useful info there.
hmm, not much info on rtsp: trace other than rtsp client is unable to authorize the credentials
14:55:17.528 TRC [rtsp] client request:
DESCRIBE rtsp://192.168.1.168:554/primary RTSP/1.0
Accept: application/sdp
CSeq: 4
Authorization: Digest username="test", realm="RTSP", nonce="5e25993666d5159938ad2265731d8e28", uri="/primary", response="8c780bb2a742d39259e0f6d14b4d19a4"
14:55:17.536 TRC [rtsp] client response:
RTSP/1.0 401 Unauthorized
Cseq: 4
Www-Authenticate: Digest realm="RTSP", nonce="5b1b47dc0945b17883b7f63628705c10"
14:55:17.536 ERR [streams] probe producer error="wrong user/pass" url=rtsp://test:[email protected]:554/primary
Well. How you setup and run your stream?
Closed without response
I have the same problem when using WebRTC. My camera is Xiaomi Smart Camera Standard Edition (MJSXJ02HL) with custom firmware (based on RtspServer).
@kasitoru you need to provide more info. For example rtsp trace logs
Login and password in the logs have been changed for security purposes.
08:45:16.854 TRC [rtsp] client request:
DESCRIBE rtsp://192.168.1.11:554/primary RTSP/1.0
CSeq: 1
Accept: application/sdp
Require: www.onvif.org/ver20/backchannel
08:45:16.859 TRC [rtsp] client response:
RTSP/1.0 401 Unauthorized
Cseq: 1
Www-Authenticate: Digest realm="RTSP", nonce="8da6d744e72ae8bbc046d6f0b78a2a94"
08:45:16.859 TRC [rtsp] client request:
DESCRIBE rtsp://192.168.1.11:554/primary RTSP/1.0
Accept: application/sdp
Require: www.onvif.org/ver20/backchannel
CSeq: 2
Authorization: Digest username="myuser", realm="RTSP", nonce="8da6d744e72ae8bbc046d6f0b78a2a94", uri="/primary", response="d080e420a5b7f8094b2fd474dd1ae387"
08:45:16.863 TRC [rtsp] client response:
RTSP/1.0 401 Unauthorized
Cseq: 2
Www-Authenticate: Digest realm="RTSP", nonce="26c235ac2a4182225af6006de1e6fd51"
08:45:16.865 TRC [rtsp] client request:
DESCRIBE rtsp://192.168.1.11:554/primary RTSP/1.0
Accept: application/sdp
CSeq: 3
08:45:16.877 TRC [rtsp] client response:
RTSP/1.0 401 Unauthorized
Cseq: 3
Www-Authenticate: Digest realm="RTSP", nonce="7ff5202001066428481e72c2a56b99d1"
08:45:16.878 TRC [rtsp] client request:
DESCRIBE rtsp://192.168.1.11:554/primary RTSP/1.0
Accept: application/sdp
CSeq: 4
Authorization: Digest username="myuser", realm="RTSP", nonce="7ff5202001066428481e72c2a56b99d1", uri="/primary", response="fb776dd7c0062ca0cf418a0ef6c4feba"
08:45:16.881 TRC [rtsp] client response:
RTSP/1.0 401 Unauthorized
Cseq: 4
Www-Authenticate: Digest realm="RTSP", nonce="070821cba730ed071362518b97cf5897"
08:45:16.882 ERR github.com/AlexxIT/go2rtc/cmd/streams/producer.go:52 > error="wrong user/pass" url=rtsp://myuser:[email protected]:554/primary
08:45:16.882 ERR github.com/AlexxIT/go2rtc/cmd/mjpeg/mjpeg.go:129 > error="source 0 error: wrong user/pass"
ui-lovelace.yaml:
- type: picture-glance
title: "Hallway"
camera_image: camera.hallway
entities:
- light.hallway
- type: custom:webrtc-camera
entity: camera.hallway

Can you provide access to stream for me? You can find my contacts in github profile. https://github.com/AlexxIT/go2rtc/wiki/Tunnel-RTSP-camera-to-Intenet
I saw one camera that response with 401 if request doesn't have User-Agent header. But it just theory.
RtspServer fix in release https://github.com/AlexxIT/go2rtc/releases/tag/v1.1.2