Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

RTSP Camera: wrong response on DESCRIBE #7

Closed
RomchikL opened this issue Aug 22, 2022 · 12 comments
Closed

RTSP Camera: wrong response on DESCRIBE #7

RomchikL opened this issue Aug 22, 2022 · 12 comments
Assignees
Labels
bug Something isn't working

Comments

@RomchikL
Copy link

Windows version, camera: Laxihub M3-TY with root by guino.
rtsp: rtsp://user:pass@ip:8554/Streaming/Channels/101

Log:

06:14:16.752 INF [streams] create new stream url=rtsp://user:pass@ip:8554/Streaming/Channels/101
06:14:27.164 TRC [rtsp] client request:
DESCRIBE rtsp://192.168.1.119:8554/Streaming/Channels/101 RTSP/1.0
Accept: application/sdp
Require: www.onvif.org/ver20/backchannel
Cseq: 1


06:14:27.205 TRC [rtsp] client response:
RTSP/1.0 400 Bad Request
Date: Mon Aug 22 09:14:27 2022
Server: rtsp_demo


06:14:27.206 TRC [rtsp] client request:
DESCRIBE rtsp://192.168.1.119:8554/Streaming/Channels/101 RTSP/1.0
Accept: application/sdp
Cseq: 2


06:14:27.218 TRC [rtsp] client response:
RTSP/1.0 400 Bad Request
Date: Mon Aug 22 09:14:27 2022
Server: rtsp_demo


06:14:27.219 ERR [streams] probe producer error="wrong response on DESCRIBE" url=rtsp://user:pass@192.168.1.119:8554/Streaming/Channels/101
06:14:27.223 TRC [rtsp] client request:
DESCRIBE rtsp://192.168.1.119:8554/Streaming/Channels/101 RTSP/1.0
Require: www.onvif.org/ver20/backchannel
Cseq: 1
Accept: application/sdp


06:14:27.260 TRC [rtsp] client response:
RTSP/1.0 400 Bad Request
Date: Mon Aug 22 09:14:27 2022
Server: rtsp_demo


06:14:27.262 TRC [rtsp] client request:
DESCRIBE rtsp://192.168.1.119:8554/Streaming/Channels/101 RTSP/1.0
Cseq: 2
Accept: application/sdp


06:14:27.278 TRC [rtsp] client response:
RTSP/1.0 400 Bad Request
Date: Mon Aug 22 09:14:27 2022
Server: rtsp_demo


06:14:27.279 ERR [streams] probe producer error="wrong response on DESCRIBE" url=rtsp://user:pass@192.168.1.119:8554/Streaming/Channels/101
@AlexxIT
Copy link
Owner

AlexxIT commented Aug 22, 2022

I will make a binary with a test fix. On which OS do you run go2rtc? You can test run on any OS, even your personal laptop

@AlexxIT AlexxIT added the bug Something isn't working label Aug 22, 2022
@AlexxIT AlexxIT self-assigned this Aug 22, 2022
@RomchikL
Copy link
Author

The latter test was on my laptop with windows 11 x64. I can test on another laptop with windows 10 x64, ubuntu 20, or docker on this ubuntu.

@AlexxIT
Copy link
Owner

AlexxIT commented Aug 22, 2022

Check this version go2rtc.zip

@RomchikL
Copy link
Author

Similar log of webrtc on Win 10 x64:

09:08:44.536 INF [streams] create new stream url=rtsp://user:pass@192.168.1.119:8554/Streaming/Channels/101
09:08:50.792 TRC [rtsp] client request:
DESCRIBE rtsp://192.168.1.119:8554/Streaming/Channels/101 RTSP/1.0
User-Agent: go2rtc
Cseq: 1
Accept: application/sdp
Require: www.onvif.org/ver20/backchannel


09:08:50.810 TRC [rtsp] client response:
RTSP/1.0 400 Bad Request
Date: Mon Aug 22 12:08:49 2022
Server: rtsp_demo


09:08:50.813 TRC [rtsp] client request:
DESCRIBE rtsp://192.168.1.119:8554/Streaming/Channels/101 RTSP/1.0
Accept: application/sdp
User-Agent: go2rtc
Cseq: 2


09:08:50.826 TRC [rtsp] client response:
RTSP/1.0 400 Bad Request
Date: Mon Aug 22 12:08:49 2022
Server: rtsp_demo


09:08:50.828 ERR [streams] probe producer error="wrong response on DESCRIBE" url=rtsp://user:pass@192.168.1.119:8554/Streaming/Channels/101
09:08:50.837 TRC [rtsp] client request:
DESCRIBE rtsp://192.168.1.119:8554/Streaming/Channels/101 RTSP/1.0
User-Agent: go2rtc
Cseq: 1
Accept: application/sdp
Require: www.onvif.org/ver20/backchannel


09:08:50.867 TRC [rtsp] client response:
RTSP/1.0 400 Bad Request
Date: Mon Aug 22 12:08:49 2022
Server: rtsp_demo


09:08:50.870 TRC [rtsp] client request:
DESCRIBE rtsp://192.168.1.119:8554/Streaming/Channels/101 RTSP/1.0
Accept: application/sdp
User-Agent: go2rtc
Cseq: 2


09:08:50.887 TRC [rtsp] client response:
RTSP/1.0 400 Bad Request
Date: Mon Aug 22 12:08:49 2022
Server: rtsp_demo


09:08:50.903 ERR [streams] probe producer error="wrong response on DESCRIBE" url=rtsp://user:pass@192.168.1.119:8554/Streaming/Channels/101
09:08:50.918 WRN [api.webrtc] add consumer error="couldn't find the matching tracks"

@AlexxIT
Copy link
Owner

AlexxIT commented Aug 22, 2022

Try this version: go2rtc.zip

@RomchikL
Copy link
Author

Log:

09:39:18.353 INF [streams] create new stream url=rtsp://user:pass@192.168.1.119:8554/Streaming/Channels/101
09:39:25.051 TRC [rtsp] client request:
DESCRIBE rtsp://192.168.1.119:8554/Streaming/Channels/101 RTSP/1.0
Accept: application/sdp
Require: www.onvif.org/ver20/backchannel
CSeq: 1


09:39:25.073 TRC [rtsp] client response:
RTSP/1.0 401 Unauthorized
Cseq: 1
Date: Mon Aug 22 12:39:23 2022
Server: rtsp_demo
Www-Authenticate: Digest realm="admin", nonce="40034ecb68047f67a31d1317fa53189d", stale="FALSE"


09:39:25.076 TRC [rtsp] client request:
DESCRIBE rtsp://192.168.1.119:8554/Streaming/Channels/101 RTSP/1.0
Accept: application/sdp
Require: www.onvif.org/ver20/backchannel
CSeq: 2
Authorization: Digest username="user", realm="admin", nonce="40034ecb68047f67a31d1317fa53189d", uri="/Streaming/Channels/101", response="49c4c19f43e91dd60fb960462a183cb5"


09:39:25.088 TRC [rtsp] client response:
RTSP/1.0 200 OK
Server: rtsp_demo
Content-Type: application/sdp
Content-Length: 502
Cseq: 2
Date: Mon Aug 22 12:39:23 2022

v=0
o=- 0 0 IN IP4 0.0.0.0
s=pps_rtsp
t=0 0
a=control:rtsp://192.168.1.119:8554/Streaming/Channels/101
a=range:npt=0-
m=video 0 RTP/AVP 96
c=IN IP4 0.0.0.0
a=rtpmap:96 H264/90000
a=fmtp:96 packetization-mode=1;sprop-parameter-sets=J00AKOdAPAET8uApQUFBfAAAAwAEAAADAKLAgAEk+AAbd1//wKA=,KO48gA==
a=control:rtsp://192.168.1.119:8554/Streaming/Channels/101/track1
m=audio 0 RTP/AVP 97
c=IN IP4 0.0.0.0
a=rtpmap:97 PCMU/8000/1
a=control:rtsp://192.168.1.119:8554/Streaming/Channels/101/track2

09:39:25.096 TRC [rtsp] client request:
SETUP rtsp://192.168.1.119:8554/Streaming/Channels/101/track1 RTSP/1.0
Transport: RTP/AVP/TCP;unicast;interleaved=0-1
CSeq: 3
Authorization: Digest username="user", realm="admin", nonce="40034ecb68047f67a31d1317fa53189d", uri="/Streaming/Channels/101/track1", response="cc7827754653d0db7f3976322aa65065"


09:39:25.119 TRC [rtsp] client response:
RTSP/1.0 200 OK
Server: rtsp_demo
Cseq: 3
Date: Mon Aug 22 12:39:23 2022
Session: 00000067
Transport: RTP/AVP/TCP;ssrc=22345682;interleaved=0-1


09:39:25.120 WRN [stream] can't get track
09:39:25.124 TRC [rtsp] client request:
SETUP rtsp://192.168.1.119:8554/Streaming/Channels/101/track2 RTSP/1.0
Authorization: Digest username="user", realm="admin", nonce="40034ecb68047f67a31d1317fa53189d", uri="/Streaming/Channels/101/track2", response="be3c77ebe644d52f29cd9b877c440f7a"
Session: 00000067
Transport: RTP/AVP/TCP;unicast;interleaved=2-3
CSeq: 4


09:39:25.147 TRC [rtsp] client response:
RTSP/1.0 200 OK
Cseq: 4
Date: Mon Aug 22 12:39:23 2022
Session: 00000067
Transport: RTP/AVP/TCP;ssrc=22345683;interleaved=2-3
Server: rtsp_demo


09:39:25.148 WRN [stream] can't get track
09:39:25.155 WRN [api.webrtc] add consumer error="couldn't find the matching tracks"

@AlexxIT
Copy link
Owner

AlexxIT commented Aug 22, 2022

Nice. It's work now. But have broken next response. I'll fix it.

@AlexxIT
Copy link
Owner

AlexxIT commented Aug 22, 2022

Try this version: go2rtc.zip

@RomchikL
Copy link
Author

Yep! Now it woks fine. Thanks.
Could you compile the container? I will try on the docker.

@RomchikL
Copy link
Author

What is the right place to create go2rtc.yaml with docker container?

@AlexxIT
Copy link
Owner

AlexxIT commented Aug 22, 2022

/config/go2rtc.yaml

@landolfi-us
Copy link

landolfi-us commented May 12, 2023

Getting this same error with both of my Eufy PTZ cameras on go2rtc v 1.5, HA 2023.5.2. Sometimes a restart of go2rtc fixes the issue.

EDIT: Chrome is better than Firefox, occurs consistently on FF.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
bug Something isn't working
Projects
None yet
Development

No branches or pull requests

3 participants