bluenviron / mediamtx

Ready-to-use SRT / WebRTC / RTSP / RTMP / LL-HLS media server and media proxy that allows to read, publish, proxy, record and playback video and audio streams.
MIT License
10.71k stars 1.4k forks source link

GET_PARAMETER not responded? Stream timeout 60seconds #2908

Open luis15pt opened 5 months ago

luis15pt commented 5 months ago

Which version are you using?

Docker -> latest-ffmpeg

Which operating system are you using?

Describe the issue

Im using a video feed from Camera "A" and converting it into a feed that Video Door bell "B" can handle. The video is accepted and working but after the initial 60seconds it will stop working.

Describe how to replicate the issue

  1. start the server
  2. publish with ...
  3. read with ...

Did you attach the server logs?

yes, see below

Did you attach a network dump?

yes HIPexternalVideo.zip

Logs from the docker container,

2024/01/14 23:55:54 INF [RTSP] [conn 192.168.10.50:49578] opened0.03 bitrate=N/A dup=0 drop=6 speed=1.07x
mediamtx-rtsp | 2024/01/14 23:55:54 DEB [RTSP] [conn 192.168.10.50:49578] [c->s] OPTIONS rtsp://192.168.7.252:8554/mystream RTSP/1.0
mediamtx-rtsp | CSeq: 1102
mediamtx-rtsp | User-Agent: HIP 2.42.1.55.3
mediamtx-rtsp |
mediamtx-rtsp |
mediamtx-rtsp | 2024/01/14 23:55:54 DEB [RTSP] [conn 192.168.10.50:49578] [s->c] RTSP/1.0 200 OK
mediamtx-rtsp | CSeq: 1102
mediamtx-rtsp | Public: DESCRIBE, ANNOUNCE, SETUP, PLAY, RECORD, PAUSE, GET_PARAMETER, TEARDOWN
mediamtx-rtsp | Server: gortsplib
mediamtx-rtsp |
mediamtx-rtsp |
mediamtx-rtsp | 2024/01/14 23:55:54 DEB [RTSP] [conn 192.168.10.50:49578] [c->s] DESCRIBE rtsp://192.168.7.252:8554/mystream RTSP/1.0
mediamtx-rtsp | Accept: application/sdp
mediamtx-rtsp | CSeq: 1103
mediamtx-rtsp | User-Agent: HIP 2.42.1.55.3
mediamtx-rtsp |
mediamtx-rtsp |
mediamtx-rtsp | 2024/01/14 23:55:54 DEB [RTSP] [conn 192.168.10.50:49578] [s->c] RTSP/1.0 200 OK
mediamtx-rtsp | CSeq: 1103
mediamtx-rtsp | Content-Base: rtsp://192.168.7.252:8554/mystream/
mediamtx-rtsp | Content-Length: 311
mediamtx-rtsp | Content-Type: application/sdp
mediamtx-rtsp | Server: gortsplib
mediamtx-rtsp |
mediamtx-rtsp | v=0
mediamtx-rtsp | o=- 0 0 IN IP4 127.0.0.1
mediamtx-rtsp | s=HIK Media Server V3.0.17
mediamtx-rtsp | c=IN IP4 0.0.0.0
mediamtx-rtsp | t=0 0
mediamtx-rtsp | m=video 0 RTP/AVP 96
mediamtx-rtsp | a=control:rtsp://192.168.7.252:8554/mystream/trackID=0
mediamtx-rtsp | a=rtpmap:96 H264/90000
mediamtx-rtsp | a=fmtp:96 packetization-mode=1; profile-level-id=42C01E; sprop-parameter-sets=Z0LAHtoCgPaagICAoAAAAwAgAAAHkeLF1A==,aM4PyA==
mediamtx-rtsp |
mediamtx-rtsp | 2024/01/14 23:55:54 DEB [RTSP] [conn 192.168.10.50:49578] [c->s] SETUP rtsp://192.168.7.252:8554/mystream/trackID=0 RTSP/1.0
mediamtx-rtsp | CSeq: 1104
mediamtx-rtsp | Transport: RTP/AVP;unicast;client_port=4709-4710
mediamtx-rtsp | User-Agent: HIP 2.42.1.55.3
mediamtx-rtsp |
mediamtx-rtsp |
mediamtx-rtsp | 2024/01/14 23:55:54 INF [RTSP] [session ec5179ae] created by 192.168.10.50:49578
mediamtx-rtsp | 2024/01/14 23:55:54 DEB [RTSP] [conn 192.168.10.50:49578] [s->c] RTSP/1.0 200 OK
mediamtx-rtsp | CSeq: 1104
mediamtx-rtsp | Server: gortsplib
mediamtx-rtsp | Session: 27b216cb2e9e4c738328c6974932f6b3;timeout=60
mediamtx-rtsp | Transport: RTP/AVP;unicast;client_port=4709-4710;server_port=8000-8001
mediamtx-rtsp |
mediamtx-rtsp |
mediamtx-rtsp | 2024/01/14 23:55:54 DEB [RTSP] [conn 192.168.10.50:49578] [c->s] PLAY rtsp://192.168.7.252:8554/mystream RTSP/1.0
mediamtx-rtsp | CSeq: 1105
mediamtx-rtsp | Range: npt=0.000-
mediamtx-rtsp | Session: 27b216cb2e9e4c738328c6974932f6b3
mediamtx-rtsp | User-Agent: HIP 2.42.1.55.3

mediamtx-rtsp |
mediamtx-rtsp | 2024/01/14 23:55:54 INF [RTSP] [session ec5179ae] is reading from path 'mystream', with UDP, 1 track (H264)
mediamtx-rtsp | 2024/01/14 23:55:54 DEB [RTSP] [conn 192.168.10.50:49578] [s->c] RTSP/1.0 200 OK
mediamtx-rtsp | CSeq: 1105
mediamtx-rtsp | Server: gortsplib
mediamtx-rtsp | Session: 27b216cb2e9e4c738328c6974932f6b3;timeout=60
mediamtx-rtsp | 2024/01/14 23:55:54 WAR [RTSP] [session ec5179ae] rtcp: invalid packet version

Looking at these logs it suggests, this starts a steam which has a 60 second timeout, after this timeout equipment "B" video doorbell tries to extend the feed as per RFC2326 Medixmtx doesnt seem to answer so it closes the stream?

2024/01/14 23:56:42 DEB [RTSP] [conn 192.168.10.50:49578] [c->s] GET_PARAMETER rtsp://192.168.7.252:8554/mystream RTSP/1.0
mediamtx-rtsp | CSeq: 1106
mediamtx-rtsp | Session: 27b216cb2e9e4c738328c6974932f6b3
mediamtx-rtsp | User-Agent: HIP 2.42.1.55.3
mediamtx-rtsp |
mediamtx-rtsp |
mediamtx-rtsp | 2024/01/14 23:56:42 DEB [RTSP] [conn 192.168.10.50:49578] [s->c] RTSP/1.0 200 OK
mediamtx-rtsp | CSeq: 1106
mediamtx-rtsp | Content-Type: text/parameters
mediamtx-rtsp | Server: gortsplib
mediamtx-rtsp | Session: 27b216cb2e9e4c738328c6974932f6b3;timeout=60
mediamtx-rtsp |
2024/01/14 23:56:47 INF [RTSP] [conn 192.168.10.50:49578] closed: 

It will then try and reconnect every 10 seconds, but the ports are in use

1st attempt:

024/01/15 00:11:01 INF [RTSP] [conn 192.168.10.50:49658] opened dup=0 drop=7 speed=1.01x     speed=1.01x
mediamtx-rtsp | 2024/01/15 00:11:01 DEB [RTSP] [conn 192.168.10.50:49658] [c->s] OPTIONS rtsp://192.168.7.252:8554/mystream RTSP/1.0
mediamtx-rtsp | CSeq: 1194
mediamtx-rtsp | User-Agent: HIP 2.42.1.55.3
mediamtx-rtsp |
mediamtx-rtsp |
mediamtx-rtsp | 2024/01/15 00:11:01 DEB [RTSP] [conn 192.168.10.50:49658] [s->c] RTSP/1.0 200 OK
mediamtx-rtsp | CSeq: 1194
mediamtx-rtsp | Public: DESCRIBE, ANNOUNCE, SETUP, PLAY, RECORD, PAUSE, GET_PARAMETER, TEARDOWN
mediamtx-rtsp | Server: gortsplib
mediamtx-rtsp |
mediamtx-rtsp |
mediamtx-rtsp | 2024/01/15 00:11:01 DEB [RTSP] [conn 192.168.10.50:49658] [c->s] DESCRIBE rtsp://192.168.7.252:8554/mystream RTSP/1.0
mediamtx-rtsp | Accept: application/sdp
mediamtx-rtsp | CSeq: 1195
mediamtx-rtsp | User-Agent: HIP 2.42.1.55.3
mediamtx-rtsp |
mediamtx-rtsp |
mediamtx-rtsp | 2024/01/15 00:11:01 DEB [RTSP] [conn 192.168.10.50:49658] [s->c] RTSP/1.0 200 OK
mediamtx-rtsp | CSeq: 1195
mediamtx-rtsp | Content-Base: rtsp://192.168.7.252:8554/mystream/
mediamtx-rtsp | Content-Length: 307
mediamtx-rtsp | Content-Type: application/sdp
mediamtx-rtsp | Server: gortsplib
mediamtx-rtsp |
mediamtx-rtsp | v=0
mediamtx-rtsp | o=- 0 0 IN IP4 127.0.0.1
mediamtx-rtsp | s=HIK Media Server V3.0.17
mediamtx-rtsp | c=IN IP4 0.0.0.0
mediamtx-rtsp | t=0 0
mediamtx-rtsp | m=video 0 RTP/AVP 96
mediamtx-rtsp | a=control:rtsp://192.168.7.252:8554/mystream/trackID=0
mediamtx-rtsp | a=rtpmap:96 H264/90000
mediamtx-rtsp | a=fmtp:96 packetization-mode=1; profile-level-id=42C01E; sprop-parameter-sets=Z0LAHtoCgPaEAAADAAQAAAMA8jxYuoA=,aM4PyA==
mediamtx-rtsp |
mediamtx-rtsp | 2024/01/15 00:11:01 DEB [RTSP] [conn 192.168.10.50:49658] [c->s] SETUP rtsp://192.168.7.252:8554/mystream/trackID=0 RTSP/1.0
mediamtx-rtsp | CSeq: 1196
mediamtx-rtsp | Transport: RTP/AVP;unicast;client_port=4709-4710
mediamtx-rtsp | User-Agent: HIP 2.42.1.55.3
mediamtx-rtsp |
mediamtx-rtsp |
mediamtx-rtsp | 2024/01/15 00:11:01 INF [RTSP] [session dcacbb91] created by 192.168.10.50:49658
mediamtx-rtsp | 2024/01/15 00:11:01 DEB [RTSP] [conn 192.168.10.50:49658] [s->c] RTSP/1.0 400 Bad Request
mediamtx-rtsp | CSeq: 1196
mediamtx-rtsp | Server: gortsplib
mediamtx-rtsp |
mediamtx-rtsp |
mediamtx-rtsp | 2024/01/15 00:11:01 INF [RTSP] [conn 192.168.10.50:49658] closed: UDP ports 4709 and 4710 are already assigned to another reader with the same IP
mediamtx-rtsp | 2024/01/15 00:11:01 INF [RTSP] [session dcacbb91] destroyed: not in use

2nd attempt:

mediamtx-rtsp | 2024/01/15 00:11:11 DEB [RTSP] [conn 192.168.10.50:49659] [c->s] OPTIONS rtsp://192.168.7.252:8554/mystream RTSP/1.0
mediamtx-rtsp | CSeq: 1198
mediamtx-rtsp | User-Agent: HIP 2.42.1.55.3
mediamtx-rtsp |
mediamtx-rtsp |
mediamtx-rtsp | 2024/01/15 00:11:11 DEB [RTSP] [conn 192.168.10.50:49659] [s->c] RTSP/1.0 200 OK
mediamtx-rtsp | CSeq: 1198
mediamtx-rtsp | Public: DESCRIBE, ANNOUNCE, SETUP, PLAY, RECORD, PAUSE, GET_PARAMETER, TEARDOWN
mediamtx-rtsp | Server: gortsplib
mediamtx-rtsp |
mediamtx-rtsp |
mediamtx-rtsp | 2024/01/15 00:11:11 DEB [RTSP] [conn 192.168.10.50:49659] [c->s] DESCRIBE rtsp://192.168.7.252:8554/mystream RTSP/1.0
mediamtx-rtsp | Accept: application/sdp
mediamtx-rtsp | CSeq: 1199
mediamtx-rtsp | User-Agent: HIP 2.42.1.55.3
mediamtx-rtsp |
mediamtx-rtsp |
mediamtx-rtsp | 2024/01/15 00:11:11 DEB [RTSP] [conn 192.168.10.50:49659] [s->c] RTSP/1.0 200 OK
mediamtx-rtsp | CSeq: 1199
mediamtx-rtsp | Content-Base: rtsp://192.168.7.252:8554/mystream/
mediamtx-rtsp | Content-Length: 307
mediamtx-rtsp | Content-Type: application/sdp
mediamtx-rtsp | Server: gortsplib
mediamtx-rtsp |
mediamtx-rtsp | v=0
mediamtx-rtsp | o=- 0 0 IN IP4 127.0.0.1
mediamtx-rtsp | s=HIK Media Server V3.0.17
mediamtx-rtsp | c=IN IP4 0.0.0.0
mediamtx-rtsp | t=0 0
mediamtx-rtsp | m=video 0 RTP/AVP 96
mediamtx-rtsp | a=control:rtsp://192.168.7.252:8554/mystream/trackID=0
mediamtx-rtsp | a=rtpmap:96 H264/90000
mediamtx-rtsp | a=fmtp:96 packetization-mode=1; profile-level-id=42C01E; sprop-parameter-sets=Z0LAHtoCgPaEAAADAAQAAAMA8jxYuoA=,aM4PyA==
mediamtx-rtsp |
mediamtx-rtsp | 2024/01/15 00:11:11 DEB [RTSP] [conn 192.168.10.50:49659] [c->s] SETUP rtsp://192.168.7.252:8554/mystream/trackID=0 RTSP/1.0
mediamtx-rtsp | CSeq: 1200
mediamtx-rtsp | Transport: RTP/AVP;unicast;client_port=4709-4710
mediamtx-rtsp | User-Agent: HIP 2.42.1.55.3
mediamtx-rtsp |
mediamtx-rtsp |
mediamtx-rtsp | 2024/01/15 00:11:11 INF [RTSP] [session 70c179aa] created by 192.168.10.50:49659
mediamtx-rtsp | 2024/01/15 00:11:11 DEB [RTSP] [conn 192.168.10.50:49659] [s->c] RTSP/1.0 400 Bad Request
mediamtx-rtsp | CSeq: 1200
mediamtx-rtsp | Server: gortsplib
mediamtx-rtsp |
mediamtx-rtsp |
mediamtx-rtsp | 2024/01/15 00:11:11 INF [RTSP] [conn 192.168.10.50:49659] closed: UDP ports 4709 and 4710 are already assigned to another reader with the same IP
mediamtx-rtsp | 2024/01/15 00:11:11 INF [RTSP] [session 70c179aa] destroyed: not in use

3rd attempt:

mediamtx-rtsp | 2024/01/15 00:11:21 DEB [RTSP] [conn 192.168.10.50:49660] [c->s] OPTIONS rtsp://192.168.7.252:8554/mystream RTSP/1.0
mediamtx-rtsp | CSeq: 1202
mediamtx-rtsp | User-Agent: HIP 2.42.1.55.3
mediamtx-rtsp |
mediamtx-rtsp |
mediamtx-rtsp | 2024/01/15 00:11:21 DEB [RTSP] [conn 192.168.10.50:49660] [s->c] RTSP/1.0 200 OK
mediamtx-rtsp | CSeq: 1202
mediamtx-rtsp | Public: DESCRIBE, ANNOUNCE, SETUP, PLAY, RECORD, PAUSE, GET_PARAMETER, TEARDOWN
mediamtx-rtsp | Server: gortsplib
mediamtx-rtsp |
mediamtx-rtsp |
mediamtx-rtsp | 2024/01/15 00:11:21 DEB [RTSP] [conn 192.168.10.50:49660] [c->s] DESCRIBE rtsp://192.168.7.252:8554/mystream RTSP/1.0
mediamtx-rtsp | Accept: application/sdp
mediamtx-rtsp | CSeq: 1203
mediamtx-rtsp | User-Agent: HIP 2.42.1.55.3
mediamtx-rtsp |
mediamtx-rtsp |
mediamtx-rtsp | 2024/01/15 00:11:21 DEB [RTSP] [conn 192.168.10.50:49660] [s->c] RTSP/1.0 200 OK
mediamtx-rtsp | CSeq: 1203
mediamtx-rtsp | Content-Base: rtsp://192.168.7.252:8554/mystream/
mediamtx-rtsp | Content-Length: 307
mediamtx-rtsp | Content-Type: application/sdp
mediamtx-rtsp | Server: gortsplib
mediamtx-rtsp |
mediamtx-rtsp | v=0
mediamtx-rtsp | o=- 0 0 IN IP4 127.0.0.1
mediamtx-rtsp | s=HIK Media Server V3.0.17
mediamtx-rtsp | c=IN IP4 0.0.0.0
mediamtx-rtsp | t=0 0
mediamtx-rtsp | m=video 0 RTP/AVP 96
mediamtx-rtsp | a=control:rtsp://192.168.7.252:8554/mystream/trackID=0
mediamtx-rtsp | a=rtpmap:96 H264/90000
mediamtx-rtsp | a=fmtp:96 packetization-mode=1; profile-level-id=42C01E; sprop-parameter-sets=Z0LAHtoCgPaEAAADAAQAAAMA8jxYuoA=,aM4PyA==
mediamtx-rtsp |
mediamtx-rtsp | 2024/01/15 00:11:21 DEB [RTSP] [conn 192.168.10.50:49660] [c->s] SETUP rtsp://192.168.7.252:8554/mystream/trackID=0 RTSP/1.0
mediamtx-rtsp | CSeq: 1204
mediamtx-rtsp | Transport: RTP/AVP;unicast;client_port=4709-4710
mediamtx-rtsp | User-Agent: HIP 2.42.1.55.3
mediamtx-rtsp |
mediamtx-rtsp |
mediamtx-rtsp | 2024/01/15 00:11:21 INF [RTSP] [session c0a7438d] created by 192.168.10.50:49660
mediamtx-rtsp | 2024/01/15 00:11:21 DEB [RTSP] [conn 192.168.10.50:49660] [s->c] RTSP/1.0 400 Bad Request
mediamtx-rtsp | CSeq: 1204
mediamtx-rtsp | Server: gortsplib
mediamtx-rtsp |
mediamtx-rtsp |
mediamtx-rtsp | 2024/01/15 00:11:21 INF [RTSP] [session c0a7438d] destroyed: not in use
mediamtx-rtsp | 2024/01/15 00:11:21 INF [RTSP] [conn 192.168.10.50:49660] closed: UDP ports 4709 and 4710 are already assigned to another reader with the same IP

4th attempt:


mediamtx-rtsp | 2024/01/15 00:11:31 DEB [RTSP] [conn 192.168.10.50:49661] [c->s] OPTIONS rtsp://192.168.7.252:8554/mystream RTSP/1.0
mediamtx-rtsp | CSeq: 1206
mediamtx-rtsp | User-Agent: HIP 2.42.1.55.3
mediamtx-rtsp |
mediamtx-rtsp |
mediamtx-rtsp | 2024/01/15 00:11:31 DEB [RTSP] [conn 192.168.10.50:49661] [s->c] RTSP/1.0 200 OK
mediamtx-rtsp | CSeq: 1206
mediamtx-rtsp | Public: DESCRIBE, ANNOUNCE, SETUP, PLAY, RECORD, PAUSE, GET_PARAMETER, TEARDOWN
mediamtx-rtsp | Server: gortsplib
mediamtx-rtsp |
mediamtx-rtsp |
mediamtx-rtsp | 2024/01/15 00:11:31 DEB [RTSP] [conn 192.168.10.50:49661] [c->s] DESCRIBE rtsp://192.168.7.252:8554/mystream RTSP/1.0
mediamtx-rtsp | Accept: application/sdp
mediamtx-rtsp | CSeq: 1207
mediamtx-rtsp | User-Agent: HIP 2.42.1.55.3
mediamtx-rtsp |
mediamtx-rtsp |
mediamtx-rtsp | 2024/01/15 00:11:31 DEB [RTSP] [conn 192.168.10.50:49661] [s->c] RTSP/1.0 200 OK
mediamtx-rtsp | CSeq: 1207
mediamtx-rtsp | Content-Base: rtsp://192.168.7.252:8554/mystream/
mediamtx-rtsp | Content-Length: 307
mediamtx-rtsp | Content-Type: application/sdp
mediamtx-rtsp | Server: gortsplib
mediamtx-rtsp |
mediamtx-rtsp | v=0
mediamtx-rtsp | o=- 0 0 IN IP4 127.0.0.1
mediamtx-rtsp | s=HIK Media Server V3.0.17
mediamtx-rtsp | c=IN IP4 0.0.0.0
mediamtx-rtsp | t=0 0
mediamtx-rtsp | m=video 0 RTP/AVP 96
mediamtx-rtsp | a=control:rtsp://192.168.7.252:8554/mystream/trackID=0
mediamtx-rtsp | a=rtpmap:96 H264/90000
mediamtx-rtsp | a=fmtp:96 packetization-mode=1; profile-level-id=42C01E; sprop-parameter-sets=Z0LAHtoCgPaEAAADAAQAAAMA8jxYuoA=,aM4PyA==
mediamtx-rtsp |
mediamtx-rtsp | 2024/01/15 00:11:31 DEB [RTSP] [conn 192.168.10.50:49661] [c->s] SETUP rtsp://192.168.7.252:8554/mystream/trackID=0 RTSP/1.0
mediamtx-rtsp | CSeq: 1208
mediamtx-rtsp | Transport: RTP/AVP;unicast;client_port=4709-4710
mediamtx-rtsp | User-Agent: HIP 2.42.1.55.3
mediamtx-rtsp |
mediamtx-rtsp |
mediamtx-rtsp | 2024/01/15 00:11:31 INF [RTSP] [session fdcbfa48] created by 192.168.10.50:49661
mediamtx-rtsp | 2024/01/15 00:11:31 DEB [RTSP] [conn 192.168.10.50:49661] [s->c] RTSP/1.0 400 Bad Request
mediamtx-rtsp | CSeq: 1208
mediamtx-rtsp | Server: gortsplib
mediamtx-rtsp |
mediamtx-rtsp |
mediamtx-rtsp | 2024/01/15 00:11:31 INF [RTSP] [conn 192.168.10.50:49661] closed: UDP ports 4709 and 4710 are already assigned to another reader with the same IP
mediamtx-rtsp | 2024/01/15 00:11:31 INF [RTSP] [session fdcbfa48] destroyed: not in use

5th attempt:


mediamtx-rtsp | 2024/01/15 00:11:41 DEB [RTSP] [conn 192.168.10.50:49662] [c->s] OPTIONS rtsp://192.168.7.252:8554/mystream RTSP/1.0
mediamtx-rtsp | CSeq: 1210
mediamtx-rtsp | User-Agent: HIP 2.42.1.55.3
mediamtx-rtsp |
mediamtx-rtsp |
mediamtx-rtsp | 2024/01/15 00:11:41 DEB [RTSP] [conn 192.168.10.50:49662] [s->c] RTSP/1.0 200 OK
mediamtx-rtsp | CSeq: 1210
mediamtx-rtsp | Public: DESCRIBE, ANNOUNCE, SETUP, PLAY, RECORD, PAUSE, GET_PARAMETER, TEARDOWN
mediamtx-rtsp | Server: gortsplib
mediamtx-rtsp |
mediamtx-rtsp |
mediamtx-rtsp | 2024/01/15 00:11:41 DEB [RTSP] [conn 192.168.10.50:49662] [c->s] DESCRIBE rtsp://192.168.7.252:8554/mystream RTSP/1.0
mediamtx-rtsp | Accept: application/sdp
mediamtx-rtsp | CSeq: 1211
mediamtx-rtsp | User-Agent: HIP 2.42.1.55.3
mediamtx-rtsp |
mediamtx-rtsp |
mediamtx-rtsp | 2024/01/15 00:11:41 DEB [RTSP] [conn 192.168.10.50:49662] [s->c] RTSP/1.0 200 OK
mediamtx-rtsp | CSeq: 1211
mediamtx-rtsp | Content-Base: rtsp://192.168.7.252:8554/mystream/
mediamtx-rtsp | Content-Length: 307
mediamtx-rtsp | Content-Type: application/sdp
mediamtx-rtsp | Server: gortsplib
mediamtx-rtsp |
mediamtx-rtsp | v=0
mediamtx-rtsp | o=- 0 0 IN IP4 127.0.0.1
mediamtx-rtsp | s=HIK Media Server V3.0.17
mediamtx-rtsp | c=IN IP4 0.0.0.0
mediamtx-rtsp | t=0 0
mediamtx-rtsp | m=video 0 RTP/AVP 96
mediamtx-rtsp | a=control:rtsp://192.168.7.252:8554/mystream/trackID=0
mediamtx-rtsp | a=rtpmap:96 H264/90000
mediamtx-rtsp | a=fmtp:96 packetization-mode=1; profile-level-id=42C01E; sprop-parameter-sets=Z0LAHtoCgPaEAAADAAQAAAMA8jxYuoA=,aM4PyA==
mediamtx-rtsp |
mediamtx-rtsp | 2024/01/15 00:11:41 DEB [RTSP] [conn 192.168.10.50:49662] [c->s] SETUP rtsp://192.168.7.252:8554/mystream/trackID=0 RTSP/1.0
mediamtx-rtsp | CSeq: 1212
mediamtx-rtsp | Transport: RTP/AVP;unicast;client_port=4709-4710
mediamtx-rtsp | User-Agent: HIP 2.42.1.55.3
mediamtx-rtsp |
mediamtx-rtsp |
mediamtx-rtsp | 2024/01/15 00:11:41 INF [RTSP] [session fb6b4d3b] created by 192.168.10.50:49662
mediamtx-rtsp | 2024/01/15 00:11:41 DEB [RTSP] [conn 192.168.10.50:49662] [s->c] RTSP/1.0 400 Bad Request
mediamtx-rtsp | CSeq: 1212
mediamtx-rtsp | Server: gortsplib
mediamtx-rtsp |
mediamtx-rtsp |
mediamtx-rtsp | 2024/01/15 00:11:41 INF [RTSP] [conn 192.168.10.50:49662] closed: UDP ports 4709 and 4710 are already assigned to another reader with the same IP
mediamtx-rtsp | 2024/01/15 00:11:41 INF [RTSP] [session fb6b4d3b] destroyed: not in use

After the 5th attempt it will timeout

2024/01/15 00:11:50 INF [RTSP] [session 08a882ab] destroyed: session timed So a new session can be made again, So it will work again for 60 seconds.


mediamtx-rtsp | 2024/01/15 00:11:51 DEB [RTSP] [conn 192.168.10.50:49663] [c->s] OPTIONS rtsp://192.168.7.252:8554/mystream RTSP/1.0
mediamtx-rtsp | CSeq: 1214
mediamtx-rtsp | User-Agent: HIP 2.42.1.55.3
mediamtx-rtsp |
mediamtx-rtsp |
mediamtx-rtsp | 2024/01/15 00:11:51 DEB [RTSP] [conn 192.168.10.50:49663] [s->c] RTSP/1.0 200 OK
mediamtx-rtsp | CSeq: 1214
mediamtx-rtsp | Public: DESCRIBE, ANNOUNCE, SETUP, PLAY, RECORD, PAUSE, GET_PARAMETER, TEARDOWN
mediamtx-rtsp | Server: gortsplib
mediamtx-rtsp |
mediamtx-rtsp |
mediamtx-rtsp | 2024/01/15 00:11:51 DEB [RTSP] [conn 192.168.10.50:49663] [c->s] DESCRIBE rtsp://192.168.7.252:8554/mystream RTSP/1.0
mediamtx-rtsp | Accept: application/sdp
mediamtx-rtsp | CSeq: 1215
mediamtx-rtsp | User-Agent: HIP 2.42.1.55.3
mediamtx-rtsp |
mediamtx-rtsp |
mediamtx-rtsp | 2024/01/15 00:11:51 DEB [RTSP] [conn 192.168.10.50:49663] [s->c] RTSP/1.0 200 OK
mediamtx-rtsp | CSeq: 1215
mediamtx-rtsp | Content-Base: rtsp://192.168.7.252:8554/mystream/
mediamtx-rtsp | Content-Length: 307
mediamtx-rtsp | Content-Type: application/sdp
mediamtx-rtsp | Server: gortsplib
mediamtx-rtsp |
mediamtx-rtsp | v=0
mediamtx-rtsp | o=- 0 0 IN IP4 127.0.0.1
mediamtx-rtsp | s=HIK Media Server V3.0.17
mediamtx-rtsp | c=IN IP4 0.0.0.0
mediamtx-rtsp | t=0 0
mediamtx-rtsp | m=video 0 RTP/AVP 96
mediamtx-rtsp | a=control:rtsp://192.168.7.252:8554/mystream/trackID=0
mediamtx-rtsp | a=rtpmap:96 H264/90000
mediamtx-rtsp | a=fmtp:96 packetization-mode=1; profile-level-id=42C01E; sprop-parameter-sets=Z0LAHtoCgPaEAAADAAQAAAMA8jxYuoA=,aM4PyA==
mediamtx-rtsp |
mediamtx-rtsp | 2024/01/15 00:11:51 DEB [RTSP] [conn 192.168.10.50:49663] [c->s] SETUP rtsp://192.168.7.252:8554/mystream/trackID=0 RTSP/1.0
mediamtx-rtsp | CSeq: 1216
mediamtx-rtsp | Transport: RTP/AVP;unicast;client_port=4709-4710
mediamtx-rtsp | User-Agent: HIP 2.42.1.55.3
mediamtx-rtsp |
mediamtx-rtsp |
mediamtx-rtsp | 2024/01/15 00:11:51 INF [RTSP] [session e9a1cbe3] created by 192.168.10.50:49663
mediamtx-rtsp | 2024/01/15 00:11:51 DEB [RTSP] [conn 192.168.10.50:49663] [s->c] RTSP/1.0 200 OK
mediamtx-rtsp | CSeq: 1216
mediamtx-rtsp | Server: gortsplib
mediamtx-rtsp | Session: 9adc1c9d7bb74f63859ba4131770a880;timeout=60
mediamtx-rtsp | Transport: RTP/AVP;unicast;client_port=4709-4710;server_port=8000-8001;ssrc=83BDEB70
mediamtx-rtsp |
mediamtx-rtsp |
mediamtx-rtsp | 2024/01/15 00:11:51 DEB [RTSP] [conn 192.168.10.50:49663] [c->s] PLAY rtsp://192.168.7.252:8554/mystream RTSP/1.0
mediamtx-rtsp | CSeq: 1217
mediamtx-rtsp | Range: npt=0.000-
mediamtx-rtsp | Session: 9adc1c9d7bb74f63859ba4131770a880
mediamtx-rtsp | User-Agent: HIP 2.42.1.55.3
mediamtx-rtsp |
mediamtx-rtsp |
mediamtx-rtsp | 2024/01/15 00:11:51 INF [RTSP] [session e9a1cbe3] is reading from path 'mystream', with UDP, 1 track (H264)
mediamtx-rtsp | 2024/01/15 00:11:51 DEB [RTSP] [conn 192.168.10.50:49663] [s->c] RTSP/1.0 200 OK
mediamtx-rtsp | CSeq: 1217
mediamtx-rtsp | RTP-Info: url=rtsp://192.168.7.252:8554/mystream/trackID=0;seq=8205;rtptime=3732410306
mediamtx-rtsp | Server: gortsplib
mediamtx-rtsp | Session: 9adc1c9d7bb74f63859ba4131770a880;timeout=60
mediamtx-rtsp |
mediamtx-rtsp |
mediamtx-rtsp | 2024/01/15 00:11:51 WAR [RTSP] [session e9a1cbe3] rtcp: invalid packet version
aler9 commented 3 months ago

Hello,

Regarding the fact that the connection is closed after GET_PARAMETER requests, it seems to me that the server is responding indeed, and that the connection gets closed after some seconds, for unknown reasons (you cut the log):

2024/01/14 23:56:42 DEB [RTSP] [conn 192.168.10.50:49578] [c->s] GET_PARAMETER rtsp://192.168.7.252:8554/mystream RTSP/1.0
mediamtx-rtsp | CSeq: 1106
mediamtx-rtsp | Session: 27b216cb2e9e4c738328c6974932f6b3
mediamtx-rtsp | User-Agent: HIP 2.42.1.55.3
mediamtx-rtsp |
mediamtx-rtsp |
mediamtx-rtsp | 2024/01/14 23:56:42 DEB [RTSP] [conn 192.168.10.50:49578] [s->c] RTSP/1.0 200 OK
mediamtx-rtsp | CSeq: 1106
mediamtx-rtsp | Content-Type: text/parameters
mediamtx-rtsp | Server: gortsplib
mediamtx-rtsp | Session: 27b216cb2e9e4c738328c6974932f6b3;timeout=60
mediamtx-rtsp |
2024/01/14 23:56:47 INF [RTSP] [conn 192.168.10.50:49578] closed: 

Keep in mind that the player has to send GET_PARAMETER requests BEFORE the timeout, not after, even though i don't think the error is related to GET_PARAMETER.

Regarding error "UDP ports 4709 and 4710 are already assigned to another reader with the same IP", it's a limitation of your player, since it should pick random port (or at least free ports) instead of using fixed ones.

Therefore, both issues seem player-related.

Luis-Sarabando commented 3 months ago

Hey @aler9 thanks for taking the time to look, i would like to get it resolved is there anything i can provide to help further? You mentioned the log was cut, i can provide another pcap file if it helps?

aler9 commented 1 month ago

You mentioned the log was cut, i can provide another pcap file if it helps?

For me it's enough to find out what's the error message after this line:

2024/01/14 23:56:47 INF [RTSP] [conn 192.168.10.50:49578] closed: 

there should be something like:

2024/01/14 23:56:47 INF [RTSP] [conn 192.168.10.50:49578] closed: ERROR MESSAGE

Furthermore: what's the name of the client?