mediamtx: Reolink RLC-520A: HLS.js fails to play stream (aac channel element not allocated?)

Which version are you using?

v0.17.17

Which operating system are you using?

Linux arm7 standard

Describe the issue

Iโ€™d like to embed the stream of my Reolink RLC-520A camera into my home automation dashboard using rtsp-simple-server and HLS.js. This, however, fails. HLS.js is unable to display anything. Occassionaly, a single frame can be seen after retrying many times. VLC player, however, is able to display the stream without any issues.

The camera has multiple channels, e.g. main and sub (used here). All of them are affected.

I suspect that ffprobe reveals the cause or at least a component of the problem:

[aac @ 000001c62cb2d8c0] channel element 3.0 is not allocated

and

[hls @ 000001c62caba980] Could not find codec parameters for stream 1 (Audio: aac (LC) ([15][0][0][0] / 0x000F), mono, fltp): unspecified sample rate

Hereโ€™s my (entire) config file:

paths:
  63_low:
    source: rtsp://xxx:xxx@xxx:554/h264Preview_01_sub
    sourceOnDemand: yes

Describe how to replicate the issue

  1. start the server
  2. publish with
  63_low:
    source: rtsp://xxx:xxx@xxx:554/h264Preview_01_sub
    sourceOnDemand: yes
  1. attemt to stream via HLS.js: http://xxx:8888/63_low/index.m3u8

ffprobe output (raw/non-rtsp-simple-server stream)

Input #0, rtsp, from 'rtsp://xxx:xxx@xxx:554/h264Preview_01_sub':
  Metadata:
    title           : Session streamed by "preview"
    comment         : h264Preview_01_sub
  Duration: N/A, start: 0.047125, bitrate: N/A
  Stream #0:0: Video: h264 (High), yuv420p(progressive), 640x480, 10 tbr, 90k tbn, 180k tbc
  Stream #0:1: Audio: aac (LC), 16000 Hz, mono, fltp

ffprobe output (rtsp-simple-server stream)

Click to expand!
[hls @ 000001c62caba980] Opening 'http://xxx:8888/63_low/stream.m3u8' for reading
[hls @ 000001c62caba980] Skip ('#EXT-X-VERSION:3')
[hls @ 000001c62caba980] Skip ('#EXT-X-ALLOW-CACHE:NO')
[hls @ 000001c62caba980] Opening 'http://xxx:8888/63_low/1645871751.ts' for reading
[hls @ 000001c62caba980] Opening 'http://xxx:8888/63_low/1645871755.ts' for reading
[aac @ 000001c62cb2d8c0] Multiple frames in a packet.
[aac @ 000001c62cb2d8c0] channel element 3.0 is not allocated
[mpegts @ 000001c62cadb440] Invalid timestamps stream=0, pts=80210007, dts=80246009, size=12854
[aac @ 000001c62cb2d8c0] channel element 3.0 is not allocated
    Last message repeated 1 times
[mpegts @ 000001c62cadb440] Invalid timestamps stream=0, pts=80219004, dts=80255007, size=3063
[hls @ 000001c62caba980] Invalid timestamps stream=0, pts=80210007, dts=80246009, size=12854
[aac @ 000001c62cb2d8c0] channel element 3.0 is not allocated
[mpegts @ 000001c62cadb440] Invalid timestamps stream=0, pts=80228002, dts=80264004, size=3041
[hls @ 000001c62caba980] Invalid timestamps stream=0, pts=80219004, dts=80255007, size=3063
[aac @ 000001c62cb2d8c0] channel element 3.0 is not allocated
    Last message repeated 1 times
[mpegts @ 000001c62cadb440] Invalid timestamps stream=0, pts=80236999, dts=80273002, size=2992
[hls @ 000001c62caba980] Invalid timestamps stream=0, pts=80228002, dts=80264004, size=3041
[aac @ 000001c62cb2d8c0] channel element 3.0 is not allocated
    Last message repeated 1 times
[mpegts @ 000001c62cadb440] Invalid timestamps stream=0, pts=80245996, dts=80281999, size=2996
[hls @ 000001c62caba980] Invalid timestamps stream=0, pts=80236999, dts=80273002, size=2992
[aac @ 000001c62cb2d8c0] channel element 3.0 is not allocated
[mpegts @ 000001c62cadb440] Invalid timestamps stream=0, pts=80254994, dts=80290996, size=2929
[hls @ 000001c62caba980] Invalid timestamps stream=0, pts=80245996, dts=80281999, size=2996
[aac @ 000001c62cb2d8c0] channel element 3.0 is not allocated
    Last message repeated 1 times
[mpegts @ 000001c62cadb440] Invalid timestamps stream=0, pts=80263992, dts=80299994, size=3063
[hls @ 000001c62caba980] Invalid timestamps stream=0, pts=80254994, dts=80290996, size=2929
[aac @ 000001c62cb2d8c0] channel element 3.0 is not allocated
    Last message repeated 1 times
[mpegts @ 000001c62cadb440] Invalid timestamps stream=0, pts=80272989, dts=80308992, size=2989
[hls @ 000001c62caba980] Invalid timestamps stream=0, pts=80263992, dts=80299994, size=3063
[aac @ 000001c62cb2d8c0] channel element 3.0 is not allocated
[mpegts @ 000001c62cadb440] Invalid timestamps stream=0, pts=80281986, dts=80317989, size=2912
[hls @ 000001c62caba980] Invalid timestamps stream=0, pts=80272989, dts=80308992, size=2989
[aac @ 000001c62cb2d8c0] channel element 3.0 is not allocated
    Last message repeated 1 times
[mpegts @ 000001c62cadb440] Invalid timestamps stream=0, pts=80290983, dts=80326986, size=3027
[hls @ 000001c62caba980] Invalid timestamps stream=0, pts=80281986, dts=80317989, size=2912
[aac @ 000001c62cb2d8c0] channel element 3.0 is not allocated
[mpegts @ 000001c62cadb440] Invalid timestamps stream=0, pts=80299980, dts=80335983, size=3059
[hls @ 000001c62caba980] Invalid timestamps stream=0, pts=80290983, dts=80326986, size=3027
[aac @ 000001c62cb2d8c0] channel element 3.0 is not allocated
    Last message repeated 1 times
[mpegts @ 000001c62cadb440] Invalid timestamps stream=0, pts=80308978, dts=80344980, size=2909
[hls @ 000001c62caba980] Invalid timestamps stream=0, pts=80299980, dts=80335983, size=3059
[aac @ 000001c62cb2d8c0] channel element 3.0 is not allocated
[mpegts @ 000001c62cadb440] Invalid timestamps stream=0, pts=80317976, dts=80353978, size=3049
[hls @ 000001c62caba980] Invalid timestamps stream=0, pts=80308978, dts=80344980, size=2909
[aac @ 000001c62cb2d8c0] channel element 3.0 is not allocated
    Last message repeated 1 times
[mpegts @ 000001c62cadb440] Invalid timestamps stream=0, pts=80326973, dts=80362976, size=3083
[hls @ 000001c62caba980] Invalid timestamps stream=0, pts=80317976, dts=80353978, size=3049
[aac @ 000001c62cb2d8c0] channel element 3.0 is not allocated
    Last message repeated 1 times
[mpegts @ 000001c62cadb440] Invalid timestamps stream=0, pts=80335971, dts=80371973, size=3033
[hls @ 000001c62caba980] Invalid timestamps stream=0, pts=80326973, dts=80362976, size=3083
[aac @ 000001c62cb2d8c0] channel element 3.0 is not allocated
[mpegts @ 000001c62cadb440] Invalid timestamps stream=0, pts=80344968, dts=80380971, size=3015
[hls @ 000001c62caba980] Invalid timestamps stream=0, pts=80335971, dts=80371973, size=3033
[aac @ 000001c62cb2d8c0] channel element 3.0 is not allocated
    Last message repeated 1 times
[mpegts @ 000001c62cadb440] Invalid timestamps stream=0, pts=80353966, dts=80389968, size=3007
[hls @ 000001c62caba980] Invalid timestamps stream=0, pts=80344968, dts=80380971, size=3015
[mpegts @ 000001c62cadb440] Invalid timestamps stream=0, pts=80362963, dts=80398966, size=3117
[hls @ 000001c62caba980] Invalid timestamps stream=0, pts=80353966, dts=80389968, size=3007
[aac @ 000001c62cb2d8c0] channel element 3.0 is not allocated
    Last message repeated 1 times
[mpegts @ 000001c62cadb440] Invalid timestamps stream=0, pts=80371962, dts=80407963, size=2943
[hls @ 000001c62caba980] Invalid timestamps stream=0, pts=80362963, dts=80398966, size=3117
[aac @ 000001c62cb2d8c0] channel element 3.0 is not allocated
[mpegts @ 000001c62cadb440] Invalid timestamps stream=0, pts=80380958, dts=80416962, size=3031
[hls @ 000001c62caba980] Invalid timestamps stream=0, pts=80371962, dts=80407963, size=2943
[aac @ 000001c62cb2d8c0] channel element 3.0 is not allocated
    Last message repeated 1 times
[mpegts @ 000001c62cadb440] Invalid timestamps stream=0, pts=80389955, dts=80425958, size=3010
[hls @ 000001c62caba980] Invalid timestamps stream=0, pts=80380958, dts=80416962, size=3031
[aac @ 000001c62cb2d8c0] channel element 3.0 is not allocated
    Last message repeated 1 times
[mpegts @ 000001c62cadb440] Invalid timestamps stream=0, pts=80398953, dts=80434955, size=3084
[hls @ 000001c62caba980] Invalid timestamps stream=0, pts=80389955, dts=80425958, size=3010
[aac @ 000001c62cb2d8c0] channel element 3.0 is not allocated
[mpegts @ 000001c62cadb440] Invalid timestamps stream=0, pts=80407951, dts=80443953, size=3056
[hls @ 000001c62caba980] Invalid timestamps stream=0, pts=80398953, dts=80434955, size=3084
[aac @ 000001c62cb2d8c0] channel element 3.0 is not allocated
    Last message repeated 1 times
[mpegts @ 000001c62cadb440] Invalid timestamps stream=0, pts=80416948, dts=80452951, size=3021
[hls @ 000001c62caba980] Invalid timestamps stream=0, pts=80407951, dts=80443953, size=3056
[aac @ 000001c62cb2d8c0] channel element 3.0 is not allocated
[mpegts @ 000001c62cadb440] Invalid timestamps stream=0, pts=80425945, dts=80461948, size=3030
[hls @ 000001c62caba980] Invalid timestamps stream=0, pts=80416948, dts=80452951, size=3021
[aac @ 000001c62cb2d8c0] channel element 3.0 is not allocated
    Last message repeated 1 times
[mpegts @ 000001c62cadb440] Invalid timestamps stream=0, pts=80434944, dts=80470945, size=3067
[hls @ 000001c62caba980] Invalid timestamps stream=0, pts=80425945, dts=80461948, size=3030
[aac @ 000001c62cb2d8c0] channel element 3.0 is not allocated
    Last message repeated 1 times
[mpegts @ 000001c62cadb440] Invalid timestamps stream=0, pts=80443942, dts=80479944, size=3007
[hls @ 000001c62caba980] Invalid timestamps stream=0, pts=80434944, dts=80470945, size=3067
[aac @ 000001c62cb2d8c0] channel element 3.0 is not allocated
[mpegts @ 000001c62cadb440] Invalid timestamps stream=0, pts=80452938, dts=80488942, size=3076
[hls @ 000001c62caba980] Invalid timestamps stream=0, pts=80443942, dts=80479944, size=3007
[aac @ 000001c62cb2d8c0] channel element 3.0 is not allocated
    Last message repeated 1 times
[mpegts @ 000001c62cadb440] Invalid timestamps stream=0, pts=80461935, dts=80497938, size=3064
[hls @ 000001c62caba980] Invalid timestamps stream=0, pts=80452938, dts=80488942, size=3076
[aac @ 000001c62cb2d8c0] channel element 3.0 is not allocated
    Last message repeated 1 times
[mpegts @ 000001c62cadb440] Invalid timestamps stream=0, pts=80470933, dts=80506935, size=3048
[hls @ 000001c62caba980] Invalid timestamps stream=0, pts=80461935, dts=80497938, size=3064
[aac @ 000001c62cb2d8c0] channel element 3.0 is not allocated
[mpegts @ 000001c62cadb440] Invalid timestamps stream=0, pts=80479930, dts=80515933, size=3075
[hls @ 000001c62caba980] Invalid timestamps stream=0, pts=80470933, dts=80506935, size=3048
[aac @ 000001c62cb2d8c0] channel element 3.0 is not allocated
    Last message repeated 1 times
[mpegts @ 000001c62cadb440] Invalid timestamps stream=0, pts=80488927, dts=80524930, size=2990
[hls @ 000001c62caba980] Invalid timestamps stream=0, pts=80479930, dts=80515933, size=3075
[aac @ 000001c62cb2d8c0] channel element 3.0 is not allocated
[mpegts @ 000001c62cadb440] Invalid timestamps stream=0, pts=80497924, dts=80533927, size=3026
[hls @ 000001c62caba980] Invalid timestamps stream=0, pts=80488927, dts=80524930, size=2990
[aac @ 000001c62cb2d8c0] channel element 3.0 is not allocated
    Last message repeated 1 times
[mpegts @ 000001c62cadb440] Invalid timestamps stream=0, pts=80506921, dts=80542924, size=3049
[hls @ 000001c62caba980] Invalid timestamps stream=0, pts=80497924, dts=80533927, size=3026
[aac @ 000001c62cb2d8c0] channel element 3.0 is not allocated
    Last message repeated 1 times
[mpegts @ 000001c62cadb440] Invalid timestamps stream=0, pts=80515920, dts=80551921, size=3115
[hls @ 000001c62caba980] Invalid timestamps stream=0, pts=80506921, dts=80542924, size=3049
[aac @ 000001c62cb2d8c0] channel element 3.0 is not allocated
[mpegts @ 000001c62cadb440] Invalid timestamps stream=0, pts=80524917, dts=80560920, size=3016
[hls @ 000001c62caba980] Invalid timestamps stream=0, pts=80515920, dts=80551921, size=3115
[aac @ 000001c62cb2d8c0] channel element 3.0 is not allocated
    Last message repeated 1 times
[mpegts @ 000001c62cadb440] Invalid timestamps stream=0, pts=80533914, dts=80569917, size=3087
[hls @ 000001c62caba980] Invalid timestamps stream=0, pts=80524917, dts=80560920, size=3016
[aac @ 000001c62cb2d8c0] channel element 3.0 is not allocated
    Last message repeated 1 times
[mpegts @ 000001c62cadb440] Invalid timestamps stream=0, pts=80542912, dts=80578914, size=2953
[hls @ 000001c62caba980] Invalid timestamps stream=0, pts=80533914, dts=80569917, size=3087
[aac @ 000001c62cb2d8c0] channel element 3.0 is not allocated
[mpegts @ 000001c62cadb440] Invalid timestamps stream=0, pts=80551909, dts=80587912, size=3061
[hls @ 000001c62caba980] Invalid timestamps stream=0, pts=80542912, dts=80578914, size=2953
[aac @ 000001c62cb2d8c0] channel element 3.0 is not allocated
    Last message repeated 1 times
[http @ 000001c62cb05500] Opening 'http://xxx:8888/63_low/1645871759.ts' for reading
[mpegts @ 000001c62cadb440] Invalid timestamps stream=0, pts=80560908, dts=80596909, size=3353
[hls @ 000001c62caba980] Invalid timestamps stream=0, pts=80551909, dts=80587912, size=3061
[aac @ 000001c62cb2d8c0] channel element 3.0 is not allocated
    Last message repeated 1 times
[mpegts @ 000001c62cadb440] Invalid timestamps stream=0, pts=80569904, dts=80605908, size=12868
[hls @ 000001c62caba980] Invalid timestamps stream=0, pts=80560908, dts=80596909, size=3353
[aac @ 000001c62cb2d8c0] channel element 3.0 is not allocated
[mpegts @ 000001c62cadb440] Invalid timestamps stream=0, pts=80578901, dts=80614904, size=3086
[hls @ 000001c62caba980] Invalid timestamps stream=0, pts=80569904, dts=80605908, size=12868
[mpegts @ 000001c62cadb440] Invalid timestamps stream=0, pts=80587899, dts=80623901, size=3059
[hls @ 000001c62caba980] Invalid timestamps stream=0, pts=80578901, dts=80614904, size=3086
[aac @ 000001c62cb2d8c0] channel element 3.0 is not allocated
    Last message repeated 1 times
[mpegts @ 000001c62cadb440] Invalid timestamps stream=0, pts=80596896, dts=80632899, size=2995
[hls @ 000001c62caba980] Invalid timestamps stream=0, pts=80587899, dts=80623901, size=3059
[aac @ 000001c62cb2d8c0] channel element 3.0 is not allocated
[mpegts @ 000001c62cadb440] Invalid timestamps stream=0, pts=80605893, dts=80641896, size=2947
[hls @ 000001c62caba980] Invalid timestamps stream=0, pts=80596896, dts=80632899, size=2995
[aac @ 000001c62cb2d8c0] channel element 3.0 is not allocated
    Last message repeated 1 times
[mpegts @ 000001c62cadb440] Invalid timestamps stream=0, pts=80614891, dts=80650893, size=3004
[hls @ 000001c62caba980] Invalid timestamps stream=0, pts=80605893, dts=80641896, size=2947
[aac @ 000001c62cb2d8c0] channel element 3.0 is not allocated
    Last message repeated 1 times
[mpegts @ 000001c62cadb440] Invalid timestamps stream=0, pts=80623890, dts=80659891, size=3033
[hls @ 000001c62caba980] Invalid timestamps stream=0, pts=80614891, dts=80650893, size=3004
[aac @ 000001c62cb2d8c0] channel element 3.0 is not allocated
[mpegts @ 000001c62cadb440] Invalid timestamps stream=0, pts=80632886, dts=80668890, size=2933
[hls @ 000001c62caba980] Invalid timestamps stream=0, pts=80623890, dts=80659891, size=3033
[aac @ 000001c62cb2d8c0] channel element 3.0 is not allocated
    Last message repeated 1 times
[mpegts @ 000001c62cadb440] Invalid timestamps stream=0, pts=80641883, dts=80677886, size=3071
[hls @ 000001c62caba980] Invalid timestamps stream=0, pts=80632886, dts=80668890, size=2933
[aac @ 000001c62cb2d8c0] channel element 3.0 is not allocated
[mpegts @ 000001c62cadb440] Invalid timestamps stream=0, pts=80650881, dts=80686883, size=2996
[hls @ 000001c62caba980] Invalid timestamps stream=0, pts=80641883, dts=80677886, size=3071
[aac @ 000001c62cb2d8c0] channel element 3.0 is not allocated
    Last message repeated 1 times
[mpegts @ 000001c62cadb440] Invalid timestamps stream=0, pts=80659879, dts=80695881, size=3081
[hls @ 000001c62caba980] Invalid timestamps stream=0, pts=80650881, dts=80686883, size=2996
[aac @ 000001c62cb2d8c0] channel element 3.0 is not allocated
    Last message repeated 1 times
[mpegts @ 000001c62cadb440] Invalid timestamps stream=0, pts=80668876, dts=80704879, size=2925
[hls @ 000001c62caba980] Invalid timestamps stream=0, pts=80659879, dts=80695881, size=3081
[hls @ 000001c62caba980] decoding for stream 1 failed
[hls @ 000001c62caba980] Could not find codec parameters for stream 1 (Audio: aac (LC) ([15][0][0][0] / 0x000F), mono, fltp): unspecified sample rate
Consider increasing the value for the 'analyzeduration' (0) and 'probesize' (5000000) options
Input #0, hls, from 'http://xxx:8888/63_low/index.m3u8':
  Duration: N/A, start: 891.222300, bitrate: N/A
  Program 0
    Metadata:
      variant_bitrate : 200000
  Stream #0:0: Video: h264 (High) ([27][0][0][0] / 0x001B), yuv420p, 640x480, 10 tbr, 90k tbn, 180k tbc
    Metadata:
      variant_bitrate : 200000
  Stream #0:1: Audio: aac (LC) ([15][0][0][0] / 0x000F), mono, fltp
    Metadata:
      variant_bitrate : 200000

Did you attach the server logs?

yes

Click to expand!
2022/02/26 11:53:24 INF rtsp-simple-server v0.17.17
2022/02/26 11:53:24 DEB [path 63_low] opened
2022/02/26 11:53:24 DEB path manager opened
2022/02/26 11:53:24 INF [RTSP] listener opened on :8554 (TCP), :8000 (UDP/RTP), :8001 (UDP/RTCP)
2022/02/26 11:53:24 INF [RTMP] listener opened on :1935
2022/02/26 11:53:24 INF [HLS] listener opened on :8888
2022/02/26 11:53:24 INF [HLS] [conn 10.10.0.2:51330] GET /63_low/index.m3u8
2022/02/26 11:53:24 DEB [HLS] [conn 10.10.0.2:51330] [c->s] GET /63_low/index.m3u8 HTTP/1.1
Host: xxx:8888
Accept: */*
Accept-Encoding: gzip, deflate
Accept-Language: en-GB,en;q=0.9
Connection: keep-alive
Referer: http://xxx:8888/63_low/
User-Agent: Mozilla/5.0 (Windows NT 10.0; Win64; x64) AppleWebKit/537.36 (KHTML, like Gecko) Chrome/100.0.4896.12 Safari/537.36


2022/02/26 11:53:24 INF [HLS] [muxer 63_low] opened
2022/02/26 11:53:24 INF [path 63_low] [rtsp source] started
2022/02/26 11:53:24 DEB [path 63_low] [rtsp source] connecting
2022/02/26 11:53:24 DEB [path 63_low] [rtsp source] c->s OPTIONS rtsp://xxx:554/h264Preview_01_sub RTSP/1.0
CSeq: 1
User-Agent: gortsplib


2022/02/26 11:53:24 DEB [path 63_low] [rtsp source] s->c RTSP/1.0 200 OK
CSeq: 1
Date: Sat, Feb 26 2022 10:53:25 GMT
Public: OPTIONS, DESCRIBE, SETUP, TEARDOWN, PLAY, PAUSE, GET_PARAMETER, SET_PARAMETER


2022/02/26 11:53:24 DEB [path 63_low] [rtsp source] c->s DESCRIBE rtsp://xxx:554/h264Preview_01_sub RTSP/1.0
Accept: application/sdp
CSeq: 2
User-Agent: gortsplib


2022/02/26 11:53:24 DEB [path 63_low] [rtsp source] s->c RTSP/1.0 401 Unauthorized
CSeq: 2
Date: Sat, Feb 26 2022 10:53:25 GMT
WWW-Authenticate: Digest realm="LIVE555 Streaming Media", nonce="6920501faa99b42b79667a751b4f2577"


2022/02/26 11:53:24 DEB [path 63_low] [rtsp source] c->s DESCRIBE rtsp://xxx:554/h264Preview_01_sub RTSP/1.0
Accept: application/sdp
Authorization: digest username="xxx", realm="LIVE555 Streaming Media", nonce="6920501faa99b42b79667a751b4f2577", uri="rtsp://xxx:554/h264Preview_01_sub", response="2de2092db746b35dfd5164598ef8cb96"
CSeq: 3
User-Agent: gortsplib


2022/02/26 11:53:24 DEB [path 63_low] [rtsp source] s->c RTSP/1.0 200 OK
CSeq: 3
Content-Base: rtsp://xxx/h264Preview_01_sub/
Content-Length: 696
Content-Type: application/sdp
Date: Sat, Feb 26 2022 10:53:25 GMT

v=0
o=- 1645616582999235 1 IN IP4 xxx
s=Session streamed by "preview"
i=h264Preview_01_sub
t=0 0
a=tool:LIVE555 Streaming Media v2020.08.12
a=type:broadcast
a=control:*
a=range:npt=0-
a=x-qt-text-nam:Session streamed by "preview"
a=x-qt-text-inf:h264Preview_01_sub
m=video 0 RTP/AVP 96
c=IN IP4 0.0.0.0
b=AS:500
a=rtpmap:96 H264/90000
a=fmtp:96 packetization-mode=1;profile-level-id=640033;sprop-parameter-sets=Z2QAM6wVFKCgPZA=,aO48sA==
a=control:track1
m=audio 0 RTP/AVP 97
c=IN IP4 0.0.0.0
b=AS:256
a=rtpmap:97 MPEG4-GENERIC/16000
a=fmtp:97 streamtype=5;profile-level-id=1;mode=AAC-hbr;sizelength=13;indexlength=3;indexdeltalength=3;config=1408
a=control:track2

2022/02/26 11:53:24 DEB [path 63_low] [rtsp source] c->s SETUP rtsp://xxx/h264Preview_01_sub/track1 RTSP/1.0
Authorization: digest username="xxx", realm="LIVE555 Streaming Media", nonce="6920501faa99b42b79667a751b4f2577", uri="rtsp://xxx/h264Preview_01_sub/track1", response="80c8415855303a225d7154220b39a056"
CSeq: 4
Transport: RTP/AVP;unicast;client_port=10160-10161;mode=play
User-Agent: gortsplib


2022/02/26 11:53:24 DEB [path 63_low] [rtsp source] s->c RTSP/1.0 200 OK
CSeq: 4
Date: Sat, Feb 26 2022 10:53:25 GMT
Session: 2DEA4CAF;timeout=65
Transport: RTP/AVP;unicast;destination=xxx;source=xxx;client_port=10160-10161;server_port=6970-6971


2022/02/26 11:53:24 DEB [path 63_low] [rtsp source] c->s SETUP rtsp://xxx/h264Preview_01_sub/track2 RTSP/1.0
Authorization: digest username="xxx", realm="LIVE555 Streaming Media", nonce="6920501faa99b42b79667a751b4f2577", uri="rtsp://xxx/h264Preview_01_sub/track2", response="dcd50683228373f846c7d149618aa124"
CSeq: 5
Session: 2DEA4CAF
Transport: RTP/AVP;unicast;client_port=61204-61205;mode=play
User-Agent: gortsplib


2022/02/26 11:53:24 DEB [path 63_low] [rtsp source] s->c RTSP/1.0 200 OK
CSeq: 5
Date: Sat, Feb 26 2022 10:53:25 GMT
Session: 2DEA4CAF;timeout=65
Transport: RTP/AVP;unicast;destination=xxx;source=xxx;client_port=61204-61205;server_port=6972-6973


2022/02/26 11:53:24 INF [path 63_low] [rtsp source] ready
2022/02/26 11:53:24 INF [HLS] [muxer 63_low] is converting into HLS
2022/02/26 11:53:24 DEB [HLS] [conn 10.10.0.2:51330] [s->c] HTTP/1.1 200 OK
Access-Control-Allow-Credentials: true
Access-Control-Allow-Origin: *
Content-Type: application/x-mpegURL
Server: rtsp-simple-server

(body of 86 bytes)
2022/02/26 11:53:24 DEB [path 63_low] [rtsp source] c->s PLAY rtsp://xxx/h264Preview_01_sub/ RTSP/1.0
Authorization: digest username="xxx", realm="LIVE555 Streaming Media", nonce="6920501faa99b42b79667a751b4f2577", uri="rtsp://xxx/h264Preview_01_sub/", response="35b2f817bfd382e750d5c5267caa1d77"
CSeq: 6
Range: npt=0-
Session: 2DEA4CAF
User-Agent: gortsplib


2022/02/26 11:53:24 DEB [path 63_low] [rtsp source] s->c RTSP/1.0 200 OK
CSeq: 6
Date: Sat, Feb 26 2022 10:53:25 GMT
RTP-Info: url=rtsp://xxx/h264Preview_01_sub/track1;seq=29673;rtptime=4249415956,url=rtsp://xxx/h264Preview_01_sub/track2;seq=8234;rtptime=3346128232
Range: npt=0.000-
Session: 2DEA4CAF


2022/02/26 11:53:24 INF [HLS] [conn 10.10.0.2:51330] GET /63_low/stream.m3u8
2022/02/26 11:53:24 DEB [HLS] [conn 10.10.0.2:51330] [c->s] GET /63_low/stream.m3u8 HTTP/1.1
Host: xxx:8888
Accept: */*
Accept-Encoding: gzip, deflate
Accept-Language: en-GB,en;q=0.9
Connection: keep-alive
Referer: http://xxx:8888/63_low/
User-Agent: Mozilla/5.0 (Windows NT 10.0; Win64; x64) AppleWebKit/537.36 (KHTML, like Gecko) Chrome/100.0.4896.12 Safari/537.36


2022/02/26 11:53:29 DEB [HLS] [conn 10.10.0.2:51330] [s->c] HTTP/1.1 200 OK
Access-Control-Allow-Credentials: true
Access-Control-Allow-Origin: *
Content-Type: application/x-mpegURL
Server: rtsp-simple-server

(body of 130 bytes)
2022/02/26 11:53:30 INF [HLS] [conn 10.10.0.2:51330] GET /63_low/1645872805.ts
2022/02/26 11:53:30 DEB [HLS] [conn 10.10.0.2:51330] [c->s] GET /63_low/1645872805.ts HTTP/1.1
Host: xxx:8888
Accept: */*
Accept-Encoding: gzip, deflate
Accept-Language: en-GB,en;q=0.9
Connection: keep-alive
Referer: http://xxx:8888/63_low/
User-Agent: Mozilla/5.0 (Windows NT 10.0; Win64; x64) AppleWebKit/537.36 (KHTML, like Gecko) Chrome/100.0.4896.12 Safari/537.36


2022/02/26 11:53:30 DEB [HLS] [conn 10.10.0.2:51330] [s->c] HTTP/1.1 200 OK
Access-Control-Allow-Credentials: true
Access-Control-Allow-Origin: *
Content-Type: video/MP2T
Server: rtsp-simple-server

(body of 175028 bytes)
2022/02/26 11:53:34 INF [HLS] [conn 10.10.0.2:51330] GET /63_low/stream.m3u8
2022/02/26 11:53:34 DEB [HLS] [conn 10.10.0.2:51330] [c->s] GET /63_low/stream.m3u8 HTTP/1.1
Host: xxx:8888
Accept: */*
Accept-Encoding: gzip, deflate
Accept-Language: en-GB,en;q=0.9
Connection: keep-alive
Referer: http://xxx:8888/63_low/
User-Agent: Mozilla/5.0 (Windows NT 10.0; Win64; x64) AppleWebKit/537.36 (KHTML, like Gecko) Chrome/100.0.4896.12 Safari/537.36


2022/02/26 11:53:34 DEB [HLS] [conn 10.10.0.2:51330] [s->c] HTTP/1.1 200 OK
Access-Control-Allow-Credentials: true
Access-Control-Allow-Origin: *
Content-Type: application/x-mpegURL
Server: rtsp-simple-server

(body of 165 bytes)
2022/02/26 11:53:34 INF [HLS] [conn 10.10.0.2:51330] GET /63_low/1645872809.ts
2022/02/26 11:53:34 DEB [HLS] [conn 10.10.0.2:51330] [c->s] GET /63_low/1645872809.ts HTTP/1.1
Host: xxx:8888
Accept: */*
Accept-Encoding: gzip, deflate
Accept-Language: en-GB,en;q=0.9
Connection: keep-alive
Referer: http://xxx:8888/63_low/
User-Agent: Mozilla/5.0 (Windows NT 10.0; Win64; x64) AppleWebKit/537.36 (KHTML, like Gecko) Chrome/100.0.4896.12 Safari/537.36


2022/02/26 11:53:34 DEB [HLS] [conn 10.10.0.2:51330] [s->c] HTTP/1.1 200 OK
Access-Control-Allow-Credentials: true
Access-Control-Allow-Origin: *
Content-Type: video/MP2T
Server: rtsp-simple-server

(body of 175216 bytes)
2022/02/26 11:53:37 INF [HLS] [conn 10.10.0.2:51330] GET /63_low/index.m3u8
2022/02/26 11:53:37 DEB [HLS] [conn 10.10.0.2:51330] [c->s] GET /63_low/index.m3u8 HTTP/1.1
Host: xxx:8888
Accept: */*
Accept-Encoding: gzip, deflate
Accept-Language: en-GB,en;q=0.9
Connection: keep-alive
Referer: http://xxx:8888/63_low/
User-Agent: Mozilla/5.0 (Windows NT 10.0; Win64; x64) AppleWebKit/537.36 (KHTML, like Gecko) Chrome/100.0.4896.12 Safari/537.36


2022/02/26 11:53:37 DEB [HLS] [conn 10.10.0.2:51330] [s->c] HTTP/1.1 200 OK
Access-Control-Allow-Credentials: true
Access-Control-Allow-Origin: *
Content-Type: application/x-mpegURL
Server: rtsp-simple-server

(body of 86 bytes)
2022/02/26 11:53:37 INF shutting down gracefully
2022/02/26 11:53:37 INF [path 63_low] [rtsp source] stopped
2022/02/26 11:53:37 INF [HLS] [muxer 63_low] closed (terminated)
2022/02/26 11:53:37 DEB [path 63_low] [rtsp source] c->s TEARDOWN rtsp://xxx/h264Preview_01_sub/ RTSP/1.0
Authorization: digest username="xxx", realm="LIVE555 Streaming Media", nonce="6920501faa99b42b79667a751b4f2577", uri="rtsp://xxx/h264Preview_01_sub/", response="a722b5a0ee38125f237e5ea000f8c1e3"
CSeq: 7
Session: 2DEA4CAF
User-Agent: gortsplib


2022/02/26 11:53:37 DEB [path 63_low] [rtsp source] s->c RTSP/1.0 0 


2022/02/26 11:53:37 DEB [path 63_low] closed (terminated)
2022/02/26 11:53:37 INF [RTSP] listener is closing
2022/02/26 11:53:37 DEB path manager is closing
2022/02/26 11:53:37 INF [HLS] listener is closing
2022/02/26 11:53:37 INF [RTMP] listener is closing
2022/02/26 11:53:37 INF waiting for external commands

Did you attach a network dump?

not yet, will do so immediately if you say it helps to resolve the issue

About this issue

  • Original URL
  • State: closed
  • Created 5 years ago
  • Comments: 15 (7 by maintainers)

Commits related to this issue

Most upvoted comments

@aler9 Thank you very much for your lucid explanation about the intricacies causing the issue as well as your excellent patch. In fact, the camera now works flawlessly ๐Ÿ‘

Hello, this is probably the same as #816 - please try the nightly release attached here and let me know if it works.