bastimeyer · GitHub

After exactly 9 hours, the stream breaks. Log is below. It seems some kind of expiration date is kicking in (hdntl=exp=1706567743 in my case). Is there anything that can be done to renew this before it expires?

[14:35:29.238999][cli][debug] Python:     3.11.6
[14:35:29.239139][cli][debug] OpenSSL:    OpenSSL 3.2.0 23 Nov 2023
[14:35:29.239285][cli][debug] Streamlink: 6.5.1
[14:35:29.240179][cli][debug] Dependencies:
[14:35:29.251832][cli][debug]  certifi: 2023.11.17
[14:35:29.255790][cli][debug]  isodate: 0.6.1
[14:35:29.256802][cli][debug]  lxml: 4.9.2
[14:35:29.265302][cli][debug]  pycountry: 22.3.5
[14:35:29.266242][cli][debug]  pycryptodome: 3.20.0
[14:35:29.267633][cli][debug]  PySocks: 1.7.1
[14:35:29.271091][cli][debug]  requests: 2.31.0
[14:35:29.272293][cli][debug]  trio: 0.24.0
[14:35:29.273375][cli][debug]  trio-websocket: 0.11.1
[14:35:29.278149][cli][debug]  typing-extensions: 4.9.0
[14:35:29.286692][cli][debug]  urllib3: 1.26.18
[14:35:29.303105][cli][debug]  websocket-client: 1.7.0
[14:35:29.303469][cli][debug] Arguments:
[14:35:29.303611][cli][debug]  url=https://chzzk.naver.com/live/f82903be1190262c1155674954a8ce35
[14:35:29.303734][cli][debug]  stream=['best']
[14:35:29.303868][cli][debug]  --loglevel=all
[14:35:29.304022][cli][debug]  --logfile=/data/recorder/in-progress/sl.log
[14:35:29.304163][cli][debug]  --output=/data/recorder/in-progress/f82903be1190262c1155674954a8ce35-20240129-20240129-2235-RN4293.ts
[14:35:29.304312][cli][debug]  --retry-streams=15.0
[14:35:29.304432][cli][debug]  --retry-max=60
[14:35:29.304548][cli][debug]  --retry-open=15
[14:35:29.304665][cli][debug]  --ringbuffer-size=50331648
[14:35:29.304781][cli][debug]  --stream-segment-attempts=30
[14:35:29.304896][cli][debug]  --stream-segment-threads=4
[14:35:29.305012][cli][debug]  --stream-segment-timeout=10.0
[14:35:29.305128][cli][debug]  --stream-timeout=90.0
[14:35:29.305263][cli][debug]  --hls-playlist-reload-attempts=15
[14:35:29.305379][cli][debug]  --hls-playlist-reload-time=segment
[14:35:29.305496][cli][debug]  --hls-segment-queue-threshold=15.0
[14:35:29.305623][cli][debug]  --ffmpeg-no-validation=True
[14:35:29.306068][cli][info] Found matching plugin chzzk for URL https://chzzk.naver.com/live/f82903be1190262c1155674954a8ce35
[14:35:32.432924][utils.l10n][debug] Language code: en_US
[14:35:33.922777][stream.hls.m3u8][all] #EXT-X-VERSION:7
[14:35:33.923039][stream.hls.m3u8][all] #EXT-X-INDEPENDENT-SEGMENTS
[14:35:33.923167][stream.hls.m3u8][all] #EXT-X-MEDIA:TYPE=AUDIO,GROUP-ID="afrag1080p",NAME="audio.stream",AUTOSELECT=YES,CHANNELS="2",URI="hdntl=exp=1706567743~acl=*%2fkearacw3nkqwe55myd7kiecbdcfd30c9nv%2f*~data=hdntl~hmac=cd29dd926a9d1f37cb867d6e75639ec0bd1af07b1c573d2f018528e92cacf1b6/hls_chunklist_afrag1080p.m3u8"
[14:35:33.923408][stream.hls.m3u8][all] #EXT-X-MEDIA:TYPE=AUDIO,GROUP-ID="afragalow.stream",NAME="audio.stream",AUTOSELECT=YES,CHANNELS="2",URI="hdntl=exp=1706567743~acl=*%2fkearacw3nkqwe55myd7kiecbdcfd30c9nv%2f*~data=hdntl~hmac=cd29dd926a9d1f37cb867d6e75639ec0bd1af07b1c573d2f018528e92cacf1b6/hls_chunklist_afragalow.stream.m3u8"
[14:35:33.923597][stream.hls.m3u8][all] #EXT-X-STREAM-INF:BANDWIDTH=8192000,CODECS="avc1.640028,mp4a.40.2",RESOLUTION=1920x1080,AUDIO="afrag1080p"
[14:35:33.923742][stream.hls.m3u8][all] hdntl=exp=1706567743~acl=*%2fkearacw3nkqwe55myd7kiecbdcfd30c9nv%2f*~data=hdntl~hmac=cd29dd926a9d1f37cb867d6e75639ec0bd1af07b1c573d2f018528e92cacf1b6/hls_chunklist_vfrag1080p.m3u8
[14:35:33.923968][stream.hls.m3u8][all] #EXT-X-STREAM-INF:BANDWIDTH=5192000,CODECS="avc1.64001F,mp4a.40.2",RESOLUTION=1280x720,AUDIO="afrag1080p"
[14:35:33.924320][stream.hls.m3u8][all] hdntl=exp=1706567743~acl=*%2fkearacw3nkqwe55myd7kiecbdcfd30c9nv%2f*~data=hdntl~hmac=cd29dd926a9d1f37cb867d6e75639ec0bd1af07b1c573d2f018528e92cacf1b6/hls_chunklist_vfrag720p.m3u8
[14:35:33.924495][stream.hls.m3u8][all] #EXT-X-STREAM-INF:BANDWIDTH=1692000,CODECS="avc1.4D401F,mp4a.40.2",RESOLUTION=852x480,AUDIO="afrag1080p"
[14:35:33.924626][stream.hls.m3u8][all] hdntl=exp=1706567743~acl=*%2fkearacw3nkqwe55myd7kiecbdcfd30c9nv%2f*~data=hdntl~hmac=cd29dd926a9d1f37cb867d6e75639ec0bd1af07b1c573d2f018528e92cacf1b6/hls_chunklist_vfrag480p.m3u8
[14:35:33.924852][stream.hls.m3u8][all] #EXT-X-STREAM-INF:BANDWIDTH=992000,CODECS="avc1.4D401E,mp4a.40.2",RESOLUTION=640x360,AUDIO="afrag1080p"
[14:35:33.924998][stream.hls.m3u8][all] hdntl=exp=1706567743~acl=*%2fkearacw3nkqwe55myd7kiecbdcfd30c9nv%2f*~data=hdntl~hmac=cd29dd926a9d1f37cb867d6e75639ec0bd1af07b1c573d2f018528e92cacf1b6/hls_chunklist_vfrag360p.m3u8
[14:35:33.925163][stream.hls.m3u8][all] #EXT-X-STREAM-INF:BANDWIDTH=192000,CODECS="avc1.4D400C,mp4a.40.2",RESOLUTION=256x144,AUDIO="afragalow.stream"
[14:35:33.925306][stream.hls.m3u8][all] hdntl=exp=1706567743~acl=*%2fkearacw3nkqwe55myd7kiecbdcfd30c9nv%2f*~data=hdntl~hmac=cd29dd926a9d1f37cb867d6e75639ec0bd1af07b1c573d2f018528e92cacf1b6/hls_chunklist_vfrag144p.m3u8
[14:35:33.925728][stream.hls][debug] Using external audio tracks for stream 1080p (language=None, name=audio.stream)
[14:35:33.925950][stream.hls][debug] Using external audio tracks for stream 720p (language=None, name=audio.stream)
[14:35:33.926125][stream.hls][debug] Using external audio tracks for stream 480p (language=None, name=audio.stream)
[14:35:33.926304][stream.hls][debug] Using external audio tracks for stream 360p (language=None, name=audio.stream)
[14:35:33.926481][stream.hls][debug] Using external audio tracks for stream 144p (language=None, name=audio.stream)
[14:35:33.927289][cli][info] Available streams: 144p (worst), 360p, 480p, 720p, 1080p (best)
[14:35:33.927472][cli][info] Opening stream: 1080p (hls-multi)
[14:35:33.927768][cli][info] Writing output to
/data/recorder/in-progress/f82903be1190262c1155674954a8ce35-20240129-2235-RN4293.ts
[14:35:33.927886][cli][debug] Checking file output
[14:35:33.928047][stream.ffmpegmux][debug] Opening hls substream
[14:35:33.928967][stream.hls][debug] Reloading playlist
[14:35:33.930755][stream.ffmpegmux][debug] Opening hls substream
[14:35:33.931497][stream.hls][debug] Reloading playlist
[14:35:33.931711][utils.named_pipe][info] Creating pipe streamlinkpipe-43041-1-6071
[14:35:33.932272][utils.named_pipe][info] Creating pipe streamlinkpipe-43041-2-8695
[14:35:33.932532][stream.ffmpegmux][debug] ffmpeg command: /usr/bin/ffmpeg -nostats -y -i /tmp/streamlinkpipe-43041-1-6071 -i /tmp/streamlinkpipe-43041-2-8695 -c:v copy -c:a copy -map 0:v? -map 0:a? -map 1:a -copyts -f mpegts pipe:1
[14:35:33.934866][stream.ffmpegmux][debug] Starting copy to pipe: /tmp/streamlinkpipe-43041-1-6071
[14:35:33.935261][stream.ffmpegmux][debug] Starting copy to pipe: /tmp/streamlinkpipe-43041-2-8695
[14:35:33.957963][cli][debug] Pre-buffering 8192 bytes
[14:35:34.224935][stream.hls][debug] First Sequence: 5; Last Sequence: 7
[14:35:34.225058][stream.hls][debug] Start offset: 0; Duration: None; Start Sequence: 5; End Sequence: None
[14:35:34.225173][stream.hls][debug] Adding segment 5 to queue
[14:35:34.227822][stream.hls][debug] Adding segment 6 to queue
[14:35:34.230830][stream.hls][debug] Adding segment 7 to queue
[14:35:34.507620][stream.hls][debug] Writing segment 5 to output
[14:35:34.507926][stream.hls][debug] Segment initialization 5 complete
...
[23:35:45.057110][stream.hls][debug] Adding segment 16343 to queue
[23:35:45.057323][stream.hls][debug] Adding segment 16344 to queue
[23:35:46.235648][stream.hls][debug] Reloading playlist
[23:35:46.747210][stream.hls][debug] Reloading playlist
[23:37:13.396492][stream.ffmpegmux][error] Error while reading from substream: Read timeout
[23:37:40.436997][stream.hls][warning] Failed to reload playlist: Unable to open URL: https://livecloud.akamaized.net/chzzk/lip2_kr2/anmss0647/kearacw3nkqwe55myd7kiecbdcfd30c9nv/hdntl=exp=1706567743~acl=*%2fkearacw3nkqwe55myd7kiecbdcfd30c9nv%2f*~data=hdntl~hmac=cd29dd926a9d1f37cb867d6e75639ec0bd1af07b1c573d2f018528e92cacf1b6/hls_chunklist_afrag1080p.m3u8 (403 Client Error: Forbidden for url: https://livecloud.akamaized.net/chzzk/lip2_kr2/anmss0647/kearacw3nkqwe55myd7kiecbdcfd30c9nv/hdntl=exp=1706567743~acl=*%2fkearacw3nkqwe55myd7kiecbdcfd30c9nv%2f*~data=hdntl~hmac=cd29dd926a9d1f37cb867d6e75639ec0bd1af07b1c573d2f018528e92cacf1b6/hls_chunklist_afrag1080p.m3u8)
[23:37:40.437613][stream.hls][warning] No new segments in playlist for more than 30.00s. Stopping...
[23:37:40.437923][stream.segmented][debug] Closing worker thread
[23:37:40.471071][stream.hls][warning] Failed to reload playlist: Unable to open URL: https://livecloud.akamaized.net/chzzk/lip2_kr2/anmss0647/kearacw3nkqwe55myd7kiecbdcfd30c9nv/hdntl=exp=1706567743~acl=*%2fkearacw3nkqwe55myd7kiecbdcfd30c9nv%2f*~data=hdntl~hmac=cd29dd926a9d1f37cb867d6e75639ec0bd1af07b1c573d2f018528e92cacf1b6/hls_chunklist_vfrag1080p.m3u8 (403 Client Error: Forbidden for url: https://livecloud.akamaized.net/chzzk/lip2_kr2/anmss0647/kearacw3nkqwe55myd7kiecbdcfd30c9nv/hdntl=exp=1706567743~acl=*%2fkearacw3nkqwe55myd7kiecbdcfd30c9nv%2f*~data=hdntl~hmac=cd29dd926a9d1f37cb867d6e75639ec0bd1af07b1c573d2f018528e92cacf1b6/hls_chunklist_vfrag1080p.m3u8)
[23:37:40.471362][stream.hls][warning] No new segments in playlist for more than 30.00s. Stopping...
[23:37:40.471547][stream.segmented][debug] Closing worker thread
[23:37:40.474213][stream.segmented][debug] Closing writer thread
[23:37:40.474751][stream.ffmpegmux][debug] Pipe copy complete: /tmp/streamlinkpipe-43041-1-6071
[23:37:45.346803][stream.ffmpegmux][debug] Closing ffmpeg thread
[23:37:45.351042][stream.segmented][debug] Closing writer thread
[23:40:12.357906][stream.hls][error] Failed to fetch segment 16343: Unable to open URL: https://livecloud.akamaized.net/chzzk/lip2_kr2/anmss0647/kearacw3nkqwe55myd7kiecbdcfd30c9nv/hdntl=exp=1706567743~acl=*%2fkearacw3nkqwe55myd7kiecbdcfd30c9nv%2f*~data=hdntl~hmac=cd29dd926a9d1f37cb867d6e75639ec0bd1af07b1c573d2f018528e92cacf1b6/afrag1080p_691305293_1706567740801_32424_0_16343.m4a?type=hls&bitrate=29132&filetype=.m4a (403 Client Error: Forbidden for url: https://livecloud.akamaized.net/chzzk/lip2_kr2/anmss0647/kearacw3nkqwe55myd7kiecbdcfd30c9nv/hdntl=exp=1706567743~acl=*%2fkearacw3nkqwe55myd7kiecbdcfd30c9nv%2f*~data=hdntl~hmac=cd29dd926a9d1f37cb867d6e75639ec0bd1af07b1c573d2f018528e92cacf1b6/afrag1080p_691305293_1706567740801_32424_0_16343.m4a?type=hls&bitrate=29132&filetype=.m4a)
[23:40:12.365906][stream.hls][error] Failed to fetch segment 16344: Unable to open URL: https://livecloud.akamaized.net/chzzk/lip2_kr2/anmss0647/kearacw3nkqwe55myd7kiecbdcfd30c9nv/hdntl=exp=1706567743~acl=*%2fkearacw3nkqwe55myd7kiecbdcfd30c9nv%2f*~data=hdntl~hmac=cd29dd926a9d1f37cb867d6e75639ec0bd1af07b1c573d2f018528e92cacf1b6/afrag1080p_2801223308_1706567742785_32426_0_16344.m4a?type=hls&bitrate=29207&filetype=.m4a (403 Client Error: Forbidden for url: https://livecloud.akamaized.net/chzzk/lip2_kr2/anmss0647/kearacw3nkqwe55myd7kiecbdcfd30c9nv/hdntl=exp=1706567743~acl=*%2fkearacw3nkqwe55myd7kiecbdcfd30c9nv%2f*~data=hdntl~hmac=cd29dd926a9d1f37cb867d6e75639ec0bd1af07b1c573d2f018528e92cacf1b6/afrag1080p_2801223308_1706567742785_32426_0_16344.m4a?type=hls&bitrate=29207&filetype=.m4a)
[23:40:12.367595][stream.ffmpegmux][debug] Closed all the substreams
[23:40:12.373256][cli][info] Stream ended
[23:40:12.375458][cli][info] Closing currently open stream...

Read the original on github.com ↗