AlexxIT / go2rtc

Ultimate camera streaming application with support RTSP, RTMP, HTTP-FLV, WebRTC, MSE, HLS, MP4, MJPEG, HomeKit, FFmpeg, etc.
https://github.com/AlexxIT/Blog
MIT License
3.76k stars 304 forks source link

mse: streams: wrong user/pass #1217

Open spretto opened 1 week ago

spretto commented 1 week ago

Getting unauthorized/wrong user/pass, but the RTSP url is tested and working in VLC. Stopped working last night after camera local IP address changed (updated in config). Credentials are correct.

TP Link Tapo C110

Suspect this is the underlying same issue as #1065 which spontaneously resolved itself.

Trace level logs:

2024-06-20 19:20:18.796565674  19:20:18.796 TRC [rtsp] client response:
2024-06-20 19:20:18.796567272  RTSP/1.0 401 Unauthorized
2024-06-20 19:20:18.796568051  Cseq: 2
2024-06-20 19:20:18.796568951  Date: Thu, Jun 20 2024 19:20:18 GMT
2024-06-20 19:20:18.796569810  Www-Authenticate: Basic realm="TP-Link IP-Camera"
2024-06-20 19:20:18.796570527  
2024-06-20 19:20:18.796571226  
2024-06-20 19:20:18.796572249  19:20:18.796 TRC [streams] skip prod=rtsp://Username:Password@192.168.1.128/stream1 error="wrong user/pass"
2024-06-20 19:20:18.796573033  19:20:18.796 DBG [streams] can't stop none producer
2024-06-20 19:20:18.796590968  19:20:18.796 WRN [rtsp] error="streams: wrong user/pass" stream=birdfeeder
2024-06-20 19:20:18.796591768  19:20:18.796 TRC [rtsp] server response:
2024-06-20 19:20:18.796592509  RTSP/1.0 404 Not Found
2024-06-20 19:20:18.796593172  Cseq: 2
Ultra-bob commented 1 week ago

Same issue, but started when i reset and connected my camera to a new network. I did the same to another camera but it was fine.

I have tapo c100

Ultra-bob commented 1 week ago

Interestingly, I can play the stream fine with ffplay on my computer, but on my server the command fails with 401 unauthorized

Ultra-bob commented 1 week ago

I just restarted the camera and everything started working again