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
7.07k stars 505 forks source link

After Firmware Upgrade on Tapo C100 Camera: "streams: wrong response on DESCRIBE" #1469

Closed darethehair closed 5 days ago

darethehair commented 5 days ago

Turned on tracing for a few parameters to help. Also tried turning backchannel off (?) but no apparent difference. Other similar cameras are (still) working OK, so I am puzzled.

darren@dell3010:~/Downloads$ /data/darebin/go2rtc_linux_amd64 -config /data/darebin/go2rtc.yaml

10:17:27.359 INF go2rtc platform=linux/amd64 revision=dbe9e4a version=1.9.7
10:17:27.359 DBG build vcs.time=2024-11-11T17:20:53Z version=go1.23.2
10:17:27.359 INF config path=/data/darebin/go2rtc.yaml
10:17:27.359 TRC [api] register path path=/
10:17:27.359 TRC [api] register path path=/api
10:17:27.359 TRC [api] register path path=/api/config
10:17:27.359 TRC [api] register path path=/api/exit
10:17:27.359 TRC [api] register path path=/api/restart
10:17:27.360 TRC [api] register path path=/api/log
10:17:27.360 TRC [api] register path path=/api/ws
10:17:27.360 INF [api] listen addr=:1984
10:17:27.360 TRC [api] register path path=/api/streams
10:17:27.360 TRC [api] register path path=/api/streams.dot
10:17:27.360 INF [rtsp] listen addr=:8554
10:17:27.361 INF [webrtc] listen addr=:8555/tcp
10:17:27.361 TRC [api] register path path=/api/webrtc
10:17:27.361 TRC [api] register path path=/api/frame.mp4
10:17:27.361 TRC [api] register path path=/api/stream.mp4
10:17:27.361 TRC [api] register path path=/api/stream.m3u8
10:17:27.361 TRC [api] register path path=/api/hls/playlist.m3u8
10:17:27.361 TRC [api] register path path=/api/hls/segment.ts
10:17:27.361 TRC [api] register path path=/api/hls/init.mp4
10:17:27.361 TRC [api] register path path=/api/hls/segment.m4s
10:17:27.361 TRC [api] register path path=/api/frame.jpeg
10:17:27.361 TRC [api] register path path=/api/stream.mjpeg
10:17:27.361 TRC [api] register path path=/api/stream.ascii
10:17:27.361 TRC [api] register path path=/api/stream.y4m
10:17:27.361 TRC [api] register path path=/static
10:17:27.361 TRC [api] register path path=/streams
10:17:27.361 TRC [api] register path path=/stream/
10:17:27.361 TRC [hass] can't import config: open .storage/core.config_entries: no such file or directory
10:17:27.361 TRC [api] register path path=/api/hass
10:17:27.361 TRC [api] register path path=/onvif/
10:17:27.361 TRC [api] register path path=/api/onvif
10:17:27.361 TRC [api] register path path=/api/webtorrent
10:17:27.362 TRC [api] register path path=/api/stream.flv
10:17:27.362 TRC [api] register path path=/api/ffmpeg
10:17:27.362 TRC [api] register path path=/api/ffmpeg/devices
10:17:27.362 TRC [api] register path path=/api/ffmpeg/hardware
10:17:27.362 TRC [api] register path path=/api/stream
10:17:27.362 TRC [api] register path path=/api/dvrip
10:17:27.362 TRC [api] register path path=/api/stream.ts
10:17:27.362 TRC [api] register path path=/api/stream.aac
10:17:27.362 TRC [api] register path path=/api/roborock
10:17:27.362 TRC [api] register path path=/api/homekit
10:17:27.362 TRC [api] register path path=/api/nest
10:17:27.362 TRC [api] register path path=/api/gopro
10:17:27.362 TRC [api] register path path=/api/stack
10:17:32.247 TRC [api] GET /api/streams 127.0.0.1:59812
10:17:32.528 TRC [api] GET / 127.0.0.1:59812
10:17:32.648 TRC [api] GET /main.js 127.0.0.1:59812
10:17:32.682 TRC [api] GET /api/streams 127.0.0.1:59812
10:17:32.684 TRC [api] GET /api 127.0.0.1:59812
10:17:33.665 TRC [api] GET /api/streams 127.0.0.1:59812
10:17:34.734 TRC [api] GET /api/streams 127.0.0.1:59812
10:17:35.411 TRC [api] GET /stream.html?src=frontyard 127.0.0.1:59812
10:17:35.528 TRC [api] GET /video-stream.js 127.0.0.1:59812
10:17:35.538 TRC [api] GET /video-rtc.js 127.0.0.1:59812
10:17:35.603 TRC [api] GET /api/ws?src=frontyard 127.0.0.1:59822
10:17:35.639 TRC [api] ws msg type=mse
10:17:35.639 TRC [mp4] new WS/MSE consumer codecs=avc1.640029,avc1.64002A,avc1.640033,mp4a.40.2,mp4a.40.5,flac,opus
10:17:35.645 TRC [rtsp] client request:
DESCRIBE rtsp://192.168.6.247:554/stream1 RTSP/1.0
Accept: application/sdp
Require: www.onvif.org/ver20/backchannel
User-Agent: go2rtc/1.9.7
CSeq: 1

10:17:35.656 TRC [rtsp] client response:
RTSP/1.0 400 Server is locked
Date: Wed, Nov 20 2024 16:17:35 GMT
Allow: OPTIONS, DESCRIBE, SETUP, TEARDOWN, PLAY, PAUSE, GET_PARAMETER, SET_PARAMETER

10:17:35.656 TRC [rtsp] describe (backchannel=true) err: wrong response on DESCRIBE
10:17:35.665 TRC [rtsp] client request:
DESCRIBE rtsp://192.168.6.247:554/stream1 RTSP/1.0
Accept: application/sdp
User-Agent: go2rtc/1.9.7
CSeq: 1

10:17:35.667 TRC [api] ws msg type=webrtc/offer
10:17:35.668 DBG [webrtc] new consumer src=frontyard
10:17:35.670 TRC [webrtc] offer:
v=0
o=mozilla...THIS_IS_SDPARTA-99.0 7955606760693506700 0 IN IP4 0.0.0.0
s=-
t=0 0
a=fingerprint:sha-256 57:76:A7:9F:A4:00:87:8E:D3:7A:83:95:69:ED:17:B3:B2:7F:0E:AD:EF:25:EF:FD:D3:3E:91:94:C6:F9:59:33
a=group:BUNDLE 0 1
a=ice-options:trickle
a=msid-semantic:WMS *
m=video 9 UDP/TLS/RTP/SAVPF 120 124 121 125 126 127 97 98 123 122 119
c=IN IP4 0.0.0.0
a=recvonly
a=extmap:3 urn:ietf:params:rtp-hdrext:sdes:mid
a=extmap:4 http://www.webrtc.org/experiments/rtp-hdrext/abs-send-time
a=extmap:5 urn:ietf:params:rtp-hdrext:toffset
a=extmap:6/recvonly http://www.webrtc.org/experiments/rtp-hdrext/playout-delay
a=extmap:7 http://www.ietf.org/id/draft-holmer-rmcat-transport-wide-cc-extensions-01
a=fmtp:126 profile-level-id=42e01f;level-asymmetry-allowed=1;packetization-mode=1
a=fmtp:97 profile-level-id=42e01f;level-asymmetry-allowed=1
a=fmtp:120 max-fs=12288;max-fr=60
a=fmtp:124 apt=120
a=fmtp:121 max-fs=12288;max-fr=60
a=fmtp:125 apt=121
a=fmtp:127 apt=126
a=fmtp:98 apt=97
a=fmtp:119 apt=122
a=ice-pwd:7ef3a9346c53cadeee58c520279f8f9c
a=ice-ufrag:7ad94c71
a=mid:0
a=rtcp-fb:120 nack
a=rtcp-fb:120 nack pli
a=rtcp-fb:120 ccm fir
a=rtcp-fb:120 goog-remb
a=rtcp-fb:120 transport-cc
a=rtcp-fb:121 nack
a=rtcp-fb:121 nack pli
a=rtcp-fb:121 ccm fir
a=rtcp-fb:121 goog-remb
a=rtcp-fb:121 transport-cc
a=rtcp-fb:126 nack
a=rtcp-fb:126 nack pli
a=rtcp-fb:126 ccm fir
a=rtcp-fb:126 goog-remb
a=rtcp-fb:126 transport-cc
a=rtcp-fb:97 nack
a=rtcp-fb:97 nack pli
a=rtcp-fb:97 ccm fir
a=rtcp-fb:97 goog-remb
a=rtcp-fb:97 transport-cc
a=rtcp-fb:123 nack
a=rtcp-fb:123 nack pli
a=rtcp-fb:123 ccm fir
a=rtcp-fb:123 goog-remb
a=rtcp-fb:123 transport-cc
a=rtcp-fb:122 nack
a=rtcp-fb:122 nack pli
a=rtcp-fb:122 ccm fir
a=rtcp-fb:122 goog-remb
a=rtcp-fb:122 transport-cc
a=rtcp-mux
a=rtcp-rsize
a=rtpmap:120 VP8/90000
a=rtpmap:124 rtx/90000
a=rtpmap:121 VP9/90000
a=rtpmap:125 rtx/90000
a=rtpmap:126 H264/90000
a=rtpmap:127 rtx/90000
a=rtpmap:97 H264/90000
a=rtpmap:98 rtx/90000
a=rtpmap:123 ulpfec/90000
a=rtpmap:122 red/90000
a=rtpmap:119 rtx/90000
a=setup:actpass
a=ssrc:3948194379 cname:{85960071-73ac-46ca-9b92-e436e2b0caa5}
m=audio 0 UDP/TLS/RTP/SAVPF 109 9 0 8 101
c=IN IP4 0.0.0.0
a=bundle-only
a=recvonly
a=extmap:1 urn:ietf:params:rtp-hdrext:ssrc-audio-level
a=extmap:2/recvonly urn:ietf:params:rtp-hdrext:csrc-audio-level
a=extmap:3 urn:ietf:params:rtp-hdrext:sdes:mid
a=fmtp:109 maxplaybackrate=48000;stereo=1;useinbandfec=1
a=fmtp:101 0-15
a=ice-pwd:7ef3a9346c53cadeee58c520279f8f9c
a=ice-ufrag:7ad94c71
a=mid:1
a=rtcp-mux
a=rtpmap:109 opus/48000/2
a=rtpmap:9 G722/8000/1
a=rtpmap:0 PCMU/8000
a=rtpmap:8 PCMA/8000
a=rtpmap:101 telephone-event/8000/1
a=setup:actpass
a=ssrc:3381111384 cname:{85960071-73ac-46ca-9b92-e436e2b0caa5}

10:17:35.672 TRC [api] ws msg type=webrtc/candidate
10:17:35.672 TRC [webrtc] remote candidate="candidate:0 1 UDP 2122187007 192.168.4.76 39133 typ host"
10:17:35.673 TRC [api] ws msg type=webrtc/candidate
10:17:35.673 TRC [webrtc] remote candidate="candidate:2 1 UDP 2122252543 fd3c:8492:35f2:1:af10:5126:c8db:f4d6 56961 typ host"
10:17:35.673 TRC [api] ws msg type=webrtc/candidate
10:17:35.673 TRC [api] ws msg type=webrtc/candidate
10:17:35.673 TRC [webrtc] remote candidate="candidate:4 1 TCP 2105458943 192.168.4.76 9 typ host tcptype active"
10:17:35.673 TRC [webrtc] remote candidate="candidate:5 1 TCP 2105524479 fd3c:8492:35f2:1:af10:5126:c8db:f4d6 9 typ host tcptype active"
10:17:35.673 TRC [api] ws msg type=webrtc/candidate
10:17:35.674 TRC [api] ws msg type=webrtc/candidate
10:17:35.674 TRC [api] ws msg type=webrtc/candidate
10:17:35.674 TRC [api] ws msg type=webrtc/candidate
10:17:35.674 TRC [webrtc] remote candidate="candidate:0 2 UDP 2122187006 192.168.4.76 56669 typ host"
10:17:35.674 TRC [webrtc] remote candidate="candidate:2 2 UDP 2122252542 fd3c:8492:35f2:1:af10:5126:c8db:f4d6 46161 typ host"
10:17:35.674 TRC [webrtc] remote candidate="candidate:4 2 TCP 2105458942 192.168.4.76 9 typ host tcptype active"
10:17:35.674 TRC [webrtc] remote candidate="candidate:5 2 TCP 2105524478 fd3c:8492:35f2:1:af10:5126:c8db:f4d6 9 typ host tcptype active"
10:17:35.679 TRC [rtsp] client response:
RTSP/1.0 400 Server is locked
Date: Wed, Nov 20 2024 16:17:35 GMT
Allow: OPTIONS, DESCRIBE, SETUP, TEARDOWN, PLAY, PAUSE, GET_PARAMETER, SET_PARAMETER

10:17:35.679 DBG [mp4] add consumer error="streams: wrong response on DESCRIBE"
10:17:35.685 TRC [rtsp] client request:
DESCRIBE rtsp://192.168.6.247:554/stream1 RTSP/1.0
Accept: application/sdp
Require: www.onvif.org/ver20/backchannel
User-Agent: go2rtc/1.9.7
CSeq: 1

10:17:35.700 TRC [rtsp] client response:
RTSP/1.0 400 Server is locked
Date: Wed, Nov 20 2024 16:17:35 GMT
Allow: OPTIONS, DESCRIBE, SETUP, TEARDOWN, PLAY, PAUSE, GET_PARAMETER, SET_PARAMETER

10:17:35.700 TRC [rtsp] describe (backchannel=true) err: wrong response on DESCRIBE
10:17:35.711 TRC [rtsp] client request:
DESCRIBE rtsp://192.168.6.247:554/stream1 RTSP/1.0
Accept: application/sdp
User-Agent: go2rtc/1.9.7
CSeq: 1

10:17:35.712 TRC [api] ws msg type=mjpeg
10:17:35.720 TRC [rtsp] client response:
RTSP/1.0 400 Server is locked
Date: Wed, Nov 20 2024 16:17:35 GMT
Allow: OPTIONS, DESCRIBE, SETUP, TEARDOWN, PLAY, PAUSE, GET_PARAMETER, SET_PARAMETER

10:17:35.720 DBG [webrtc] add consumer error="streams: wrong response on DESCRIBE"
10:17:35.734 TRC [rtsp] client request:
DESCRIBE rtsp://192.168.6.247:554/stream1 RTSP/1.0
Accept: application/sdp
Require: www.onvif.org/ver20/backchannel
User-Agent: go2rtc/1.9.7
CSeq: 1

10:17:35.743 TRC [rtsp] client response:
RTSP/1.0 400 Server is locked
Date: Wed, Nov 20 2024 16:17:35 GMT
Allow: OPTIONS, DESCRIBE, SETUP, TEARDOWN, PLAY, PAUSE, GET_PARAMETER, SET_PARAMETER

10:17:35.743 TRC [rtsp] describe (backchannel=true) err: wrong response on DESCRIBE
10:17:35.756 TRC [rtsp] client request:
DESCRIBE rtsp://192.168.6.247:554/stream1 RTSP/1.0
User-Agent: go2rtc/1.9.7
CSeq: 1
Accept: application/sdp

10:17:35.775 TRC [rtsp] client response:
RTSP/1.0 400 Server is locked
Date: Wed, Nov 20 2024 16:17:35 GMT
Allow: OPTIONS, DESCRIBE, SETUP, TEARDOWN, PLAY, PAUSE, GET_PARAMETER, SET_PARAMETER

10:17:35.775 DBG [mjpeg] add consumer error="streams: wrong response on DESCRIBE"
AlexxIT commented 5 days ago

Your camera is overloaded. This is a typical situation for Tapo cameras: