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 Ondemand Proxy - Regression from 1.0.0 to 1.0.1+ #2302

Closed
clee604 opened this issue Sep 5, 2023 · 10 comments · Fixed by bluenviron/gortsplib#412
Closed

RTSP Ondemand Proxy - Regression from 1.0.0 to 1.0.1+ #2302

clee604 opened this issue Sep 5, 2023 · 10 comments · Fixed by bluenviron/gortsplib#412
Labels
bug Something isn't working rtsp

Comments

@clee604
Copy link

clee604 commented Sep 5, 2023

Which version are you using?

v1.0.3 (issue starts with v1.0.1)

Which operating system are you using?

  • [x ] Linux amd64 standard

Describe the issue

I have a fairly simple setup with some wyze cameras flashed with rtsp (wz_hacks) that mediamtx is a rtsp proxy server ondemand to clients (android tinycam). Wyze RTSP feeds are secured with basic user/pass authentication. No authentication on rtsp proxy output side.

Within a minute of starting the stream, the rtsp server seems to drop the stream and restart it; leading to a dropped video. Rolling back to v1.0.0 fixes the issue.

Describe how to replicate the issue

  1. start the server (v1.0.1+) with rtsp ondemand proxy pointing to wyze camera rtsp feed
  2. publish with proxy path
  3. read proxy path with android rtsp (tinycam)
  4. watch stream for little while, stream will drop out

Did you attach the server logs?

yes

Here is a IP cleaned log of v.1.0.1 from the time the stream started to when I closed it at the end.

2023/09/05 19:34:43 DEB [RTSP] [conn xxx.94:46618] [c->s] GET_PARAMETER rtsp://xxx.12:8554/xxx-crib/ RTSP/1.0
CSeq: 5
Session: e2e6f29d30ff4069aeb6722684291891
User-Agent: Live555


2023/09/05 19:34:43 DEB [RTSP] [conn xxx.94:46618] [s->c] RTSP/1.0 200 OK
CSeq: 5
Content-Type: text/parameters
Server: gortsplib
Session: e2e6f29d30ff4069aeb6722684291891


2023/09/05 19:35:01 DEB [path xxx-crib] [RTSP source] c->s OPTIONS rtsp://xxx.104:8554/1080p RTSP/1.0
Authorization: Basic removed
CSeq: 7
Session: 00133631
User-Agent: gortsplib


2023/09/05 19:35:11 DEB [path xxx-crib] [RTSP source] c->s TEARDOWN rtsp://xxx.104:8554/1080p RTSP/1.0
Authorization: Basic removed
CSeq: 8
Session: 00133631
User-Agent: gortsplib


2023/09/05 19:35:11 INF [path xxx-crib] [RTSP source] stopped
2023/09/05 19:35:11 INF [RTSP] [conn xxx.94:46618] closed (terminated)
2023/09/05 19:35:11 INF [RTSP] [session 5e4e4190] destroyed (terminated)
2023/09/05 19:35:11 INF [RTSP] [conn xxx.94:46640] opened
2023/09/05 19:35:11 DEB [RTSP] [conn xxx.94:46640] [c->s] OPTIONS rtsp://xxx.12:8554/xxx-crib RTSP/1.0
CSeq: 1
User-Agent: Live555


2023/09/05 19:35:11 DEB [RTSP] [conn xxx.94:46640] [s->c] RTSP/1.0 200 OK
CSeq: 1
Public: DESCRIBE, ANNOUNCE, SETUP, PLAY, RECORD, PAUSE, GET_PARAMETER, TEARDOWN
Server: gortsplib


2023/09/05 19:35:11 DEB [RTSP] [conn xxx.94:46640] [c->s] DESCRIBE rtsp://xxx.12:8554/xxx-crib RTSP/1.0
Accept: application/sdp
CSeq: 2
User-Agent: Live555


2023/09/05 19:35:11 INF [path xxx-crib] [RTSP source] started
2023/09/05 19:35:11 DEB [path xxx-crib] [RTSP source] connecting
2023/09/05 19:35:11 DEB [path xxx-crib] [RTSP source] c->s OPTIONS rtsp://xxx.104:8554/1080p RTSP/1.0
CSeq: 1
User-Agent: gortsplib


2023/09/05 19:35:11 DEB [path xxx-crib] [RTSP source] s->c RTSP/1.0 401 Unauthorized
CSeq: 1
WWW-Authenticate: Basic realm="go2rtc"


2023/09/05 19:35:11 DEB [path xxx-crib] [RTSP source] c->s OPTIONS rtsp://xxx.104:8554/1080p RTSP/1.0
Authorization: Basic removed
CSeq: 2
User-Agent: gortsplib


2023/09/05 19:35:11 DEB [path xxx-crib] [RTSP source] s->c RTSP/1.0 200 OK
CSeq: 2
Public: OPTIONS, SETUP, TEARDOWN, DESCRIBE, PLAY, PAUSE, ANNOUNCE, RECORD


2023/09/05 19:35:11 DEB [path xxx-crib] [RTSP source] c->s DESCRIBE rtsp://xxx.104:8554/1080p RTSP/1.0
Accept: application/sdp
Authorization: Basic removed
CSeq: 3
User-Agent: gortsplib


2023/09/05 19:35:11 DEB [path xxx-crib] [RTSP source] s->c RTSP/1.0 200 OK
CSeq: 3
Content-Length: 236
Content-Type: application/sdp

v=0
o=- 1 1 IN IP4 0.0.0.0
s=go2rtc/1.6.0
c=IN IP4 0.0.0.0
t=0 0
m=video 0 RTP/AVP 96
a=rtpmap:96 H264/90000
a=fmtp:96 packetization-mode=1
a=control:trackID=0
m=audio 0 RTP/AVP 97
a=rtpmap:97 PCML/16000
a=control:trackID=1

2023/09/05 19:35:11 DEB [path xxx-crib] [RTSP source] c->s SETUP rtsp://xxx.104:8554/1080p/trackID=0 RTSP/1.0
Authorization: Basic removed
CSeq: 4
Transport: RTP/AVP/TCP;unicast;interleaved=0-1;mode=play
User-Agent: gortsplib


2023/09/05 19:35:12 DEB [path xxx-crib] [RTSP source] s->c RTSP/1.0 200 OK
CSeq: 4
Session: 45701311;timeout=60
Transport: RTP/AVP/TCP;unicast;interleaved=0-1


2023/09/05 19:35:12 DEB [path xxx-crib] [RTSP source] c->s SETUP rtsp://xxx.104:8554/1080p/trackID=1 RTSP/1.0
Authorization: Basic removed
CSeq: 5
Session: 45701311
Transport: RTP/AVP/TCP;unicast;interleaved=2-3;mode=play
User-Agent: gortsplib


2023/09/05 19:35:12 DEB [path xxx-crib] [RTSP source] s->c RTSP/1.0 200 OK
CSeq: 5
Session: 63948645;timeout=60
Transport: RTP/AVP/TCP;unicast;interleaved=2-3


2023/09/05 19:35:12 DEB [RTSP] [conn xxx.94:46640] [s->c] RTSP/1.0 200 OK
CSeq: 2
Content-Base: rtsp://xxx.12:8554/xxx-crib/
Content-Length: 306
Content-Type: application/sdp
Server: gortsplib

v=0
o=- 0 0 IN IP4 127.0.0.1
s=go2rtc/1.6.0
c=IN IP4 0.0.0.0
t=0 0
m=video 0 RTP/AVP 96
a=control:rtsp://xxx.12:8554/xxx-crib/trackID=0
a=rtpmap:96 H264/90000
a=fmtp:96 packetization-mode=1
m=audio 0 RTP/AVP 97
a=control:rtsp://xxx.12:8554/xxx-crib/trackID=1
a=rtpmap:97 PCML/16000

2023/09/05 19:35:12 INF [path xxx-crib] [RTSP source] ready: 2 tracks (H264, Generic)
2023/09/05 19:35:12 DEB [path xxx-crib] [RTSP source] c->s PLAY rtsp://xxx.104:8554/1080p RTSP/1.0
Authorization: Basic removed
CSeq: 6
Range: npt=0-
Session: 63948645
User-Agent: gortsplib


2023/09/05 19:35:12 DEB [path xxx-crib] [RTSP source] s->c RTSP/1.0 200 OK
CSeq: 6
Session: 63948645


2023/09/05 19:35:12 DEB [RTSP] [conn xxx.94:46640] [c->s] SETUP rtsp://xxx.12:8554/xxx-crib/trackID=0 RTSP/1.0
CSeq: 3
Transport: RTP/AVP/TCP;unicast;interleaved=0-1
User-Agent: Live555


2023/09/05 19:35:12 INF [RTSP] [session d3938ec3] created by xxx.94:46640
2023/09/05 19:35:12 DEB [RTSP] [conn xxx.94:46640] [s->c] RTSP/1.0 200 OK
CSeq: 3
Server: gortsplib
Session: 9e5f6c4dfcc64d6485e83d144eded89e
Transport: RTP/AVP/TCP;unicast;interleaved=0-1;ssrc=99BEB6C2


2023/09/05 19:35:12 DEB [RTSP] [conn xxx.94:46640] [c->s] PLAY rtsp://xxx.12:8554/xxx-crib/ RTSP/1.0
CSeq: 4
Range: npt=0.000-
Session: 9e5f6c4dfcc64d6485e83d144eded89e
User-Agent: Live555


2023/09/05 19:35:12 INF [RTSP] [session d3938ec3] is reading from path 'xxx-crib', with TCP, 1 track (H264)
2023/09/05 19:35:12 DEB [RTSP] [conn xxx.94:46640] [s->c] RTSP/1.0 200 OK
CSeq: 4
RTP-Info: url=rtsp://xxx.12:8554/xxx-crib/trackID=0;seq=2140;rtptime=580324895
Server: gortsplib
Session: 9e5f6c4dfcc64d6485e83d144eded89e


2023/09/05 19:35:13 WAR [path xxx-crib] [RTSP source] 24 RTP packets lost
2023/09/05 19:35:19 DEB [RTSP] [conn xxx.94:46640] [c->s] TEARDOWN rtsp://xxx.12:8554/xxx-crib/ RTSP/1.0
CSeq: 5
Session: 9e5f6c4dfcc64d6485e83d144eded89e
User-Agent: Live555


2023/09/05 19:35:19 INF [RTSP] [session d3938ec3] destroyed (torn down by xxx.94:46640)
2023/09/05 19:35:19 DEB [RTSP] [conn xxx.94:46640] [s->c] RTSP/1.0 200 OK
CSeq: 5
Server: gortsplib


2023/09/05 19:35:19 INF [RTSP] [conn xxx.94:46640] closed (EOF)
2023/09/05 19:35:29 INF [path xxx-crib] [RTSP source] stopped
2023/09/05 19:35:29 DEB [path xxx-crib] [RTSP source] c->s TEARDOWN rtsp://xxx.104:8554/1080p RTSP/1.0
Authorization: Basic removed
CSeq: 7
Session: 63948645
User-Agent: gortsplib

in v1.0.1 I see a similar TEARDOWN event before the OPTIONS

2023/09/05 23:16:39 DEB [RTSP] [conn xxx:46836] [s->c] RTSP/1.0 200 OK
CSeq: 5
Content-Type: text/parameters
Server: gortsplib
Session: 4c9e887f382447b18376730ce904ce5e


2023/09/05 23:16:57 DEB [path xxx-crib] [RTSP source] c->s OPTIONS rtsp://xxx:8554/1080p RTSP/1.0
Authorization: Basic removed
CSeq: 7
Session: 59730328
User-Agent: gortsplib


2023/09/05 23:17:07 DEB [path xxx-crib] [RTSP source] c->s TEARDOWN rtsp://xxx:8554/1080p RTSP/1.0
Authorization: Basic removed
CSeq: 8
Session: 59730328
User-Agent: gortsplib


2023/09/05 23:17:07 INF [path xxx-crib] [RTSP source] stopped
2023/09/05 23:17:07 INF [RTSP] [conn xxx:46836] closed (terminated)
2023/09/05 23:17:07 INF [RTSP] [session 1b346072] destroyed (terminated)
2023/09/05 23:17:07 INF [RTSP] [conn xxx:46846] opened
2023/09/05 23:17:07 DEB [RTSP] [conn xxx:46846] [c->s] OPTIONS rtsp://xxx/xxx-crib RTSP/1.0
CSeq: 1
User-Agent: Live555

In v1.0.0 I don't see this TEARDOWN event, not sure if this is the result of another error but there's nothing else in the log.

Did you attach a network dump?

no

@aler9 aler9 added the question Further information is requested label Sep 7, 2023
@aler9
Copy link
Member

aler9 commented Sep 7, 2023

Hello, the log you posted are not enough to identify the issue since they start from a point in time when the stream was already running. Please attach a log that contains lines from the moment the server is started to the moment the issue occurs.

@clee604
Copy link
Author

clee604 commented Sep 7, 2023

I masked the IP subnet and the authentication value but not sure if that is necessary. The stream has issues at
2023/09/05 19:35:11

2023/09/05 19:34:03 INF MediaMTX v1.0.3
2023/09/05 19:34:03 DEB [path xxx-crib] created
2023/09/05 19:34:03 DEB path manager created
2023/09/05 19:34:03 INF [RTSP] listener opened on :8554 (TCP)
2023/09/05 19:34:03 INF [RTMP] listener opened on :1935
2023/09/05 19:34:03 INF [HLS] listener opened on :8888
2023/09/05 19:34:03 INF [WebRTC] listener opened on :8889 (HTTP)
2023/09/05 19:34:03 INF [SRT] listener opened on :8890 (UDP)
2023/09/05 19:34:12 INF [RTSP] [conn xxx.94:46618] opened
2023/09/05 19:34:12 DEB [RTSP] [conn xxx.94:46618] [c->s] OPTIONS rtsp://xxx.12:8554/xxx-crib RTSP/1.0
CSeq: 1
User-Agent: Live555


2023/09/05 19:34:12 DEB [RTSP] [conn xxx.94:46618] [s->c] RTSP/1.0 200 OK
CSeq: 1
Public: DESCRIBE, ANNOUNCE, SETUP, PLAY, RECORD, PAUSE, GET_PARAMETER, TEARDOWN
Server: gortsplib


2023/09/05 19:34:12 DEB [RTSP] [conn xxx.94:46618] [c->s] DESCRIBE rtsp://xxx.12:8554/xxx-crib RTSP/1.0
Accept: application/sdp
CSeq: 2
User-Agent: Live555


2023/09/05 19:34:12 INF [path xxx-crib] [RTSP source] started
2023/09/05 19:34:12 DEB [path xxx-crib] [RTSP source] connecting
2023/09/05 19:34:12 DEB [path xxx-crib] [RTSP source] c->s OPTIONS rtsp://xxx.104:8554/1080p RTSP/1.0
CSeq: 1
User-Agent: gortsplib


2023/09/05 19:34:12 DEB [path xxx-crib] [RTSP source] s->c RTSP/1.0 401 Unauthorized
CSeq: 1
WWW-Authenticate: Basic realm="go2rtc"


2023/09/05 19:34:12 DEB [path xxx-crib] [RTSP source] c->s OPTIONS rtsp://xxx.104:8554/1080p RTSP/1.0
Authorization: Basic xxx
CSeq: 2
User-Agent: gortsplib


2023/09/05 19:34:12 DEB [path xxx-crib] [RTSP source] s->c RTSP/1.0 200 OK
CSeq: 2
Public: OPTIONS, SETUP, TEARDOWN, DESCRIBE, PLAY, PAUSE, ANNOUNCE, RECORD


2023/09/05 19:34:12 DEB [path xxx-crib] [RTSP source] c->s DESCRIBE rtsp://xxx.104:8554/1080p RTSP/1.0
Accept: application/sdp
Authorization: Basic xxx
CSeq: 3
User-Agent: gortsplib


2023/09/05 19:34:13 DEB [path xxx-crib] [RTSP source] s->c RTSP/1.0 200 OK
CSeq: 3
Content-Length: 236
Content-Type: application/sdp

v=0
o=- 1 1 IN IP4 0.0.0.0
s=go2rtc/1.6.0
c=IN IP4 0.0.0.0
t=0 0
m=video 0 RTP/AVP 96
a=rtpmap:96 H264/90000
a=fmtp:96 packetization-mode=1
a=control:trackID=0
m=audio 0 RTP/AVP 97
a=rtpmap:97 PCML/16000
a=control:trackID=1

2023/09/05 19:34:13 DEB [path xxx-crib] [RTSP source] c->s SETUP rtsp://xxx.104:8554/1080p/trackID=0 RTSP/1.0
Authorization: Basic xxx
CSeq: 4
Transport: RTP/AVP/TCP;unicast;interleaved=0-1;mode=play
User-Agent: gortsplib


2023/09/05 19:34:13 DEB [path xxx-crib] [RTSP source] s->c RTSP/1.0 200 OK
CSeq: 4
Session: 35042212;timeout=60
Transport: RTP/AVP/TCP;unicast;interleaved=0-1


2023/09/05 19:34:13 DEB [path xxx-crib] [RTSP source] c->s SETUP rtsp://xxx.104:8554/1080p/trackID=1 RTSP/1.0
Authorization: Basic xxx
CSeq: 5
Session: 35042212
Transport: RTP/AVP/TCP;unicast;interleaved=2-3;mode=play
User-Agent: gortsplib


2023/09/05 19:34:13 DEB [path xxx-crib] [RTSP source] s->c RTSP/1.0 200 OK
CSeq: 5
Session: 00133631;timeout=60
Transport: RTP/AVP/TCP;unicast;interleaved=2-3


2023/09/05 19:34:13 INF [path xxx-crib] [RTSP source] ready: 2 tracks (H264, Generic)
2023/09/05 19:34:13 DEB [RTSP] [conn xxx.94:46618] [s->c] RTSP/1.0 200 OK
CSeq: 2
Content-Base: rtsp://xxx.12:8554/xxx-crib/
Content-Length: 306
Content-Type: application/sdp
Server: gortsplib

v=0
o=- 0 0 IN IP4 127.0.0.1
s=go2rtc/1.6.0
c=IN IP4 0.0.0.0
t=0 0
m=video 0 RTP/AVP 96
a=control:rtsp://xxx.12:8554/xxx-crib/trackID=0
a=rtpmap:96 H264/90000
a=fmtp:96 packetization-mode=1
m=audio 0 RTP/AVP 97
a=control:rtsp://xxx.12:8554/xxx-crib/trackID=1
a=rtpmap:97 PCML/16000

2023/09/05 19:34:13 DEB [path xxx-crib] [RTSP source] c->s PLAY rtsp://xxx.104:8554/1080p RTSP/1.0
Authorization: Basic xxx
CSeq: 6
Range: npt=0-
Session: 00133631
User-Agent: gortsplib


2023/09/05 19:34:13 DEB [path xxx-crib] [RTSP source] s->c RTSP/1.0 200 OK
CSeq: 6
Session: 00133631


2023/09/05 19:34:13 DEB [RTSP] [conn xxx.94:46618] [c->s] SETUP rtsp://xxx.12:8554/xxx-crib/trackID=0 RTSP/1.0
CSeq: 3
Transport: RTP/AVP/TCP;unicast;interleaved=0-1
User-Agent: Live555


2023/09/05 19:34:13 INF [RTSP] [session 5e4e4190] created by xxx.94:46618
2023/09/05 19:34:13 DEB [RTSP] [conn xxx.94:46618] [s->c] RTSP/1.0 200 OK
CSeq: 3
Server: gortsplib
Session: e2e6f29d30ff4069aeb6722684291891
Transport: RTP/AVP/TCP;unicast;interleaved=0-1


2023/09/05 19:34:13 DEB [RTSP] [conn xxx.94:46618] [c->s] PLAY rtsp://xxx.12:8554/xxx-crib/ RTSP/1.0
CSeq: 4
Range: npt=0.000-
Session: e2e6f29d30ff4069aeb6722684291891
User-Agent: Live555


2023/09/05 19:34:13 INF [RTSP] [session 5e4e4190] is reading from path 'xxx-crib', with TCP, 1 track (H264)
2023/09/05 19:34:13 DEB [RTSP] [conn xxx.94:46618] [s->c] RTSP/1.0 200 OK
CSeq: 4
Server: gortsplib
Session: e2e6f29d30ff4069aeb6722684291891


2023/09/05 19:34:43 DEB [RTSP] [conn xxx.94:46618] [c->s] GET_PARAMETER rtsp://xxx.12:8554/xxx-crib/ RTSP/1.0
CSeq: 5
Session: e2e6f29d30ff4069aeb6722684291891
User-Agent: Live555


2023/09/05 19:34:43 DEB [RTSP] [conn xxx.94:46618] [s->c] RTSP/1.0 200 OK
CSeq: 5
Content-Type: text/parameters
Server: gortsplib
Session: e2e6f29d30ff4069aeb6722684291891


2023/09/05 19:35:01 DEB [path xxx-crib] [RTSP source] c->s OPTIONS rtsp://xxx.104:8554/1080p RTSP/1.0
Authorization: Basic xxx
CSeq: 7
Session: 00133631
User-Agent: gortsplib


2023/09/05 19:35:11 DEB [path xxx-crib] [RTSP source] c->s TEARDOWN rtsp://xxx.104:8554/1080p RTSP/1.0
Authorization: Basic xxx
CSeq: 8
Session: 00133631
User-Agent: gortsplib


2023/09/05 19:35:11 INF [path xxx-crib] [RTSP source] stopped
2023/09/05 19:35:11 INF [RTSP] [conn xxx.94:46618] closed (terminated)
2023/09/05 19:35:11 INF [RTSP] [session 5e4e4190] destroyed (terminated)
2023/09/05 19:35:11 INF [RTSP] [conn xxx.94:46640] opened
2023/09/05 19:35:11 DEB [RTSP] [conn xxx.94:46640] [c->s] OPTIONS rtsp://xxx.12:8554/xxx-crib RTSP/1.0
CSeq: 1
User-Agent: Live555


2023/09/05 19:35:11 DEB [RTSP] [conn xxx.94:46640] [s->c] RTSP/1.0 200 OK
CSeq: 1
Public: DESCRIBE, ANNOUNCE, SETUP, PLAY, RECORD, PAUSE, GET_PARAMETER, TEARDOWN
Server: gortsplib


2023/09/05 19:35:11 DEB [RTSP] [conn xxx.94:46640] [c->s] DESCRIBE rtsp://xxx.12:8554/xxx-crib RTSP/1.0
Accept: application/sdp
CSeq: 2
User-Agent: Live555


2023/09/05 19:35:11 INF [path xxx-crib] [RTSP source] started
2023/09/05 19:35:11 DEB [path xxx-crib] [RTSP source] connecting
2023/09/05 19:35:11 DEB [path xxx-crib] [RTSP source] c->s OPTIONS rtsp://xxx.104:8554/1080p RTSP/1.0
CSeq: 1
User-Agent: gortsplib


2023/09/05 19:35:11 DEB [path xxx-crib] [RTSP source] s->c RTSP/1.0 401 Unauthorized
CSeq: 1
WWW-Authenticate: Basic realm="go2rtc"


2023/09/05 19:35:11 DEB [path xxx-crib] [RTSP source] c->s OPTIONS rtsp://xxx.104:8554/1080p RTSP/1.0
Authorization: Basic xxx
CSeq: 2
User-Agent: gortsplib


2023/09/05 19:35:11 DEB [path xxx-crib] [RTSP source] s->c RTSP/1.0 200 OK
CSeq: 2
Public: OPTIONS, SETUP, TEARDOWN, DESCRIBE, PLAY, PAUSE, ANNOUNCE, RECORD


2023/09/05 19:35:11 DEB [path xxx-crib] [RTSP source] c->s DESCRIBE rtsp://xxx.104:8554/1080p RTSP/1.0
Accept: application/sdp
Authorization: Basic xxx
CSeq: 3
User-Agent: gortsplib


2023/09/05 19:35:11 DEB [path xxx-crib] [RTSP source] s->c RTSP/1.0 200 OK
CSeq: 3
Content-Length: 236
Content-Type: application/sdp

v=0
o=- 1 1 IN IP4 0.0.0.0
s=go2rtc/1.6.0
c=IN IP4 0.0.0.0
t=0 0
m=video 0 RTP/AVP 96
a=rtpmap:96 H264/90000
a=fmtp:96 packetization-mode=1
a=control:trackID=0
m=audio 0 RTP/AVP 97
a=rtpmap:97 PCML/16000
a=control:trackID=1

2023/09/05 19:35:11 DEB [path xxx-crib] [RTSP source] c->s SETUP rtsp://xxx.104:8554/1080p/trackID=0 RTSP/1.0
Authorization: Basic xxx
CSeq: 4
Transport: RTP/AVP/TCP;unicast;interleaved=0-1;mode=play
User-Agent: gortsplib


2023/09/05 19:35:12 DEB [path xxx-crib] [RTSP source] s->c RTSP/1.0 200 OK
CSeq: 4
Session: 45701311;timeout=60
Transport: RTP/AVP/TCP;unicast;interleaved=0-1


2023/09/05 19:35:12 DEB [path xxx-crib] [RTSP source] c->s SETUP rtsp://xxx.104:8554/1080p/trackID=1 RTSP/1.0
Authorization: Basic xxx
CSeq: 5
Session: 45701311
Transport: RTP/AVP/TCP;unicast;interleaved=2-3;mode=play
User-Agent: gortsplib


2023/09/05 19:35:12 DEB [path xxx-crib] [RTSP source] s->c RTSP/1.0 200 OK
CSeq: 5
Session: 63948645;timeout=60
Transport: RTP/AVP/TCP;unicast;interleaved=2-3


2023/09/05 19:35:12 DEB [RTSP] [conn xxx.94:46640] [s->c] RTSP/1.0 200 OK
CSeq: 2
Content-Base: rtsp://xxx.12:8554/xxx-crib/
Content-Length: 306
Content-Type: application/sdp
Server: gortsplib

v=0
o=- 0 0 IN IP4 127.0.0.1
s=go2rtc/1.6.0
c=IN IP4 0.0.0.0
t=0 0
m=video 0 RTP/AVP 96
a=control:rtsp://xxx.12:8554/xxx-crib/trackID=0
a=rtpmap:96 H264/90000
a=fmtp:96 packetization-mode=1
m=audio 0 RTP/AVP 97
a=control:rtsp://xxx.12:8554/xxx-crib/trackID=1
a=rtpmap:97 PCML/16000

2023/09/05 19:35:12 INF [path xxx-crib] [RTSP source] ready: 2 tracks (H264, Generic)
2023/09/05 19:35:12 DEB [path xxx-crib] [RTSP source] c->s PLAY rtsp://xxx.104:8554/1080p RTSP/1.0
Authorization: Basic xxx
CSeq: 6
Range: npt=0-
Session: 63948645
User-Agent: gortsplib


2023/09/05 19:35:12 DEB [path xxx-crib] [RTSP source] s->c RTSP/1.0 200 OK
CSeq: 6
Session: 63948645


2023/09/05 19:35:12 DEB [RTSP] [conn xxx.94:46640] [c->s] SETUP rtsp://xxx.12:8554/xxx-crib/trackID=0 RTSP/1.0
CSeq: 3
Transport: RTP/AVP/TCP;unicast;interleaved=0-1
User-Agent: Live555


2023/09/05 19:35:12 INF [RTSP] [session d3938ec3] created by xxx.94:46640
2023/09/05 19:35:12 DEB [RTSP] [conn xxx.94:46640] [s->c] RTSP/1.0 200 OK
CSeq: 3
Server: gortsplib
Session: 9e5f6c4dfcc64d6485e83d144eded89e
Transport: RTP/AVP/TCP;unicast;interleaved=0-1;ssrc=99BEB6C2


2023/09/05 19:35:12 DEB [RTSP] [conn xxx.94:46640] [c->s] PLAY rtsp://xxx.12:8554/xxx-crib/ RTSP/1.0
CSeq: 4
Range: npt=0.000-
Session: 9e5f6c4dfcc64d6485e83d144eded89e
User-Agent: Live555


2023/09/05 19:35:12 INF [RTSP] [session d3938ec3] is reading from path 'xxx-crib', with TCP, 1 track (H264)
2023/09/05 19:35:12 DEB [RTSP] [conn xxx.94:46640] [s->c] RTSP/1.0 200 OK
CSeq: 4
RTP-Info: url=rtsp://xxx.12:8554/xxx-crib/trackID=0;seq=2140;rtptime=580324895
Server: gortsplib
Session: 9e5f6c4dfcc64d6485e83d144eded89e


2023/09/05 19:35:13 WAR [path xxx-crib] [RTSP source] 24 RTP packets lost
2023/09/05 19:35:19 DEB [RTSP] [conn xxx.94:46640] [c->s] TEARDOWN rtsp://xxx.12:8554/xxx-crib/ RTSP/1.0
CSeq: 5
Session: 9e5f6c4dfcc64d6485e83d144eded89e
User-Agent: Live555


2023/09/05 19:35:19 INF [RTSP] [session d3938ec3] destroyed (torn down by xxx.94:46640)
2023/09/05 19:35:19 DEB [RTSP] [conn xxx.94:46640] [s->c] RTSP/1.0 200 OK
CSeq: 5
Server: gortsplib


2023/09/05 19:35:19 INF [RTSP] [conn xxx.94:46640] closed (EOF)
2023/09/05 19:35:29 INF [path xxx-crib] [RTSP source] stopped
2023/09/05 19:35:29 DEB [path xxx-crib] [RTSP source] c->s TEARDOWN rtsp://xxx.104:8554/1080p RTSP/1.0
Authorization: Basic xxx
CSeq: 7
Session: 63948645
User-Agent: gortsplib

@clee604
Copy link
Author

clee604 commented Sep 7, 2023

In case this is helpful, this is the log from v1.0.0 where the issue does not appear.

2023/09/05 19:39:03 INF MediaMTX v1.0.0
2023/09/05 19:39:03 DEB [path xxx-crib] created
2023/09/05 19:39:03 DEB path manager created
2023/09/05 19:39:03 INF [RTSP] listener opened on :8554 (TCP)
2023/09/05 19:39:03 INF [RTMP] listener opened on :1935
2023/09/05 19:39:03 INF [HLS] listener opened on :8888
2023/09/05 19:39:03 INF [WebRTC] listener opened on :8889 (HTTP)
2023/09/05 19:39:03 INF [SRT] listener opened on :8890 (UDP)
2023/09/05 19:39:30 INF [RTSP] [conn xxx.94:46648] opened
2023/09/05 19:39:30 DEB [RTSP] [conn xxx.94:46648] [c->s] OPTIONS rtsp://xxx.12:8554/xxx-crib RTSP/1.0
CSeq: 1
User-Agent: Live555


2023/09/05 19:39:30 DEB [RTSP] [conn xxx.94:46648] [s->c] RTSP/1.0 200 OK
CSeq: 1
Public: DESCRIBE, ANNOUNCE, SETUP, PLAY, RECORD, PAUSE, GET_PARAMETER, TEARDOWN
Server: gortsplib


2023/09/05 19:39:30 DEB [RTSP] [conn xxx.94:46648] [c->s] DESCRIBE rtsp://xxx.12:8554/xxx-crib RTSP/1.0
Accept: application/sdp
CSeq: 2
User-Agent: Live555


2023/09/05 19:39:30 INF [path xxx-crib] [RTSP source] started
2023/09/05 19:39:30 DEB [path xxx-crib] [RTSP source] connecting
2023/09/05 19:39:30 DEB [path xxx-crib] [RTSP source] c->s OPTIONS rtsp://xxx.104:8554/1080p RTSP/1.0
CSeq: 1
User-Agent: gortsplib


2023/09/05 19:39:30 DEB [path xxx-crib] [RTSP source] s->c RTSP/1.0 401 Unauthorized
CSeq: 1
WWW-Authenticate: Basic realm="go2rtc"


2023/09/05 19:39:30 DEB [path xxx-crib] [RTSP source] c->s OPTIONS rtsp://xxx.104:8554/1080p RTSP/1.0
Authorization: Basic xxx
CSeq: 2
User-Agent: gortsplib


2023/09/05 19:39:30 DEB [path xxx-crib] [RTSP source] s->c RTSP/1.0 200 OK
CSeq: 2
Public: OPTIONS, SETUP, TEARDOWN, DESCRIBE, PLAY, PAUSE, ANNOUNCE, RECORD


2023/09/05 19:39:30 DEB [path xxx-crib] [RTSP source] c->s DESCRIBE rtsp://xxx.104:8554/1080p RTSP/1.0
Accept: application/sdp
Authorization: Basic xxx
CSeq: 3
User-Agent: gortsplib


2023/09/05 19:39:30 DEB [path xxx-crib] [RTSP source] s->c RTSP/1.0 200 OK
CSeq: 3
Content-Length: 236
Content-Type: application/sdp

v=0
o=- 1 1 IN IP4 0.0.0.0
s=go2rtc/1.6.0
c=IN IP4 0.0.0.0
t=0 0
m=video 0 RTP/AVP 96
a=rtpmap:96 H264/90000
a=fmtp:96 packetization-mode=1
a=control:trackID=0
m=audio 0 RTP/AVP 97
a=rtpmap:97 PCML/16000
a=control:trackID=1

2023/09/05 19:39:30 DEB [path xxx-crib] [RTSP source] c->s SETUP rtsp://xxx.104:8554/1080p/trackID=0 RTSP/1.0
Authorization: Basic xxx
CSeq: 4
Transport: RTP/AVP/TCP;unicast;interleaved=0-1;mode=play
User-Agent: gortsplib


2023/09/05 19:39:30 DEB [path xxx-crib] [RTSP source] s->c RTSP/1.0 200 OK
CSeq: 4
Session: 50949733;timeout=60
Transport: RTP/AVP/TCP;unicast;interleaved=0-1


2023/09/05 19:39:30 DEB [path xxx-crib] [RTSP source] c->s SETUP rtsp://xxx.104:8554/1080p/trackID=1 RTSP/1.0
Authorization: Basic xxx
CSeq: 5
Session: 50949733
Transport: RTP/AVP/TCP;unicast;interleaved=2-3;mode=play
User-Agent: gortsplib


2023/09/05 19:39:30 DEB [path xxx-crib] [RTSP source] s->c RTSP/1.0 200 OK
CSeq: 5
Session: 12208073;timeout=60
Transport: RTP/AVP/TCP;unicast;interleaved=2-3


2023/09/05 19:39:30 INF [path xxx-crib] [RTSP source] ready: 2 tracks (H264, Generic)
2023/09/05 19:39:30 DEB [path xxx-crib] [RTSP source] c->s PLAY rtsp://xxx.104:8554/1080p RTSP/1.0
Authorization: Basic xxx
CSeq: 6
Range: npt=0-
Session: 12208073
User-Agent: gortsplib


2023/09/05 19:39:30 DEB [RTSP] [conn xxx.94:46648] [s->c] RTSP/1.0 200 OK
CSeq: 2
Content-Base: rtsp://xxx.12:8554/xxx-crib/
Content-Length: 300
Content-Type: application/sdp
Server: gortsplib

v=0
o=- 0 0 IN IP4 127.0.0.1
s=Stream
c=IN IP4 0.0.0.0
t=0 0
m=video 0 RTP/AVP 96
a=control:rtsp://xxx.12:8554/xxx-crib/trackID=0
a=rtpmap:96 H264/90000
a=fmtp:96 packetization-mode=1
m=audio 0 RTP/AVP 97
a=control:rtsp://xxx.12:8554/xxx-crib/trackID=1
a=rtpmap:97 PCML/16000

2023/09/05 19:39:30 DEB [path xxx-crib] [RTSP source] s->c RTSP/1.0 200 OK
CSeq: 6
Session: 12208073


2023/09/05 19:39:31 DEB [RTSP] [conn xxx.94:46648] [c->s] SETUP rtsp://xxx.12:8554/xxx-crib/trackID=0 RTSP/1.0
CSeq: 3
Transport: RTP/AVP/TCP;unicast;interleaved=0-1
User-Agent: Live555


2023/09/05 19:39:31 INF [RTSP] [session 785b85d8] created by xxx.94:46648
2023/09/05 19:39:31 DEB [RTSP] [conn xxx.94:46648] [s->c] RTSP/1.0 200 OK
CSeq: 3
Server: gortsplib
Session: c0526fee33c044b4b25b7fe5be814685
Transport: RTP/AVP/TCP;unicast;interleaved=0-1


2023/09/05 19:39:31 DEB [RTSP] [conn xxx.94:46648] [c->s] PLAY rtsp://xxx.12:8554/xxx-crib/ RTSP/1.0
CSeq: 4
Range: npt=0.000-
Session: c0526fee33c044b4b25b7fe5be814685
User-Agent: Live555


2023/09/05 19:39:31 INF [RTSP] [session 785b85d8] is reading from path 'xxx-crib', with TCP, 1 track (H264)
2023/09/05 19:39:31 DEB [RTSP] [conn xxx.94:46648] [s->c] RTSP/1.0 200 OK
CSeq: 4
Server: gortsplib
Session: c0526fee33c044b4b25b7fe5be814685


2023/09/05 19:40:01 DEB [RTSP] [conn xxx.94:46648] [c->s] GET_PARAMETER rtsp://xxx.12:8554/xxx-crib/ RTSP/1.0
CSeq: 5
Session: c0526fee33c044b4b25b7fe5be814685
User-Agent: Live555


2023/09/05 19:40:01 DEB [RTSP] [conn xxx.94:46648] [s->c] RTSP/1.0 200 OK
CSeq: 5
Content-Type: text/parameters
Server: gortsplib
Session: c0526fee33c044b4b25b7fe5be814685


2023/09/05 19:40:18 DEB [path xxx-crib] [RTSP source] c->s OPTIONS rtsp://xxx.104:8554/1080p RTSP/1.0
Authorization: Basic xxx
CSeq: 7
Session: 12208073
User-Agent: gortsplib


2023/09/05 19:40:31 DEB [RTSP] [conn xxx.94:46648] [c->s] GET_PARAMETER rtsp://xxx.12:8554/xxx-crib/ RTSP/1.0
CSeq: 6
Session: c0526fee33c044b4b25b7fe5be814685
User-Agent: Live555


2023/09/05 19:40:31 DEB [RTSP] [conn xxx.94:46648] [s->c] RTSP/1.0 200 OK
CSeq: 6
Content-Type: text/parameters
Server: gortsplib
Session: c0526fee33c044b4b25b7fe5be814685


2023/09/05 19:40:49 DEB [RTSP] [conn xxx.94:46648] [c->s] TEARDOWN rtsp://xxx.12:8554/xxx-crib/ RTSP/1.0
CSeq: 7
Session: c0526fee33c044b4b25b7fe5be814685
User-Agent: Live555


2023/09/05 19:40:49 INF [RTSP] [session 785b85d8] destroyed (torn down by xxx.94:46648)
2023/09/05 19:40:49 DEB [RTSP] [conn xxx.94:46648] [s->c] RTSP/1.0 200 OK
CSeq: 7
Server: gortsplib


2023/09/05 19:40:49 INF [RTSP] [conn xxx.94:46648] closed (EOF)
2023/09/05 19:40:59 INF [path xxx-crib] [RTSP source] stopped
2023/09/05 19:40:59 DEB [path xxx-crib] [RTSP source] c->s TEARDOWN rtsp://xxx.104:8554/1080p RTSP/1.0
Authorization: Basic xxx
CSeq: 8
Session: 12208073
User-Agent: gortsplib


2023/09/05 20:35:32 INF [RTSP] [conn xxx.94:46694] opened
2023/09/05 20:35:32 DEB [RTSP] [conn xxx.94:46694] [c->s] OPTIONS rtsp://xxx.12:8554/xxx-crib RTSP/1.0
CSeq: 1
User-Agent: Live555


2023/09/05 20:35:32 DEB [RTSP] [conn xxx.94:46694] [s->c] RTSP/1.0 200 OK
CSeq: 1
Public: DESCRIBE, ANNOUNCE, SETUP, PLAY, RECORD, PAUSE, GET_PARAMETER, TEARDOWN
Server: gortsplib


2023/09/05 20:35:32 DEB [RTSP] [conn xxx.94:46694] [c->s] DESCRIBE rtsp://xxx.12:8554/xxx-crib RTSP/1.0
Accept: application/sdp
CSeq: 2
User-Agent: Live555


2023/09/05 20:35:32 INF [path xxx-crib] [RTSP source] started
2023/09/05 20:35:32 DEB [path xxx-crib] [RTSP source] connecting
2023/09/05 20:35:32 DEB [path xxx-crib] [RTSP source] c->s OPTIONS rtsp://xxx.104:8554/1080p RTSP/1.0
CSeq: 1
User-Agent: gortsplib


2023/09/05 20:35:32 DEB [path xxx-crib] [RTSP source] s->c RTSP/1.0 401 Unauthorized
CSeq: 1
WWW-Authenticate: Basic realm="go2rtc"


2023/09/05 20:35:32 DEB [path xxx-crib] [RTSP source] c->s OPTIONS rtsp://xxx.104:8554/1080p RTSP/1.0
Authorization: Basic xxx
CSeq: 2
User-Agent: gortsplib


2023/09/05 20:35:32 DEB [path xxx-crib] [RTSP source] s->c RTSP/1.0 200 OK
CSeq: 2
Public: OPTIONS, SETUP, TEARDOWN, DESCRIBE, PLAY, PAUSE, ANNOUNCE, RECORD


2023/09/05 20:35:32 DEB [path xxx-crib] [RTSP source] c->s DESCRIBE rtsp://xxx.104:8554/1080p RTSP/1.0
Accept: application/sdp
Authorization: Basic xxx
CSeq: 3
User-Agent: gortsplib


2023/09/05 20:35:32 DEB [path xxx-crib] [RTSP source] s->c RTSP/1.0 200 OK
CSeq: 3
Content-Length: 236
Content-Type: application/sdp

v=0
o=- 1 1 IN IP4 0.0.0.0
s=go2rtc/1.6.0
c=IN IP4 0.0.0.0
t=0 0
m=video 0 RTP/AVP 96
a=rtpmap:96 H264/90000
a=fmtp:96 packetization-mode=1
a=control:trackID=0
m=audio 0 RTP/AVP 97
a=rtpmap:97 PCML/16000
a=control:trackID=1

2023/09/05 20:35:32 DEB [path xxx-crib] [RTSP source] c->s SETUP rtsp://xxx.104:8554/1080p/trackID=0 RTSP/1.0
Authorization: Basic xxx
CSeq: 4
Transport: RTP/AVP/TCP;unicast;interleaved=0-1;mode=play
User-Agent: gortsplib


2023/09/05 20:35:32 DEB [path xxx-crib] [RTSP source] s->c RTSP/1.0 200 OK
CSeq: 4
Session: 36404501;timeout=60
Transport: RTP/AVP/TCP;unicast;interleaved=0-1


2023/09/05 20:35:32 DEB [path xxx-crib] [RTSP source] c->s SETUP rtsp://xxx.104:8554/1080p/trackID=1 RTSP/1.0
Authorization: Basic xxx
CSeq: 5
Session: 36404501
Transport: RTP/AVP/TCP;unicast;interleaved=2-3;mode=play
User-Agent: gortsplib


2023/09/05 20:35:32 DEB [path xxx-crib] [RTSP source] s->c RTSP/1.0 200 OK
CSeq: 5
Session: 64675691;timeout=60
Transport: RTP/AVP/TCP;unicast;interleaved=2-3


2023/09/05 20:35:32 INF [path xxx-crib] [RTSP source] ready: 2 tracks (H264, Generic)
2023/09/05 20:35:32 DEB [path xxx-crib] [RTSP source] c->s PLAY rtsp://xxx.104:8554/1080p RTSP/1.0
Authorization: Basic xxx
CSeq: 6
Range: npt=0-
Session: 64675691
User-Agent: gortsplib


2023/09/05 20:35:32 DEB [RTSP] [conn xxx.94:46694] [s->c] RTSP/1.0 200 OK
CSeq: 2
Content-Base: rtsp://xxx.12:8554/xxx-crib/
Content-Length: 300
Content-Type: application/sdp
Server: gortsplib

v=0
o=- 0 0 IN IP4 127.0.0.1
s=Stream
c=IN IP4 0.0.0.0
t=0 0
m=video 0 RTP/AVP 96
a=control:rtsp://xxx.12:8554/xxx-crib/trackID=0
a=rtpmap:96 H264/90000
a=fmtp:96 packetization-mode=1
m=audio 0 RTP/AVP 97
a=control:rtsp://xxx.12:8554/xxx-crib/trackID=1
a=rtpmap:97 PCML/16000

2023/09/05 20:35:32 DEB [path xxx-crib] [RTSP source] s->c RTSP/1.0 200 OK
CSeq: 6
Session: 64675691


2023/09/05 20:35:32 DEB [RTSP] [conn xxx.94:46694] [c->s] SETUP rtsp://xxx.12:8554/xxx-crib/trackID=0 RTSP/1.0
CSeq: 3
Transport: RTP/AVP/TCP;unicast;interleaved=0-1
User-Agent: Live555


2023/09/05 20:35:32 INF [RTSP] [session 8c1a4b6a] created by xxx.94:46694
2023/09/05 20:35:32 DEB [RTSP] [conn xxx.94:46694] [s->c] RTSP/1.0 200 OK
CSeq: 3
Server: gortsplib
Session: 25c835e4dca94aa1adbe728fa51c2dfb
Transport: RTP/AVP/TCP;unicast;interleaved=0-1


2023/09/05 20:35:32 DEB [RTSP] [conn xxx.94:46694] [c->s] PLAY rtsp://xxx.12:8554/xxx-crib/ RTSP/1.0
CSeq: 4
Range: npt=0.000-
Session: 25c835e4dca94aa1adbe728fa51c2dfb
User-Agent: Live555


2023/09/05 20:35:32 INF [RTSP] [session 8c1a4b6a] is reading from path 'xxx-crib', with TCP, 1 track (H264)
2023/09/05 20:35:32 DEB [RTSP] [conn xxx.94:46694] [s->c] RTSP/1.0 200 OK
CSeq: 4
Server: gortsplib
Session: 25c835e4dca94aa1adbe728fa51c2dfb


2023/09/05 20:35:33 INF [RTSP] [conn xxx.94:49385] opened
2023/09/05 20:35:33 INF [RTSP] [conn xxx.94:49385] closed (EOF)
2023/09/05 20:35:34 INF [RTSP] [conn xxx.94:46694] closed (read tcp xxx.12:8554->xxx.94:46694: read: connection reset by peer)
2023/09/05 20:35:34 INF [RTSP] [session 8c1a4b6a] destroyed (not in use)
2023/09/05 20:35:44 INF [path xxx-crib] [RTSP source] stopped
2023/09/05 20:35:44 DEB [path xxx-crib] [RTSP source] c->s TEARDOWN rtsp://xxx.104:8554/1080p RTSP/1.0
Authorization: Basic xxx
CSeq: 7
Session: 64675691
User-Agent: gortsplib

@aler9 aler9 added bug Something isn't working rtsp and removed question Further information is requested labels Sep 9, 2023
@aler9
Copy link
Member

aler9 commented Sep 9, 2023

I think i've understood where the bug is. Between v1.0.0 and v1.0.1, the RTSP client was improved in order to support receiving server requests. A side effect of this refactoring is that the client now checks whether keepalive requests are acknowledged or not. Your camera doesn't reply to keepalive requests:

2023/09/05 19:40:18 DEB [path xxx-crib] [RTSP source] c->s OPTIONS rtsp://xxx.104:8554/1080p RTSP/1.0
Authorization: Basic xxx
CSeq: 7
Session: 12208073
User-Agent: gortsplib

There should be a s->c RTSP/1.0 OK after this request but there isn't. This behavior for some reason freezes the library, and no packets are sent to VLC anymore. Consequently, VLC closes the connection with the server after some time:

2023/09/05 19:40:49 DEB [RTSP] [conn xxx.94:46648] [c->s] TEARDOWN rtsp://xxx.12:8554/xxx-crib/ RTSP/1.0
CSeq: 7
Session: c0526fee33c044b4b25b7fe5be814685
User-Agent: Live555

And since the source is on demand, and no one is reading it anymore, the source is stopped by the server:

2023/09/05 19:40:59 INF [path xxx-crib] [RTSP source] stopped

Of course all this needs to be fixed.

aler9 added a commit to bluenviron/gortsplib that referenced this issue Sep 10, 2023
aler9 added a commit to bluenviron/gortsplib that referenced this issue Sep 10, 2023
aler9 added a commit to bluenviron/gortsplib that referenced this issue Sep 10, 2023
@aler9
Copy link
Member

aler9 commented Sep 10, 2023

please try the attached nightly release and let me know if it fixes the issue.

[link removed]

aler9 added a commit to bluenviron/gortsplib that referenced this issue Sep 10, 2023
aler9 added a commit to bluenviron/gortsplib that referenced this issue Sep 10, 2023
aler9 added a commit to bluenviron/gortsplib that referenced this issue Sep 10, 2023
@clee604
Copy link
Author

clee604 commented Sep 11, 2023

So far so good with the v1.0.3-11 version but I'll let it run through the paces tonight.

As for the keep-alive requests; I'm not sure if wz_mini_hacks change to go2rtc impacted anything? I switched over to using go2rtc server for the rtsp feeds. I think previously it used v4l2rtspserver. Is the lack of a keepalive a bug that should be reported on the go2rtc side as well? Or is something just missing in my configuration?

@aler9
Copy link
Member

aler9 commented Sep 11, 2023

Is the lack of a keepalive a bug?

MediaMTX now supports RTSP streams regardless of the fact that keepalive responses are sent or not. We can't consider the lack of keepalive responses a bug since there are cameras that don't send them, as we have just demonstrated.

@clee604
Copy link
Author

clee604 commented Sep 11, 2023

Perfect thank you for fix. I can confirm I didn't see any drop outs with the proxied camera feed last night with the nightly.

@aler9
Copy link
Member

aler9 commented Sep 16, 2023

fixed in v1.1.0

Copy link
Contributor

This issue is being locked automatically because it has been closed for more than 6 months.
Please open a new issue in case you encounter a similar problem.

@github-actions github-actions bot locked and limited conversation to collaborators Mar 21, 2024
Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.
Labels
bug Something isn't working rtsp
Projects
None yet
Development

Successfully merging a pull request may close this issue.

2 participants