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

error:media 1 is invalid: invalid SPS: not a SPS #2348

Closed
1 of 13 tasks
491254394 opened this issue Sep 15, 2023 · 9 comments · Fixed by bluenviron/gortsplib#431
Closed
1 of 13 tasks

error:media 1 is invalid: invalid SPS: not a SPS #2348

491254394 opened this issue Sep 15, 2023 · 9 comments · Fixed by bluenviron/gortsplib#431
Labels
bug Something isn't working rtsp

Comments

@491254394
Copy link

491254394 commented Sep 15, 2023

Which version are you using?

v1.0.3

Which operating system are you using?

  • Linux amd64 standard
  • Linux amd64 Docker
  • Linux arm64 standard
  • Linux arm64 Docker
  • Linux arm7 standard
  • Linux arm7 Docker
  • Linux arm6 standard
  • Linux arm6 Docker
  • Windows amd64 standard
  • Windows amd64 Docker (WSL backend)
  • macOS amd64 standard
  • macOS amd64 Docker
  • Other (please describe)

Describe the issue

After changing from 1.0.0 to 1.0.3, found error: error:media 1 is invalid: invalid SPS: not a SPS
Can be used normally at 1.0.0, error reported at 1.0.3,
But the other camera is functioning normally in v1.0.0 and v1.0.3

Describe how to replicate the issue

  1. Configure Camera Address
paths:
  stream6:
    source: rtsp://admin:123456@192.168.2.9:554/media/video2

This rtsp address can be played normally on vlc

  1. start the server

  2. Unable to appear video
    http://127.0.0.1:8889/stream6

  3. log : error:media 1 is invalid: invalid SPS: not a SPS

Did you attach the server logs?

yes

Did you attach a network dump?

no

@491254394
Copy link
Author

this rtsp://admin:123456 @192.168.2.9:554/media/video2 is the secondary stream, and the main stream is H265; If the main stream is changed to H264, it will be normal. But in v1.0.0, both H265 and H264 are normal in the main stream

@491254394
Copy link
Author

Supplemental log

2023/09/15 14:08:52 INF MediaMTX v1.0.3
2023/09/15 14:08:52 DEB [path stream6] created
2023/09/15 14:08:52 DEB path manager created
2023/09/15 14:08:52 INF [path stream6] [RTSP source] started
2023/09/15 14:08:52 DEB [path stream6] [RTSP source] connecting
2023/09/15 14:08:52 INF [RTSP] listener opened on :8554 (TCP), :8000 (UDP/RTP), :8001 (UDP/RTCP)
2023/09/15 14:08:52 INF [WebRTC] listener opened on :8889 (HTTP)
2023/09/15 14:08:52 DEB [path stream6] [RTSP source] c->s OPTIONS rtsp://192.168.2.9:554/media/video2 RTSP/1.0
CSeq: 1
User-Agent: gortsplib


2023/09/15 14:08:52 DEB [path stream6] [RTSP source] s->c RTSP/1.0 200 OK
CSeq: 1
Public: OPTIONS,DESCRIBE,SETUP,PLAY,PAUSE,TEARDOWN,ANNOUNCE,SET_PARAMETER,GET_PARAMETER


2023/09/15 14:08:52 DEB [path stream6] [RTSP source] c->s DESCRIBE rtsp://192.168.2.9:554/media/video2 RTSP/1.0
Accept: application/sdp
CSeq: 2
User-Agent: gortsplib


2023/09/15 14:08:52 DEB [path stream6] [RTSP source] s->c RTSP/1.0 401 ClientUnAuthorized
CSeq: 2
WWW-Authenticate: Digest realm="c479050d9049",nonce="17827c6113f376d916cbd07c6b152ae0", stale="FALSE"


2023/09/15 14:08:52 DEB [path stream6] [RTSP source] c->s DESCRIBE rtsp://192.168.2.9:554/media/video2 RTSP/1.0
Accept: application/sdp
Authorization: Digest username="admin", realm="c479050d9049", nonce="17827c6113f376d916cbd07c6b152ae0", uri="rtsp://192.168.2.9:554/media/video2", response="9d68a257f7ff1e02609c4bd21a42dc9f"
CSeq: 3
User-Agent: gortsplib


2023/09/15 14:08:52 DEB [path stream6] [RTSP source] s->c RTSP/1.0 200 OK
CSeq: 3
Content-Base: rtsp://192.168.2.9:554/media/video2
Content-Length: 539
Content-Type: application/sdp

v=0
o=- 1001 1 IN IP4 192.168.2.9
s=VCP IPC Realtime stream
m=video 0 RTP/AVP 105
c=IN IP4 192.168.2.9
a=control:rtsp://192.168.2.9/media/video2/video
a=rtpmap:105 H264/90000
a=fmtp:105 profile-level-id=010101; packetization-mode=1; sprop-parameter-sets=QgEBAWAAAAMAAAMAAAMAAAMAlqADwIAQ5Y2uSTJrlnAIAAADAAgAAAMAyEA=,RAHgdrAmQA==
a=recvonly
m=application 0 RTP/AVP 107
c=IN IP4 192.168.2.9
a=control:rtsp://192.168.2.9/media/video2/metadata
a=rtpmap:107 vnd.onvif.metadata/90000
a=fmtp:107 DecoderTag=h3c-v3 RTCP=0
a=recvonly

2023/09/15 14:08:52 ERR [path stream6] [RTSP source] media 1 is invalid: invalid SPS: not a SPS
2023/09/15 14:08:57 DEB [path stream6] [RTSP source] connecting
2023/09/15 14:08:57 DEB [path stream6] [RTSP source] c->s OPTIONS rtsp://192.168.2.9:554/media/video2 RTSP/1.0
CSeq: 1
User-Agent: gortsplib


2023/09/15 14:08:57 DEB [path stream6] [RTSP source] s->c RTSP/1.0 200 OK
CSeq: 1
Public: OPTIONS,DESCRIBE,SETUP,PLAY,PAUSE,TEARDOWN,ANNOUNCE,SET_PARAMETER,GET_PARAMETER


2023/09/15 14:08:57 DEB [path stream6] [RTSP source] c->s DESCRIBE rtsp://192.168.2.9:554/media/video2 RTSP/1.0
Accept: application/sdp
CSeq: 2
User-Agent: gortsplib


2023/09/15 14:08:57 DEB [path stream6] [RTSP source] s->c RTSP/1.0 401 ClientUnAuthorized
CSeq: 2
WWW-Authenticate: Digest realm="c479050d9049",nonce="b4d2cbb5d9a6ea12f0a096d3d797dd0f", stale="FALSE"


2023/09/15 14:08:57 DEB [path stream6] [RTSP source] c->s DESCRIBE rtsp://192.168.2.9:554/media/video2 RTSP/1.0
Accept: application/sdp
Authorization: Digest username="admin", realm="c479050d9049", nonce="b4d2cbb5d9a6ea12f0a096d3d797dd0f", uri="rtsp://192.168.2.9:554/media/video2", response="363a5e5f1222559061a3e4901e7c46dd"
CSeq: 3
User-Agent: gortsplib


2023/09/15 14:08:57 DEB [path stream6] [RTSP source] s->c RTSP/1.0 200 OK
CSeq: 3
Content-Base: rtsp://192.168.2.9:554/media/video2
Content-Length: 539
Content-Type: application/sdp

v=0
o=- 1001 1 IN IP4 192.168.2.9
s=VCP IPC Realtime stream
m=video 0 RTP/AVP 105
c=IN IP4 192.168.2.9
a=control:rtsp://192.168.2.9/media/video2/video
a=rtpmap:105 H264/90000
a=fmtp:105 profile-level-id=010101; packetization-mode=1; sprop-parameter-sets=QgEBAWAAAAMAAAMAAAMAAAMAlqADwIAQ5Y2uSTJrlnAIAAADAAgAAAMAyEA=,RAHgdrAmQA==
a=recvonly
m=application 0 RTP/AVP 107
c=IN IP4 192.168.2.9
a=control:rtsp://192.168.2.9/media/video2/metadata
a=rtpmap:107 vnd.onvif.metadata/90000
a=fmtp:107 DecoderTag=h3c-v3 RTCP=0
a=recvonly

2023/09/15 14:08:57 ERR [path stream6] [RTSP source] media 1 is invalid: invalid SPS: not a SPS

@491254394
Copy link
Author

2023/09/15 14:31:34 INF MediaMTX v1.0.3
2023/09/15 14:31:34 DEB [path stream6] created
2023/09/15 14:31:34 DEB path manager created
2023/09/15 14:31:34 INF [path stream6] [RTSP source] started
2023/09/15 14:31:34 DEB [path stream6] [RTSP source] connecting
2023/09/15 14:31:34 INF [RTSP] listener opened on :8554 (TCP), :8000 (UDP/RTP), :8001 (UDP/RTCP)
2023/09/15 14:31:34 INF [WebRTC] listener opened on :8889 (HTTP)
2023/09/15 14:31:34 DEB [path stream6] [RTSP source] c->s OPTIONS rtsp://192.168.2.9:554/media/video2 RTSP/1.0
CSeq: 1
User-Agent: gortsplib


2023/09/15 14:31:34 DEB [path stream6] [RTSP source] s->c RTSP/1.0 200 OK
CSeq: 1
Public: OPTIONS,DESCRIBE,SETUP,PLAY,PAUSE,TEARDOWN,ANNOUNCE,SET_PARAMETER,GET_PARAMETER


2023/09/15 14:31:34 DEB [path stream6] [RTSP source] c->s DESCRIBE rtsp://192.168.2.9:554/media/video2 RTSP/1.0
Accept: application/sdp
CSeq: 2
User-Agent: gortsplib


2023/09/15 14:31:34 DEB [path stream6] [RTSP source] s->c RTSP/1.0 401 ClientUnAuthorized
CSeq: 2
WWW-Authenticate: Digest realm="c479050d9049",nonce="b16fe9a49d9b401d54088b0ce599976f", stale="FALSE"


2023/09/15 14:31:34 DEB [path stream6] [RTSP source] c->s DESCRIBE rtsp://192.168.2.9:554/media/video2 RTSP/1.0
Accept: application/sdp
Authorization: Digest username="admin", realm="c479050d9049", nonce="b16fe9a49d9b401d54088b0ce599976f", uri="rtsp://192.168.2.9:554/media/video2", response="81abbe67400aa3ba21877695643c7949"
CSeq: 3
User-Agent: gortsplib


2023/09/15 14:31:34 DEB [path stream6] [RTSP source] s->c RTSP/1.0 200 OK
CSeq: 3
Content-Base: rtsp://192.168.2.9:554/media/video2
Content-Length: 539
Content-Type: application/sdp

v=0
o=- 1001 1 IN IP4 192.168.2.9
s=VCP IPC Realtime stream
m=video 0 RTP/AVP 105
c=IN IP4 192.168.2.9
a=control:rtsp://192.168.2.9/media/video2/video
a=rtpmap:105 H264/90000
a=fmtp:105 profile-level-id=010101; packetization-mode=1; sprop-parameter-sets=QgEBAWAAAAMAAAMAAAMAAAMAlqADwIAQ5Y2uSTJrlnAIAAADAAgAAAMAyEA=,RAHgdrAmQA==
a=recvonly
m=application 0 RTP/AVP 107
c=IN IP4 192.168.2.9
a=control:rtsp://192.168.2.9/media/video2/metadata
a=rtpmap:107 vnd.onvif.metadata/90000
a=fmtp:107 DecoderTag=h3c-v3 RTCP=0
a=recvonly

2023/09/15 14:31:34 ERR [path stream6] [RTSP source] media 1 is invalid: invalid SPS: not a SPS
2023/09/15 14:31:35 DEB [WebRTC] [conn 127.0.0.1:59672] OPTIONS /stream6/whep
2023/09/15 14:31:35 DEB [WebRTC] [conn 127.0.0.1:59672] [c->s] OPTIONS /stream6/whep HTTP/1.1
Host: 127.0.0.1:8889
Accept: */*
Accept-Encoding: gzip, deflate, br
Accept-Language: zh-CN,zh;q=0.9
Connection: keep-alive
Origin: http://127.0.0.1:8889
Referer: http://127.0.0.1:8889/stream6/
Sec-Ch-Ua: "Chromium";v="15", "Not.A/Brand";v="8"
Sec-Ch-Ua-Mobile: ?0
Sec-Ch-Ua-Platform: "Windows"
Sec-Fetch-Dest: empty
Sec-Fetch-Mode: cors
Sec-Fetch-Site: same-origin
User-Agent: Mozilla/5.0 (Windows NT 10.0; Win64; x64) AppleWebKit/537.36 (KHTML, like Gecko) Chrome/114.0.5735.289 Safari/537.36


2023/09/15 14:31:35 DEB [WebRTC] [conn 127.0.0.1:59672] [s->c] HTTP/1.1 204 No Content
Access-Control-Allow-Credentials: true
Access-Control-Allow-Headers: Authorization, Content-Type, If-Match
Access-Control-Allow-Methods: OPTIONS, GET, POST, PATCH
Access-Control-Allow-Origin: *
Link: <stun:stun.l.google.com:19302>; rel="ice-server"
Server: mediamtx


2023/09/15 14:31:35 DEB [WebRTC] [conn 127.0.0.1:59672] POST /stream6/whep
2023/09/15 14:31:35 DEB [WebRTC] [conn 127.0.0.1:59672] [c->s] POST /stream6/whep HTTP/1.1
Host: 127.0.0.1:8889
Accept: */*
Accept-Encoding: gzip, deflate, br
Accept-Language: zh-CN,zh;q=0.9
Connection: keep-alive
Content-Length: 5365
Content-Type: application/sdp
Origin: http://127.0.0.1:8889
Referer: http://127.0.0.1:8889/stream6/
Sec-Ch-Ua: "Chromium";v="15", "Not.A/Brand";v="8"
Sec-Ch-Ua-Mobile: ?0
Sec-Ch-Ua-Platform: "Windows"
Sec-Fetch-Dest: empty
Sec-Fetch-Mode: cors
Sec-Fetch-Site: same-origin
User-Agent: Mozilla/5.0 (Windows NT 10.0; Win64; x64) AppleWebKit/537.36 (KHTML, like Gecko) Chrome/114.0.5735.289 Safari/537.36

v=0
o=- 1182097980962356046 2 IN IP4 127.0.0.1
s=-
t=0 0
a=group:BUNDLE 0 1
a=extmap-allow-mixed
a=msid-semantic: WMS
m=video 9 UDP/TLS/RTP/SAVPF 96 97 102 103 104 105 106 107 108 109 127 125 39 40 45 46 98 99 100 101 112 113 116 117 118
c=IN IP4 0.0.0.0
a=rtcp:9 IN IP4 0.0.0.0
a=ice-ufrag:uyzX
a=ice-pwd:5POjrHilZ9jz3X8x2e3A9Ij1
a=ice-options:trickle
a=fingerprint:sha-256 64:90:16:3C:C5:AE:6C:C0:C2:8F:B4:4A:40:EA:77:4C:44:F5:68:EC:78:AB:6B:82:98:4E:B2:06:A8:F0:AD:C7
a=setup:actpass
a=mid:0
a=extmap:1 urn:ietf:params:rtp-hdrext:toffset
a=extmap:2 http://www.webrtc.org/experiments/rtp-hdrext/abs-send-time
a=extmap:3 urn:3gpp:video-orientation
a=extmap:4 http://www.ietf.org/id/draft-holmer-rmcat-transport-wide-cc-extensions-01
a=extmap:5 http://www.webrtc.org/experiments/rtp-hdrext/playout-delay
a=extmap:6 http://www.webrtc.org/experiments/rtp-hdrext/video-content-type
a=extmap:7 http://www.webrtc.org/experiments/rtp-hdrext/video-timing
a=extmap:8 http://www.webrtc.org/experiments/rtp-hdrext/color-space
a=extmap:9 urn:ietf:params:rtp-hdrext:sdes:mid
a=extmap:10 urn:ietf:params:rtp-hdrext:sdes:rtp-stream-id
a=extmap:11 urn:ietf:params:rtp-hdrext:sdes:repaired-rtp-stream-id
a=sendrecv
a=msid:- 7653ed9a-5843-4d08-8e66-d2f643095bbf
a=rtcp-mux
a=rtcp-rsize
a=rtpmap:96 VP8/90000
a=rtcp-fb:96 goog-remb
a=rtcp-fb:96 transport-cc
a=rtcp-fb:96 ccm fir
a=rtcp-fb:96 nack
a=rtcp-fb:96 nack pli
a=rtpmap:97 rtx/90000
a=fmtp:97 apt=96
a=rtpmap:102 H264/90000
a=rtcp-fb:102 goog-remb
a=rtcp-fb:102 transport-cc
a=rtcp-fb:102 ccm fir
a=rtcp-fb:102 nack
a=rtcp-fb:102 nack pli
a=fmtp:102 level-asymmetry-allowed=1;packetization-mode=1;profile-level-id=42001f
a=rtpmap:103 rtx/90000
a=fmtp:103 apt=102
a=rtpmap:104 H264/90000
a=rtcp-fb:104 goog-remb
a=rtcp-fb:104 transport-cc
a=rtcp-fb:104 ccm fir
a=rtcp-fb:104 nack
a=rtcp-fb:104 nack pli
a=fmtp:104 level-asymmetry-allowed=1;packetization-mode=0;profile-level-id=42001f
a=rtpmap:105 rtx/90000
a=fmtp:105 apt=104
a=rtpmap:106 H264/90000
a=rtcp-fb:106 goog-remb
a=rtcp-fb:106 transport-cc
a=rtcp-fb:106 ccm fir
a=rtcp-fb:106 nack
a=rtcp-fb:106 nack pli
a=fmtp:106 level-asymmetry-allowed=1;packetization-mode=1;profile-level-id=42e01f
a=rtpmap:107 rtx/90000
a=fmtp:107 apt=106
a=rtpmap:108 H264/90000
a=rtcp-fb:108 goog-remb
a=rtcp-fb:108 transport-cc
a=rtcp-fb:108 ccm fir
a=rtcp-fb:108 nack
a=rtcp-fb:108 nack pli
a=fmtp:108 level-asymmetry-allowed=1;packetization-mode=0;profile-level-id=42e01f
a=rtpmap:109 rtx/90000
a=fmtp:109 apt=108
a=rtpmap:127 H264/90000
a=rtcp-fb:127 goog-remb
a=rtcp-fb:127 transport-cc
a=rtcp-fb:127 ccm fir
a=rtcp-fb:127 nack
a=rtcp-fb:127 nack pli
a=fmtp:127 level-asymmetry-allowed=1;packetization-mode=1;profile-level-id=4d001f
a=rtpmap:125 rtx/90000
a=fmtp:125 apt=127
a=rtpmap:39 H264/90000
a=rtcp-fb:39 goog-remb
a=rtcp-fb:39 transport-cc
a=rtcp-fb:39 ccm fir
a=rtcp-fb:39 nack
a=rtcp-fb:39 nack pli
a=fmtp:39 level-asymmetry-allowed=1;packetization-mode=0;profile-level-id=4d001f
a=rtpmap:40 rtx/90000
a=fmtp:40 apt=39
a=rtpmap:45 AV1/90000
a=rtcp-fb:45 goog-remb
a=rtcp-fb:45 transport-cc
a=rtcp-fb:45 ccm fir
a=rtcp-fb:45 nack
a=rtcp-fb:45 nack pli
a=rtpmap:46 rtx/90000
a=fmtp:46 apt=45
a=rtpmap:98 VP9/90000
a=rtcp-fb:98 goog-remb
a=rtcp-fb:98 transport-cc
a=rtcp-fb:98 ccm fir
a=rtcp-fb:98 nack
a=rtcp-fb:98 nack pli
a=fmtp:98 profile-id=0
a=rtpmap:99 rtx/90000
a=fmtp:99 apt=98
a=rtpmap:100 VP9/90000
a=rtcp-fb:100 goog-remb
a=rtcp-fb:100 transport-cc
a=rtcp-fb:100 ccm fir
a=rtcp-fb:100 nack
a=rtcp-fb:100 nack pli
a=fmtp:100 profile-id=2
a=rtpmap:101 rtx/90000
a=fmtp:101 apt=100
a=rtpmap:112 H264/90000
a=rtcp-fb:112 goog-remb
a=rtcp-fb:112 transport-cc
a=rtcp-fb:112 ccm fir
a=rtcp-fb:112 nack
a=rtcp-fb:112 nack pli
a=fmtp:112 level-asymmetry-allowed=1;packetization-mode=1;profile-level-id=64001f
a=rtpmap:113 rtx/90000
a=fmtp:113 apt=112
a=rtpmap:116 red/90000
a=rtpmap:117 rtx/90000
a=fmtp:117 apt=116
a=rtpmap:118 ulpfec/90000
a=ssrc-group:FID 1967004604 2045726073
a=ssrc:1967004604 cname:ZwcHuawoL397xzmM
a=ssrc:1967004604 msid:- 7653ed9a-5843-4d08-8e66-d2f643095bbf
a=ssrc:2045726073 cname:ZwcHuawoL397xzmM
a=ssrc:2045726073 msid:- 7653ed9a-5843-4d08-8e66-d2f643095bbf
m=audio 9 UDP/TLS/RTP/SAVPF 111 63 9 0 8 13 110 126
c=IN IP4 0.0.0.0
a=rtcp:9 IN IP4 0.0.0.0
a=ice-ufrag:uyzX
a=ice-pwd:5POjrHilZ9jz3X8x2e3A9Ij1
a=ice-options:trickle
a=fingerprint:sha-256 64:90:16:3C:C5:AE:6C:C0:C2:8F:B4:4A:40:EA:77:4C:44:F5:68:EC:78:AB:6B:82:98:4E:B2:06:A8:F0:AD:C7
a=setup:actpass
a=mid:1
a=extmap:14 urn:ietf:params:rtp-hdrext:ssrc-audio-level
a=extmap:2 http://www.webrtc.org/experiments/rtp-hdrext/abs-send-time
a=extmap:4 http://www.ietf.org/id/draft-holmer-rmcat-transport-wide-cc-extensions-01
a=extmap:9 urn:ietf:params:rtp-hdrext:sdes:mid
a=sendrecv
a=msid:- 627f1670-5a65-4aa0-9f64-8f1ba6c5506c
a=rtcp-mux
a=rtpmap:111 opus/48000/2
a=rtcp-fb:111 transport-cc
a=fmtp:111 minptime=10;useinbandfec=1
a=rtpmap:63 red/48000/2
a=fmtp:63 111/111
a=rtpmap:9 G722/8000
a=rtpmap:0 PCMU/8000
a=rtpmap:8 PCMA/8000
a=rtpmap:13 CN/8000
a=rtpmap:110 telephone-event/48000
a=rtpmap:126 telephone-event/8000
a=ssrc:3995563039 cname:ZwcHuawoL397xzmM
a=ssrc:3995563039 msid:- 627f1670-5a65-4aa0-9f64-8f1ba6c5506c

2023/09/15 14:31:35 INF [WebRTC] [session 0c306419] created by 127.0.0.1:59672
2023/09/15 14:31:35 INF [WebRTC] [session 0c306419] closed (no one is publishing to path 'stream6')
2023/09/15 14:31:35 DEB [WebRTC] [conn 127.0.0.1:59672] [s->c] HTTP/1.1 404 Not Found
Access-Control-Allow-Credentials: true
Access-Control-Allow-Origin: *
Content-Type: text/plain
Server: mediamtx

(body of 18 bytes)
2023/09/15 14:31:37 DEB [WebRTC] [conn 127.0.0.1:59672] OPTIONS /stream6/whep
2023/09/15 14:31:37 DEB [WebRTC] [conn 127.0.0.1:59672] [c->s] OPTIONS /stream6/whep HTTP/1.1
Host: 127.0.0.1:8889
Accept: */*
Accept-Encoding: gzip, deflate, br
Accept-Language: zh-CN,zh;q=0.9
Connection: keep-alive
Origin: http://127.0.0.1:8889
Referer: http://127.0.0.1:8889/stream6/
Sec-Ch-Ua: "Chromium";v="15", "Not.A/Brand";v="8"
Sec-Ch-Ua-Mobile: ?0
Sec-Ch-Ua-Platform: "Windows"
Sec-Fetch-Dest: empty
Sec-Fetch-Mode: cors
Sec-Fetch-Site: same-origin
User-Agent: Mozilla/5.0 (Windows NT 10.0; Win64; x64) AppleWebKit/537.36 (KHTML, like Gecko) Chrome/114.0.5735.289 Safari/537.36


2023/09/15 14:31:37 DEB [WebRTC] [conn 127.0.0.1:59672] [s->c] HTTP/1.1 204 No Content
Access-Control-Allow-Credentials: true
Access-Control-Allow-Headers: Authorization, Content-Type, If-Match
Access-Control-Allow-Methods: OPTIONS, GET, POST, PATCH
Access-Control-Allow-Origin: *
Link: <stun:stun.l.google.com:19302>; rel="ice-server"
Server: mediamtx


2023/09/15 14:31:37 DEB [WebRTC] [conn 127.0.0.1:59672] POST /stream6/whep
2023/09/15 14:31:37 DEB [WebRTC] [conn 127.0.0.1:59672] [c->s] POST /stream6/whep HTTP/1.1
Host: 127.0.0.1:8889
Accept: */*
Accept-Encoding: gzip, deflate, br
Accept-Language: zh-CN,zh;q=0.9
Connection: keep-alive
Content-Length: 5365
Content-Type: application/sdp
Origin: http://127.0.0.1:8889
Referer: http://127.0.0.1:8889/stream6/
Sec-Ch-Ua: "Chromium";v="15", "Not.A/Brand";v="8"
Sec-Ch-Ua-Mobile: ?0
Sec-Ch-Ua-Platform: "Windows"
Sec-Fetch-Dest: empty
Sec-Fetch-Mode: cors
Sec-Fetch-Site: same-origin
User-Agent: Mozilla/5.0 (Windows NT 10.0; Win64; x64) AppleWebKit/537.36 (KHTML, like Gecko) Chrome/114.0.5735.289 Safari/537.36

v=0
o=- 6956305877735324954 2 IN IP4 127.0.0.1
s=-
t=0 0
a=group:BUNDLE 0 1
a=extmap-allow-mixed
a=msid-semantic: WMS
m=video 9 UDP/TLS/RTP/SAVPF 96 97 102 103 104 105 106 107 108 109 127 125 39 40 45 46 98 99 100 101 112 113 116 117 118
c=IN IP4 0.0.0.0
a=rtcp:9 IN IP4 0.0.0.0
a=ice-ufrag:OnN8
a=ice-pwd:3rbcqxRmPM1j+nZ9yoq8RCOQ
a=ice-options:trickle
a=fingerprint:sha-256 AF:E1:4B:7F:43:75:92:2E:F2:D7:3B:49:C7:5B:D0:89:69:EC:65:6B:E2:98:8D:3D:23:4D:38:A7:45:50:15:34
a=setup:actpass
a=mid:0
a=extmap:1 urn:ietf:params:rtp-hdrext:toffset
a=extmap:2 http://www.webrtc.org/experiments/rtp-hdrext/abs-send-time
a=extmap:3 urn:3gpp:video-orientation
a=extmap:4 http://www.ietf.org/id/draft-holmer-rmcat-transport-wide-cc-extensions-01
a=extmap:5 http://www.webrtc.org/experiments/rtp-hdrext/playout-delay
a=extmap:6 http://www.webrtc.org/experiments/rtp-hdrext/video-content-type
a=extmap:7 http://www.webrtc.org/experiments/rtp-hdrext/video-timing
a=extmap:8 http://www.webrtc.org/experiments/rtp-hdrext/color-space
a=extmap:9 urn:ietf:params:rtp-hdrext:sdes:mid
a=extmap:10 urn:ietf:params:rtp-hdrext:sdes:rtp-stream-id
a=extmap:11 urn:ietf:params:rtp-hdrext:sdes:repaired-rtp-stream-id
a=sendrecv
a=msid:- eea134f5-bed2-4c24-b117-3cfbd647600d
a=rtcp-mux
a=rtcp-rsize
a=rtpmap:96 VP8/90000
a=rtcp-fb:96 goog-remb
a=rtcp-fb:96 transport-cc
a=rtcp-fb:96 ccm fir
a=rtcp-fb:96 nack
a=rtcp-fb:96 nack pli
a=rtpmap:97 rtx/90000
a=fmtp:97 apt=96
a=rtpmap:102 H264/90000
a=rtcp-fb:102 goog-remb
a=rtcp-fb:102 transport-cc
a=rtcp-fb:102 ccm fir
a=rtcp-fb:102 nack
a=rtcp-fb:102 nack pli
a=fmtp:102 level-asymmetry-allowed=1;packetization-mode=1;profile-level-id=42001f
a=rtpmap:103 rtx/90000
a=fmtp:103 apt=102
a=rtpmap:104 H264/90000
a=rtcp-fb:104 goog-remb
a=rtcp-fb:104 transport-cc
a=rtcp-fb:104 ccm fir
a=rtcp-fb:104 nack
a=rtcp-fb:104 nack pli
a=fmtp:104 level-asymmetry-allowed=1;packetization-mode=0;profile-level-id=42001f
a=rtpmap:105 rtx/90000
a=fmtp:105 apt=104
a=rtpmap:106 H264/90000
a=rtcp-fb:106 goog-remb
a=rtcp-fb:106 transport-cc
a=rtcp-fb:106 ccm fir
a=rtcp-fb:106 nack
a=rtcp-fb:106 nack pli
a=fmtp:106 level-asymmetry-allowed=1;packetization-mode=1;profile-level-id=42e01f
a=rtpmap:107 rtx/90000
a=fmtp:107 apt=106
a=rtpmap:108 H264/90000
a=rtcp-fb:108 goog-remb
a=rtcp-fb:108 transport-cc
a=rtcp-fb:108 ccm fir
a=rtcp-fb:108 nack
a=rtcp-fb:108 nack pli
a=fmtp:108 level-asymmetry-allowed=1;packetization-mode=0;profile-level-id=42e01f
a=rtpmap:109 rtx/90000
a=fmtp:109 apt=108
a=rtpmap:127 H264/90000
a=rtcp-fb:127 goog-remb
a=rtcp-fb:127 transport-cc
a=rtcp-fb:127 ccm fir
a=rtcp-fb:127 nack
a=rtcp-fb:127 nack pli
a=fmtp:127 level-asymmetry-allowed=1;packetization-mode=1;profile-level-id=4d001f
a=rtpmap:125 rtx/90000
a=fmtp:125 apt=127
a=rtpmap:39 H264/90000
a=rtcp-fb:39 goog-remb
a=rtcp-fb:39 transport-cc
a=rtcp-fb:39 ccm fir
a=rtcp-fb:39 nack
a=rtcp-fb:39 nack pli
a=fmtp:39 level-asymmetry-allowed=1;packetization-mode=0;profile-level-id=4d001f
a=rtpmap:40 rtx/90000
a=fmtp:40 apt=39
a=rtpmap:45 AV1/90000
a=rtcp-fb:45 goog-remb
a=rtcp-fb:45 transport-cc
a=rtcp-fb:45 ccm fir
a=rtcp-fb:45 nack
a=rtcp-fb:45 nack pli
a=rtpmap:46 rtx/90000
a=fmtp:46 apt=45
a=rtpmap:98 VP9/90000
a=rtcp-fb:98 goog-remb
a=rtcp-fb:98 transport-cc
a=rtcp-fb:98 ccm fir
a=rtcp-fb:98 nack
a=rtcp-fb:98 nack pli
a=fmtp:98 profile-id=0
a=rtpmap:99 rtx/90000
a=fmtp:99 apt=98
a=rtpmap:100 VP9/90000
a=rtcp-fb:100 goog-remb
a=rtcp-fb:100 transport-cc
a=rtcp-fb:100 ccm fir
a=rtcp-fb:100 nack
a=rtcp-fb:100 nack pli
a=fmtp:100 profile-id=2
a=rtpmap:101 rtx/90000
a=fmtp:101 apt=100
a=rtpmap:112 H264/90000
a=rtcp-fb:112 goog-remb
a=rtcp-fb:112 transport-cc
a=rtcp-fb:112 ccm fir
a=rtcp-fb:112 nack
a=rtcp-fb:112 nack pli
a=fmtp:112 level-asymmetry-allowed=1;packetization-mode=1;profile-level-id=64001f
a=rtpmap:113 rtx/90000
a=fmtp:113 apt=112
a=rtpmap:116 red/90000
a=rtpmap:117 rtx/90000
a=fmtp:117 apt=116
a=rtpmap:118 ulpfec/90000
a=ssrc-group:FID 1979745070 1298193164
a=ssrc:1979745070 cname:ReUCQr2uSc2TR7hT
a=ssrc:1979745070 msid:- eea134f5-bed2-4c24-b117-3cfbd647600d
a=ssrc:1298193164 cname:ReUCQr2uSc2TR7hT
a=ssrc:1298193164 msid:- eea134f5-bed2-4c24-b117-3cfbd647600d
m=audio 9 UDP/TLS/RTP/SAVPF 111 63 9 0 8 13 110 126
c=IN IP4 0.0.0.0
a=rtcp:9 IN IP4 0.0.0.0
a=ice-ufrag:OnN8
a=ice-pwd:3rbcqxRmPM1j+nZ9yoq8RCOQ
a=ice-options:trickle
a=fingerprint:sha-256 AF:E1:4B:7F:43:75:92:2E:F2:D7:3B:49:C7:5B:D0:89:69:EC:65:6B:E2:98:8D:3D:23:4D:38:A7:45:50:15:34
a=setup:actpass
a=mid:1
a=extmap:14 urn:ietf:params:rtp-hdrext:ssrc-audio-level
a=extmap:2 http://www.webrtc.org/experiments/rtp-hdrext/abs-send-time
a=extmap:4 http://www.ietf.org/id/draft-holmer-rmcat-transport-wide-cc-extensions-01
a=extmap:9 urn:ietf:params:rtp-hdrext:sdes:mid
a=sendrecv
a=msid:- f8083acc-e9aa-4c94-be76-4d18725350b1
a=rtcp-mux
a=rtpmap:111 opus/48000/2
a=rtcp-fb:111 transport-cc
a=fmtp:111 minptime=10;useinbandfec=1
a=rtpmap:63 red/48000/2
a=fmtp:63 111/111
a=rtpmap:9 G722/8000
a=rtpmap:0 PCMU/8000
a=rtpmap:8 PCMA/8000
a=rtpmap:13 CN/8000
a=rtpmap:110 telephone-event/48000
a=rtpmap:126 telephone-event/8000
a=ssrc:1969900225 cname:ReUCQr2uSc2TR7hT
a=ssrc:1969900225 msid:- f8083acc-e9aa-4c94-be76-4d18725350b1

2023/09/15 14:31:37 INF [WebRTC] [session de79aaca] created by 127.0.0.1:59672
2023/09/15 14:31:37 DEB [WebRTC] [conn 127.0.0.1:59672] [s->c] HTTP/1.1 404 Not Found
Access-Control-Allow-Credentials: true
Access-Control-Allow-Origin: *
Content-Type: text/plain
Server: mediamtx

(body of 18 bytes)
2023/09/15 14:31:37 INF [WebRTC] [session de79aaca] closed (no one is publishing to path 'stream6')
2023/09/15 14:31:39 DEB [WebRTC] [conn 127.0.0.1:59672] OPTIONS /stream6/whep
2023/09/15 14:31:39 DEB [WebRTC] [conn 127.0.0.1:59672] [c->s] OPTIONS /stream6/whep HTTP/1.1
Host: 127.0.0.1:8889
Accept: */*
Accept-Encoding: gzip, deflate, br
Accept-Language: zh-CN,zh;q=0.9
Connection: keep-alive
Origin: http://127.0.0.1:8889
Referer: http://127.0.0.1:8889/stream6/
Sec-Ch-Ua: "Chromium";v="15", "Not.A/Brand";v="8"
Sec-Ch-Ua-Mobile: ?0
Sec-Ch-Ua-Platform: "Windows"
Sec-Fetch-Dest: empty
Sec-Fetch-Mode: cors
Sec-Fetch-Site: same-origin
User-Agent: Mozilla/5.0 (Windows NT 10.0; Win64; x64) AppleWebKit/537.36 (KHTML, like Gecko) Chrome/114.0.5735.289 Safari/537.36


2023/09/15 14:31:39 DEB [WebRTC] [conn 127.0.0.1:59672] [s->c] HTTP/1.1 204 No Content
Access-Control-Allow-Credentials: true
Access-Control-Allow-Headers: Authorization, Content-Type, If-Match
Access-Control-Allow-Methods: OPTIONS, GET, POST, PATCH
Access-Control-Allow-Origin: *
Link: <stun:stun.l.google.com:19302>; rel="ice-server"
Server: mediamtx


2023/09/15 14:31:39 DEB [WebRTC] [conn 127.0.0.1:59672] POST /stream6/whep
2023/09/15 14:31:39 DEB [WebRTC] [conn 127.0.0.1:59672] [c->s] POST /stream6/whep HTTP/1.1
Host: 127.0.0.1:8889
Accept: */*
Accept-Encoding: gzip, deflate, br
Accept-Language: zh-CN,zh;q=0.9
Connection: keep-alive
Content-Length: 5365
Content-Type: application/sdp
Origin: http://127.0.0.1:8889
Referer: http://127.0.0.1:8889/stream6/
Sec-Ch-Ua: "Chromium";v="15", "Not.A/Brand";v="8"
Sec-Ch-Ua-Mobile: ?0
Sec-Ch-Ua-Platform: "Windows"
Sec-Fetch-Dest: empty
Sec-Fetch-Mode: cors
Sec-Fetch-Site: same-origin
User-Agent: Mozilla/5.0 (Windows NT 10.0; Win64; x64) AppleWebKit/537.36 (KHTML, like Gecko) Chrome/114.0.5735.289 Safari/537.36

v=0
o=- 3607876232532803695 2 IN IP4 127.0.0.1
s=-
t=0 0
a=group:BUNDLE 0 1
a=extmap-allow-mixed
a=msid-semantic: WMS
m=video 9 UDP/TLS/RTP/SAVPF 96 97 102 103 104 105 106 107 108 109 127 125 39 40 45 46 98 99 100 101 112 113 116 117 118
c=IN IP4 0.0.0.0
a=rtcp:9 IN IP4 0.0.0.0
a=ice-ufrag:9W8l
a=ice-pwd:UC3GlmbnT9OCslCV14TRgeYW
a=ice-options:trickle
a=fingerprint:sha-256 24:17:0C:5C:7C:00:F7:B8:9C:D0:DD:68:38:7E:51:2D:20:A7:F3:BB:7F:C9:0B:DD:2E:68:D3:CF:31:DB:9E:6B
a=setup:actpass
a=mid:0
a=extmap:1 urn:ietf:params:rtp-hdrext:toffset
a=extmap:2 http://www.webrtc.org/experiments/rtp-hdrext/abs-send-time
a=extmap:3 urn:3gpp:video-orientation
a=extmap:4 http://www.ietf.org/id/draft-holmer-rmcat-transport-wide-cc-extensions-01
a=extmap:5 http://www.webrtc.org/experiments/rtp-hdrext/playout-delay
a=extmap:6 http://www.webrtc.org/experiments/rtp-hdrext/video-content-type
a=extmap:7 http://www.webrtc.org/experiments/rtp-hdrext/video-timing
a=extmap:8 http://www.webrtc.org/experiments/rtp-hdrext/color-space
a=extmap:9 urn:ietf:params:rtp-hdrext:sdes:mid
a=extmap:10 urn:ietf:params:rtp-hdrext:sdes:rtp-stream-id
a=extmap:11 urn:ietf:params:rtp-hdrext:sdes:repaired-rtp-stream-id
a=sendrecv
a=msid:- fad56b36-8132-416e-a08c-3d5e7a56e6cd
a=rtcp-mux
a=rtcp-rsize
a=rtpmap:96 VP8/90000
a=rtcp-fb:96 goog-remb
a=rtcp-fb:96 transport-cc
a=rtcp-fb:96 ccm fir
a=rtcp-fb:96 nack
a=rtcp-fb:96 nack pli
a=rtpmap:97 rtx/90000
a=fmtp:97 apt=96
a=rtpmap:102 H264/90000
a=rtcp-fb:102 goog-remb
a=rtcp-fb:102 transport-cc
a=rtcp-fb:102 ccm fir
a=rtcp-fb:102 nack
a=rtcp-fb:102 nack pli
a=fmtp:102 level-asymmetry-allowed=1;packetization-mode=1;profile-level-id=42001f
a=rtpmap:103 rtx/90000
a=fmtp:103 apt=102
a=rtpmap:104 H264/90000
a=rtcp-fb:104 goog-remb
a=rtcp-fb:104 transport-cc
a=rtcp-fb:104 ccm fir
a=rtcp-fb:104 nack
a=rtcp-fb:104 nack pli
a=fmtp:104 level-asymmetry-allowed=1;packetization-mode=0;profile-level-id=42001f
a=rtpmap:105 rtx/90000
a=fmtp:105 apt=104
a=rtpmap:106 H264/90000
a=rtcp-fb:106 goog-remb
a=rtcp-fb:106 transport-cc
a=rtcp-fb:106 ccm fir
a=rtcp-fb:106 nack
a=rtcp-fb:106 nack pli
a=fmtp:106 level-asymmetry-allowed=1;packetization-mode=1;profile-level-id=42e01f
a=rtpmap:107 rtx/90000
a=fmtp:107 apt=106
a=rtpmap:108 H264/90000
a=rtcp-fb:108 goog-remb
a=rtcp-fb:108 transport-cc
a=rtcp-fb:108 ccm fir
a=rtcp-fb:108 nack
a=rtcp-fb:108 nack pli
a=fmtp:108 level-asymmetry-allowed=1;packetization-mode=0;profile-level-id=42e01f
a=rtpmap:109 rtx/90000
a=fmtp:109 apt=108
a=rtpmap:127 H264/90000
a=rtcp-fb:127 goog-remb
a=rtcp-fb:127 transport-cc
a=rtcp-fb:127 ccm fir
a=rtcp-fb:127 nack
a=rtcp-fb:127 nack pli
a=fmtp:127 level-asymmetry-allowed=1;packetization-mode=1;profile-level-id=4d001f
a=rtpmap:125 rtx/90000
a=fmtp:125 apt=127
a=rtpmap:39 H264/90000
a=rtcp-fb:39 goog-remb
a=rtcp-fb:39 transport-cc
a=rtcp-fb:39 ccm fir
a=rtcp-fb:39 nack
a=rtcp-fb:39 nack pli
a=fmtp:39 level-asymmetry-allowed=1;packetization-mode=0;profile-level-id=4d001f
a=rtpmap:40 rtx/90000
a=fmtp:40 apt=39
a=rtpmap:45 AV1/90000
a=rtcp-fb:45 goog-remb
a=rtcp-fb:45 transport-cc
a=rtcp-fb:45 ccm fir
a=rtcp-fb:45 nack
a=rtcp-fb:45 nack pli
a=rtpmap:46 rtx/90000
a=fmtp:46 apt=45
a=rtpmap:98 VP9/90000
a=rtcp-fb:98 goog-remb
a=rtcp-fb:98 transport-cc
a=rtcp-fb:98 ccm fir
a=rtcp-fb:98 nack
a=rtcp-fb:98 nack pli
a=fmtp:98 profile-id=0
a=rtpmap:99 rtx/90000
a=fmtp:99 apt=98
a=rtpmap:100 VP9/90000
a=rtcp-fb:100 goog-remb
a=rtcp-fb:100 transport-cc
a=rtcp-fb:100 ccm fir
a=rtcp-fb:100 nack
a=rtcp-fb:100 nack pli
a=fmtp:100 profile-id=2
a=rtpmap:101 rtx/90000
a=fmtp:101 apt=100
a=rtpmap:112 H264/90000
a=rtcp-fb:112 goog-remb
a=rtcp-fb:112 transport-cc
a=rtcp-fb:112 ccm fir
a=rtcp-fb:112 nack
a=rtcp-fb:112 nack pli
a=fmtp:112 level-asymmetry-allowed=1;packetization-mode=1;profile-level-id=64001f
a=rtpmap:113 rtx/90000
a=fmtp:113 apt=112
a=rtpmap:116 red/90000
a=rtpmap:117 rtx/90000
a=fmtp:117 apt=116
a=rtpmap:118 ulpfec/90000
a=ssrc-group:FID 1399551277 3540824394
a=ssrc:1399551277 cname:cGkahhhT9uX75N8D
a=ssrc:1399551277 msid:- fad56b36-8132-416e-a08c-3d5e7a56e6cd
a=ssrc:3540824394 cname:cGkahhhT9uX75N8D
a=ssrc:3540824394 msid:- fad56b36-8132-416e-a08c-3d5e7a56e6cd
m=audio 9 UDP/TLS/RTP/SAVPF 111 63 9 0 8 13 110 126
c=IN IP4 0.0.0.0
a=rtcp:9 IN IP4 0.0.0.0
a=ice-ufrag:9W8l
a=ice-pwd:UC3GlmbnT9OCslCV14TRgeYW
a=ice-options:trickle
a=fingerprint:sha-256 24:17:0C:5C:7C:00:F7:B8:9C:D0:DD:68:38:7E:51:2D:20:A7:F3:BB:7F:C9:0B:DD:2E:68:D3:CF:31:DB:9E:6B
a=setup:actpass
a=mid:1
a=extmap:14 urn:ietf:params:rtp-hdrext:ssrc-audio-level
a=extmap:2 http://www.webrtc.org/experiments/rtp-hdrext/abs-send-time
a=extmap:4 http://www.ietf.org/id/draft-holmer-rmcat-transport-wide-cc-extensions-01
a=extmap:9 urn:ietf:params:rtp-hdrext:sdes:mid
a=sendrecv
a=msid:- b755755c-7d86-4a28-89f0-ea63b269c6a2
a=rtcp-mux
a=rtpmap:111 opus/48000/2
a=rtcp-fb:111 transport-cc
a=fmtp:111 minptime=10;useinbandfec=1
a=rtpmap:63 red/48000/2
a=fmtp:63 111/111
a=rtpmap:9 G722/8000
a=rtpmap:0 PCMU/8000
a=rtpmap:8 PCMA/8000
a=rtpmap:13 CN/8000
a=rtpmap:110 telephone-event/48000
a=rtpmap:126 telephone-event/8000
a=ssrc:4257430482 cname:cGkahhhT9uX75N8D
a=ssrc:4257430482 msid:- b755755c-7d86-4a28-89f0-ea63b269c6a2

2023/09/15 14:31:39 INF [WebRTC] [session 4d03736c] created by 127.0.0.1:59672
2023/09/15 14:31:39 INF [WebRTC] [session 4d03736c] closed (no one is publishing to path 'stream6')
2023/09/15 14:31:39 DEB [WebRTC] [conn 127.0.0.1:59672] [s->c] HTTP/1.1 404 Not Found
Access-Control-Allow-Credentials: true
Access-Control-Allow-Origin: *
Content-Type: text/plain
Server: mediamtx

(body of 18 bytes)
2023/09/15 14:31:39 DEB [path stream6] [RTSP source] connecting
2023/09/15 14:31:39 DEB [path stream6] [RTSP source] c->s OPTIONS rtsp://192.168.2.9:554/media/video2 RTSP/1.0
CSeq: 1
User-Agent: gortsplib


2023/09/15 14:31:39 DEB [path stream6] [RTSP source] s->c RTSP/1.0 200 OK
CSeq: 1
Public: OPTIONS,DESCRIBE,SETUP,PLAY,PAUSE,TEARDOWN,ANNOUNCE,SET_PARAMETER,GET_PARAMETER


2023/09/15 14:31:39 DEB [path stream6] [RTSP source] c->s DESCRIBE rtsp://192.168.2.9:554/media/video2 RTSP/1.0
Accept: application/sdp
CSeq: 2
User-Agent: gortsplib


2023/09/15 14:31:39 DEB [path stream6] [RTSP source] s->c RTSP/1.0 401 ClientUnAuthorized
CSeq: 2
WWW-Authenticate: Digest realm="c479050d9049",nonce="a82c2a12a6305568539be74f09617997", stale="FALSE"


2023/09/15 14:31:39 DEB [path stream6] [RTSP source] c->s DESCRIBE rtsp://192.168.2.9:554/media/video2 RTSP/1.0
Accept: application/sdp
Authorization: Digest username="admin", realm="c479050d9049", nonce="a82c2a12a6305568539be74f09617997", uri="rtsp://192.168.2.9:554/media/video2", response="f4c1a57d53f675250dba0de77c0fd2f2"
CSeq: 3
User-Agent: gortsplib


2023/09/15 14:31:39 DEB [path stream6] [RTSP source] s->c RTSP/1.0 200 OK
CSeq: 3
Content-Base: rtsp://192.168.2.9:554/media/video2
Content-Length: 539
Content-Type: application/sdp

v=0
o=- 1001 1 IN IP4 192.168.2.9
s=VCP IPC Realtime stream
m=video 0 RTP/AVP 105
c=IN IP4 192.168.2.9
a=control:rtsp://192.168.2.9/media/video2/video
a=rtpmap:105 H264/90000
a=fmtp:105 profile-level-id=010101; packetization-mode=1; sprop-parameter-sets=QgEBAWAAAAMAAAMAAAMAAAMAlqADwIAQ5Y2uSTJrlnAIAAADAAgAAAMAyEA=,RAHgdrAmQA==
a=recvonly
m=application 0 RTP/AVP 107
c=IN IP4 192.168.2.9
a=control:rtsp://192.168.2.9/media/video2/metadata
a=rtpmap:107 vnd.onvif.metadata/90000
a=fmtp:107 DecoderTag=h3c-v3 RTCP=0
a=recvonly

2023/09/15 14:31:39 ERR [path stream6] [RTSP source] media 1 is invalid: invalid SPS: not a SPS

@aler9 aler9 added bug Something isn't working rtsp labels Sep 15, 2023
@KanyonKris
Copy link

Sounds similar to an issue I reprted - bluenviron/gortsplib#402
I believe SPS checking will be turned off in the next release.

@491254394
Copy link
Author

Sounds similar to an issue I reprted - bluenviron/gortsplib#402 I believe SPS checking will be turned off in the next release.

Yesterday, mediamtx1.1.0 was released, and the update log shows that the issue you submitted has been resolved.
I tried but there was still a problem, and the error log changed to 'invalid SDP: media 1 is invalid: invalid SPS: not a SPS'.
The author has marked this issue as a bug and should resolve it soon.

@491254394
Copy link
Author

Update to v1.1.0, log:invalid SDP: media 1 is invalid: invalid SPS: not a SPS

2023/09/18 10:56:40 INF MediaMTX v1.1.0
2023/09/18 10:56:40 DEB [path stream6] created
2023/09/18 10:56:40 DEB path manager created
2023/09/18 10:56:40 INF [path stream6] [RTSP source] started
2023/09/18 10:56:40 INF [RTSP] listener opened on :8554 (TCP), :8000 (UDP/RTP), :8001 (UDP/RTCP)
2023/09/18 10:56:40 DEB [path stream6] [RTSP source] connecting
2023/09/18 10:56:40 INF [WebRTC] listener opened on :8889 (HTTP)
2023/09/18 10:56:40 INF [API] listener opened on 127.0.0.1:9997
2023/09/18 10:56:40 DEB [path stream6] [RTSP source] [c->s] OPTIONS rtsp://192.168.2.9:554/media/video2 RTSP/1.0

CSeq: 1

User-Agent: gortsplib




2023/09/18 10:56:40 DEB [path stream6] [RTSP source] [s->c] RTSP/1.0 200 OK

CSeq: 1

Public: OPTIONS,DESCRIBE,SETUP,PLAY,PAUSE,TEARDOWN,ANNOUNCE,SET_PARAMETER,GET_PARAMETER




2023/09/18 10:56:40 DEB [path stream6] [RTSP source] [c->s] DESCRIBE rtsp://192.168.2.9:554/media/video2 RTSP/1.0

Accept: application/sdp

CSeq: 2

User-Agent: gortsplib




2023/09/18 10:56:40 DEB [path stream6] [RTSP source] [s->c] RTSP/1.0 401 ClientUnAuthorized

CSeq: 2

WWW-Authenticate: Digest realm="c479050d9049",nonce="ae239ad9b3eb8e5a526a26d7c1f9bf8c", stale="FALSE"




2023/09/18 10:56:40 DEB [path stream6] [RTSP source] [c->s] DESCRIBE rtsp://192.168.2.9:554/media/video2 RTSP/1.0

Accept: application/sdp

Authorization: Digest username="admin", realm="c479050d9049", nonce="ae239ad9b3eb8e5a526a26d7c1f9bf8c", uri="rtsp://192.168.2.9:554/media/video2", response="61e6fe8709629e8f7b052b312063eddd"

CSeq: 3

User-Agent: gortsplib




2023/09/18 10:56:40 DEB [path stream6] [RTSP source] [s->c] RTSP/1.0 200 OK

CSeq: 3

Content-Base: rtsp://192.168.2.9:554/media/video2

Content-Length: 539

Content-Type: application/sdp



v=0

o=- 1001 1 IN IP4 192.168.2.9

s=VCP IPC Realtime stream

m=video 0 RTP/AVP 105

c=IN IP4 192.168.2.9

a=control:rtsp://192.168.2.9/media/video2/video

a=rtpmap:105 H264/90000

a=fmtp:105 profile-level-id=010101; packetization-mode=1; sprop-parameter-sets=QgEBAWAAAAMAAAMAAAMAAAMAlqADwIAQ5Y2uSTJrlnAIAAADAAgAAAMAyEA=,RAHgdrAmQA==

a=recvonly

m=application 0 RTP/AVP 107

c=IN IP4 192.168.2.9

a=control:rtsp://192.168.2.9/media/video2/metadata

a=rtpmap:107 vnd.onvif.metadata/90000

a=fmtp:107 DecoderTag=h3c-v3 RTCP=0

a=recvonly


2023/09/18 10:56:40 ERR [path stream6] [RTSP source] invalid SDP: media 1 is invalid: invalid SPS: not a SPS
2023/09/18 10:56:45 DEB [path stream6] [RTSP source] connecting
2023/09/18 10:56:45 DEB [path stream6] [RTSP source] [c->s] OPTIONS rtsp://192.168.2.9:554/media/video2 RTSP/1.0

CSeq: 1

User-Agent: gortsplib




2023/09/18 10:56:45 DEB [path stream6] [RTSP source] [s->c] RTSP/1.0 200 OK

CSeq: 1

Public: OPTIONS,DESCRIBE,SETUP,PLAY,PAUSE,TEARDOWN,ANNOUNCE,SET_PARAMETER,GET_PARAMETER




2023/09/18 10:56:45 DEB [path stream6] [RTSP source] [c->s] DESCRIBE rtsp://192.168.2.9:554/media/video2 RTSP/1.0

Accept: application/sdp

CSeq: 2

User-Agent: gortsplib




2023/09/18 10:56:45 DEB [path stream6] [RTSP source] [s->c] RTSP/1.0 401 ClientUnAuthorized

CSeq: 2

WWW-Authenticate: Digest realm="c479050d9049",nonce="a593e44d47196df9281ac0f44da638ec", stale="FALSE"




2023/09/18 10:56:45 DEB [path stream6] [RTSP source] [c->s] DESCRIBE rtsp://192.168.2.9:554/media/video2 RTSP/1.0

Accept: application/sdp

Authorization: Digest username="admin", realm="c479050d9049", nonce="a593e44d47196df9281ac0f44da638ec", uri="rtsp://192.168.2.9:554/media/video2", response="a1ad4571ab099c94f4958ae2bd7f92dc"

CSeq: 3

User-Agent: gortsplib




2023/09/18 10:56:45 DEB [path stream6] [RTSP source] [s->c] RTSP/1.0 200 OK

CSeq: 3

Content-Base: rtsp://192.168.2.9:554/media/video2

Content-Length: 539

Content-Type: application/sdp



v=0

o=- 1001 1 IN IP4 192.168.2.9

s=VCP IPC Realtime stream

m=video 0 RTP/AVP 105

c=IN IP4 192.168.2.9

a=control:rtsp://192.168.2.9/media/video2/video

a=rtpmap:105 H264/90000

a=fmtp:105 profile-level-id=010101; packetization-mode=1; sprop-parameter-sets=QgEBAWAAAAMAAAMAAAMAAAMAlqADwIAQ5Y2uSTJrlnAIAAADAAgAAAMAyEA=,RAHgdrAmQA==

a=recvonly

m=application 0 RTP/AVP 107

c=IN IP4 192.168.2.9

a=control:rtsp://192.168.2.9/media/video2/metadata

a=rtpmap:107 vnd.onvif.metadata/90000

a=fmtp:107 DecoderTag=h3c-v3 RTCP=0

a=recvonly

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

aler9 commented Sep 24, 2023

Fixed in v1.1.1

@491254394
Copy link
Author

Fixed in v1.1.1

Thank you very much for your reply and timely fixed,Tested successfully

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 29, 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.

3 participants