RTSP Camera stream with unsupported AAC mode #4183
Unanswered
AllonisDave
asked this question in
Questions
Replies: 0 comments
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
-
Question
I have a RTSP preview stream coming from AVOIP video encoders. The goal is to ingest the RTSP steam and view via WebRTC.
When I create the stream in the yml
paths:
original:
source: rtsp://192.168.0.211:8554/ch0/0
sourceOnDemand: yes
then the following log is generated.
Notice the line
2025/01/20 18:45:46 ERR [path original] [RTSP source] invalid SDP: media 2 is invalid: unsupported AAC mode: AAC_hbr
I see from looking at other posts here that AAC is being logged as AAC-hbr in those log files.
Are these devices sending invalid sdp descripters?
Has anyone else seen this? Is there work around? Is there a way to proxy around this?
2025/01/20 18:45:46 INF MediaMTX v1.11.1
2025/01/20 18:45:46 INF configuration loaded from /home/allonis/applications/mediamtx/mediamtx.yml
2025/01/20 18:45:46 DEB [path opus] created
2025/01/20 18:45:46 DEB [path original] created
2025/01/20 18:45:46 DEB path manager created
2025/01/20 18:45:46 INF [path opus] runOnInit command started
2025/01/20 18:45:46 INF [RTSP] listener opened on :8554 (TCP), :8000 (UDP/RTP), :8001 (UDP/RTCP)
2025/01/20 18:45:46 INF [RTMP] listener opened on :1935
2025/01/20 18:45:46 INF [HLS] listener opened on :8888
2025/01/20 18:45:46 INF [WebRTC] listener opened on :8889 (HTTP), :8189 (ICE/UDP)
2025/01/20 18:45:46 INF [SRT] listener opened on :8890 (UDP)
2025/01/20 18:45:46 INF [API] listener opened on :9997
2025/01/20 18:45:46 INF [RTSP] [conn [::1]:36408] opened
2025/01/20 18:45:46 DEB [RTSP] [conn [::1]:36408] [c->s] OPTIONS rtsp://localhost:8554/original RTSP/1.0
CSeq: 1
User-Agent: Lavf59.27.100
2025/01/20 18:45:46 DEB [RTSP] [conn [::1]:36408] [s->c] RTSP/1.0 200 OK
CSeq: 1
Public: DESCRIBE, ANNOUNCE, SETUP, PLAY, RECORD, PAUSE, GET_PARAMETER, TEARDOWN
Server: gortsplib
2025/01/20 18:45:46 DEB [RTSP] [conn [::1]:36408] [c->s] DESCRIBE rtsp://localhost:8554/original RTSP/1.0
Accept: application/sdp
CSeq: 2
User-Agent: Lavf59.27.100
2025/01/20 18:45:46 INF [path original] [RTSP source] started on demand
2025/01/20 18:45:46 DEB [path original] [RTSP source] connecting
2025/01/20 18:45:46 DEB [path original] [RTSP source] [c->s] OPTIONS rtsp://192.168.0.211:8554/ch0/0 RTSP/1.0
CSeq: 1
User-Agent: gortsplib
2025/01/20 18:45:46 DEB [path original] [RTSP source] [s->c] RTSP/1.0 200 OK
CSeq: 1
Public: DESCRIBE, SETUP, TEARDOWN, PLAY, PAUSE
2025/01/20 18:45:46 DEB [path original] [RTSP source] [c->s] DESCRIBE rtsp://192.168.0.211:8554/ch0/0 RTSP/1.0
Accept: application/sdp
CSeq: 2
User-Agent: gortsplib
2025/01/20 18:45:46 DEB [path original] [RTSP source] [s->c] RTSP/1.0 200 OK
CSeq: 2
Content-Base: rtsp://192.168.0.211:8554/ch0/0
Content-Length: 742
Content-Type: application/sdp
Date: Sun, Sep 11 2022 10:56:59 GMT
v=0
o=- 1634883673031268 1 IN IP4 127.0.0.1
s=H265 Video, streamed by the LIVE555 Media Server
i=test.265
t=0 0
a=tool:LIVE555 Streaming Media v2016.10.11
a=type:broadcast
a=control:*
a=range:npt=0-
a=x-qt-text-nam:H.265 Video, streamed by the LIVE555 Media Server
a=x-qt-text-inf:test.265
m=video 0 RTP/AVP 96
c=IN IP4 0.0.0.0
b=AS:500
a=rtpmap:96 H265/90000
a=fmtp:96 packetization-mode=1;profile-level-id=4D00D0;sprop-parameter-sets=QgEBAWAAAAMAAAMAAAMAAAMAeKADwIAQ5Y2uSTJrlnAIAAAfSAADqnBA,RAHgdrAmQA==
a=framerate:30.0
a=control:track0
m=audio 0 RTP/AVP 100
a=rtpmap:100 mpeg4-generic/48000/2
a=fmtp:100 streamtype=5; sizeLength=13; indexLength=3; indexDeltaLength=3; mode=AAC_hbr; config=1190
a=control:track1
2025/01/20 18:45:46 ERR [path original] [RTSP source] invalid SDP: media 2 is invalid: unsupported AAC mode: AAC_hbr
2025/01/20 18:45:51 DEB [path original] [RTSP source] connecting
2025/01/20 18:45:51 DEB [path original] [RTSP source] [c->s] OPTIONS rtsp://192.168.0.211:8554/ch0/0 RTSP/1.0
CSeq: 1
User-Agent: gortsplib
2025/01/20 18:45:51 DEB [path original] [RTSP source] [s->c] RTSP/1.0 200 OK
CSeq: 1
Public: DESCRIBE, SETUP, TEARDOWN, PLAY, PAUSE
Beta Was this translation helpful? Give feedback.
All reactions