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

[chzzkLive] Live stream download aborted due to EOF under certain conditions #9861

Open
9 of 11 tasks
hui1601 opened this issue May 5, 2024 · 1 comment
Open
9 of 11 tasks
Assignees
Labels
site-bug Issue with a specific website triage Untriaged issue

Comments

@hui1601
Copy link
Contributor

hui1601 commented May 5, 2024

DO NOT REMOVE OR SKIP THE ISSUE TEMPLATE

  • I understand that I will be blocked if I intentionally remove or skip any mandatory* field

Checklist

Region

South Korea

Provide a description that is worded well enough to be understood

Under certain conditions during a Chzzk live stream download, ffmpeg receives an EOF and treats it as the end of the stream, stopping recording even though the live stream is not over.
The conditions that I have found to cause an EOF are as follows

  1. assuming the streamer is broadcasting via OBS STUDIO, when the streamer's sending computer is overloaded, causing the chunk transfer rate to be slower than 1.0x (an encoding overload message appears at the bottom of OBS STUDIO)
  2. the streamer's network environment is poor, causing sudden streaming delays.
  3. other server latency issues with Chzzk

The Chzzk client seems to request the last chunk a few times over when it receives EOF.

I'm currently working on a PR for this.

Provide verbose output that clearly demonstrates the problem

  • Run your yt-dlp command with -vU flag added (yt-dlp -vU <your command line>)
  • If using API, add 'verbose': True to YoutubeDL params instead
  • Copy the WHOLE output (starting with [debug] Command-line config) and insert it below

Complete Verbose Output

[debug] Command-line config: ['-Uv', 'https://chzzk.naver.com/live/f962d2d9aeb7e8b2e845e775ee7546df']
[debug] Encodings: locale UTF-8, fs utf-8, pref UTF-8, out utf-8, error utf-8, screen utf-8
[debug] yt-dlp version nightly@2024.05.04.232706 from yt-dlp/yt-dlp-nightly-builds (linux_exe)
[debug] Python 3.11.9 (CPython x86_64 64bit) - Linux-6.8.0-31-generic-x86_64-with (OpenSSL 3.1.4 24 Oct 2023)
[debug] exe versions: ffmpeg 6.1.1 (setts), ffprobe 6.1.1
[debug] Optional libraries: Cryptodome-3.20.0, brotli-1.1.0, certifi-2024.02.02, mutagen-1.47.0, requests-2.31.0, secretstorage-3.3.3, sqlite3-3.44.2, urllib3-2.2.1, websockets-12.0
[debug] Proxy map: {}
[debug] Request Handlers: urllib, requests, websockets
[debug] Loaded 1810 extractors
[debug] Fetching release info: https://api.github.com/repos/yt-dlp/yt-dlp-nightly-builds/releases/latest
Latest version: nightly@2024.05.04.232706 from yt-dlp/yt-dlp-nightly-builds
yt-dlp is up to date (nightly@2024.05.04.232706 from yt-dlp/yt-dlp-nightly-builds)
[chzzk:live] Extracting URL: https://chzzk.naver.com/live/f962d2d9aeb7e8b2e845e775ee7546df
[chzzk:live] f962d2d9aeb7e8b2e845e775ee7546df: Downloading channel info
[chzzk:live] f962d2d9aeb7e8b2e845e775ee7546df: Downloading m3u8 information
[chzzk:live] f962d2d9aeb7e8b2e845e775ee7546df: Downloading m3u8 information
[debug] Formats sorted by: hasvid, ie_pref, lang, quality, res, fps, hdr:12(7), vcodec:vp9.2(10), channels, acodec, size, br, asr, proto, vext, aext, hasaud, source, id
[debug] Default format spec: best/bestvideo+bestaudio
[info] f962d2d9aeb7e8b2e845e775ee7546df: Downloading 1 format(s): hls-4
[debug] Invoking ffmpeg downloader on "https://livecloud.pstatic.net/chzzk/lip2_kr/cflexnmss2u0169/o0chsu7z9rmqpcguammj7zbl4i0oivg89q/hdntl=exp=1714929877~acl=*%2Fo0chsu7z9rmqpcguammj7zbl4i0oivg89q%2F*~data=hdntl~hmac=0794b759f8675d3ee5a17f0c08e5499f3cbdd3ebacc60a37f8a18cc52c221a64/hls_chunklist_1080p.m3u8"
[download] Destination: yt-dlp live stream download test 2024-05-05 17_54 [f962d2d9aeb7e8b2e845e775ee7546df].mp4
[debug] ffmpeg command line: ffmpeg -y -loglevel verbose -headers 'User-Agent: Mozilla/5.0 (Windows NT 10.0; Win64; x64) AppleWebKit/537.36 (KHTML, like Gecko) Chrome/92.0.4515.107 Safari/537.36
Accept: text/html,application/xhtml+xml,application/xml;q=0.9,*/*;q=0.8
Accept-Language: en-us,en;q=0.5
Sec-Fetch-Mode: navigate
' -i 'https://livecloud.pstatic.net/chzzk/lip2_kr/cflexnmss2u0169/o0chsu7z9rmqpcguammj7zbl4i0oivg89q/hdntl=exp=1714929877~acl=*%2Fo0chsu7z9rmqpcguammj7zbl4i0oivg89q%2F*~data=hdntl~hmac=0794b759f8675d3ee5a17f0c08e5499f3cbdd3ebacc60a37f8a18cc52c221a64/hls_chunklist_1080p.m3u8' -c copy -f mpegts 'file:yt-dlp live stream download test 2024-05-05 17_54 [f962d2d9aeb7e8b2e845e775ee7546df].mp4.part'
ffmpeg version 6.1.1-3ubuntu5 Copyright (c) 2000-2023 the FFmpeg developers
  built with gcc 13 (Ubuntu 13.2.0-23ubuntu3)
  configuration: --prefix=/usr --extra-version=3ubuntu5 --toolchain=hardened --libdir=/usr/lib/x86_64-linux-gnu --incdir=/usr/include/x86_64-linux-gnu --arch=amd64 --enable-gpl --disable-stripping --disable-omx --enable-gnutls --enable-libaom --enable-libass --enable-libbs2b --enable-libcaca --enable-libcdio --enable-libcodec2 --enable-libdav1d --enable-libflite --enable-libfontconfig --enable-libfreetype --enable-libfribidi --enable-libglslang --enable-libgme --enable-libgsm --enable-libharfbuzz --enable-libmp3lame --enable-libmysofa --enable-libopenjpeg --enable-libopenmpt --enable-libopus --enable-librubberband --enable-libshine --enable-libsnappy --enable-libsoxr --enable-libspeex --enable-libtheora --enable-libtwolame --enable-libvidstab --enable-libvorbis --enable-libvpx --enable-libwebp --enable-libx265 --enable-libxml2 --enable-libxvid --enable-libzimg --enable-openal --enable-opencl --enable-opengl --disable-sndio --enable-libvpl --disable-libmfx --enable-libdc1394 --enable-libdrm --enable-libiec61883 --enable-chromaprint --enable-frei0r --enable-ladspa --enable-libbluray --enable-libjack --enable-libpulse --enable-librabbitmq --enable-librist --enable-libsrt --enable-libssh --enable-libsvtav1 --enable-libx264 --enable-libzmq --enable-libzvbi --enable-lv2 --enable-sdl2 --enable-libplacebo --enable-librav1e --enable-pocketsphinx --enable-librsvg --enable-libjxl --enable-shared
  libavutil      58. 29.100 / 58. 29.100
  libavcodec     60. 31.102 / 60. 31.102
  libavformat    60. 16.100 / 60. 16.100
  libavdevice    60.  3.100 / 60.  3.100
  libavfilter     9. 12.100 /  9. 12.100
  libswscale      7.  5.100 /  7.  5.100
  libswresample   4. 12.100 /  4. 12.100
  libpostproc    57.  3.100 / 57.  3.100
[tcp @ 0x5ee88c86af40] Starting connection attempt to 1.227.196.137 port 443
[tcp @ 0x5ee88c86af40] Successfully connected to 1.227.196.137 port 443
[hls @ 0x5ee88c8a6800] Skip ('#EXT-X-VERSION:7')
[hls @ 0x5ee88c8a6800] Skip ('#EXT-X-INDEPENDENT-SEGMENTS')
[hls @ 0x5ee88c8a6800] Skip ('#EXT-X-DISCONTINUITY-SEQUENCE:0')
[hls @ 0x5ee88c8a6800] Skip ('#EXT-X-DATERANGE:ID="nmss-daterange",START-DATE="2024-05-05T08:49:23.650Z"')
[hls @ 0x5ee88c8a6800] Skip ('#EXT-X-PROGRAM-DATE-TIME:2024-05-05T08:52:07.650Z')
[hls @ 0x5ee88c8a6800] Skip ('#EXT-X-PROGRAM-DATE-TIME:2024-05-05T08:52:09.650Z')
[hls @ 0x5ee88c8a6800] Skip ('#EXT-X-PROGRAM-DATE-TIME:2024-05-05T08:52:11.650Z')
[hls @ 0x5ee88c8a6800] HLS request for url 'https://livecloud.pstatic.net/chzzk/lip2_kr/cflexnmss2u0169/o0chsu7z9rmqpcguammj7zbl4i0oivg89q/hdntl=exp=1714929877~acl=*%2Fo0chsu7z9rmqpcguammj7zbl4i0oivg89q%2F*~data=hdntl~hmac=0794b759f8675d3ee5a17f0c08e5499f3cbdd3ebacc60a37f8a18cc52c221a64/1080p_0_0_0.m4s?type=hls&filetype=.m4s', offset 0, playlist 0
[hls @ 0x5ee88c8a6800] Opening 'https://livecloud.pstatic.net/chzzk/lip2_kr/cflexnmss2u0169/o0chsu7z9rmqpcguammj7zbl4i0oivg89q/hdntl=exp=1714929877~acl=*%2Fo0chsu7z9rmqpcguammj7zbl4i0oivg89q%2F*~data=hdntl~hmac=0794b759f8675d3ee5a17f0c08e5499f3cbdd3ebacc60a37f8a18cc52c221a64/1080p_0_0_0.m4s?type=hls&filetype=.m4s' for reading
[tcp @ 0x5ee88c8b1240] Starting connection attempt to 211.47.29.68 port 443
[tcp @ 0x5ee88c8b1240] Successfully connected to 211.47.29.68 port 443
[AVIOContext @ 0x5ee88cf2a7c0] Statistics: 1222 bytes read, 0 seeks
[hls @ 0x5ee88c8a6800] HLS request for url 'https://livecloud.pstatic.net/chzzk/lip2_kr/cflexnmss2u0169/o0chsu7z9rmqpcguammj7zbl4i0oivg89q/hdntl=exp=1714929877~acl=*%2Fo0chsu7z9rmqpcguammj7zbl4i0oivg89q%2F*~data=hdntl~hmac=0794b759f8675d3ee5a17f0c08e5499f3cbdd3ebacc60a37f8a18cc52c221a64/1080p_3121583915_1714899127650_164_0_82.m4v?type=hls&bitrate=1051691&filetype=.m4v', offset 0, playlist 0
[hls @ 0x5ee88c8a6800] Opening 'https://livecloud.pstatic.net/chzzk/lip2_kr/cflexnmss2u0169/o0chsu7z9rmqpcguammj7zbl4i0oivg89q/hdntl=exp=1714929877~acl=*%2Fo0chsu7z9rmqpcguammj7zbl4i0oivg89q%2F*~data=hdntl~hmac=0794b759f8675d3ee5a17f0c08e5499f3cbdd3ebacc60a37f8a18cc52c221a64/1080p_3121583915_1714899127650_164_0_82.m4v?type=hls&bitrate=1051691&filetype=.m4v' for reading
[tcp @ 0x5ee88ce64ec0] Starting connection attempt to 1.227.196.137 port 443
[tcp @ 0x5ee88ce64ec0] Successfully connected to 1.227.196.137 port 443
[hls @ 0x5ee88c8a6800] HLS request for url 'https://livecloud.pstatic.net/chzzk/lip2_kr/cflexnmss2u0169/o0chsu7z9rmqpcguammj7zbl4i0oivg89q/hdntl=exp=1714929877~acl=*%2Fo0chsu7z9rmqpcguammj7zbl4i0oivg89q%2F*~data=hdntl~hmac=0794b759f8675d3ee5a17f0c08e5499f3cbdd3ebacc60a37f8a18cc52c221a64/1080p_2882282906_1714899129650_166_0_83.m4v?type=hls&bitrate=1024882&filetype=.m4v', offset 0, playlist 0
[hls @ 0x5ee88c8a6800] Opening 'https://livecloud.pstatic.net/chzzk/lip2_kr/cflexnmss2u0169/o0chsu7z9rmqpcguammj7zbl4i0oivg89q/hdntl=exp=1714929877~acl=*%2Fo0chsu7z9rmqpcguammj7zbl4i0oivg89q%2F*~data=hdntl~hmac=0794b759f8675d3ee5a17f0c08e5499f3cbdd3ebacc60a37f8a18cc52c221a64/1080p_2882282906_1714899129650_166_0_83.m4v?type=hls&bitrate=1024882&filetype=.m4v' for reading
[tcp @ 0x5ee88cf2d400] Starting connection attempt to 211.47.29.68 port 443
[tcp @ 0x5ee88cf2d400] Successfully connected to 211.47.29.68 port 443
[mov,mp4,m4a,3gp,3g2,mj2 @ 0x5ee88cbc1e40] advanced_editlist does not work with fragmented MP4. disabling.
[h264 @ 0x5ee88cf35880] Reinit context to 1920x1088, pix_fmt: yuv420p
Input #0, hls, from 'https://livecloud.pstatic.net/chzzk/lip2_kr/cflexnmss2u0169/o0chsu7z9rmqpcguammj7zbl4i0oivg89q/hdntl=exp=1714929877~acl=*%2Fo0chsu7z9rmqpcguammj7zbl4i0oivg89q%2F*~data=hdntl~hmac=0794b759f8675d3ee5a17f0c08e5499f3cbdd3ebacc60a37f8a18cc52c221a64/hls_chunklist_1080p.m3u8':
  Duration: N/A, start: 189.434313, bitrate: 43 kb/s
  Program 0 
    Metadata:
      variant_bitrate : 0
  Stream #0:0(und): Video: h264 (High), 1 reference frame (avc1 / 0x31637661), yuv420p(tv, bt709, left), 1920x1080 (1920x1088) [SAR 1:1 DAR 16:9], 42 kb/s, 60 fps, 60 tbr, 6k tbn (default)
    Metadata:
      variant_bitrate : 0
      compatible_brands: iso6
      handler_name    : VideoHandler
      vendor_id       : [0][0][0][0]
      major_brand     : iso6
      minor_version   : 0
      creation_time   : 2024-05-05T08:49:47.000000Z
  Stream #0:1(und): Audio: aac (LC) (mp4a / 0x6134706D), 48000 Hz, stereo, fltp, 1 kb/s (default)
    Metadata:
      variant_bitrate : 0
      creation_time   : 2024-05-05T08:49:47.000000Z
      handler_name    : SoundHandler
      vendor_id       : [0][0][0][0]
[out#0/mpegts @ 0x5ee88cf3a980] No explicit maps, mapping streams automatically...
[vost#0:0/copy @ 0x5ee88cf5ab00] Created video stream from input stream 0:0
[aost#0:1/copy @ 0x5ee88d29b540] Created audio stream from input stream 0:1
[mpegts @ 0x5ee88cf5d380] service 1 using PCR in pid=256, pcr_period=100ms
[mpegts @ 0x5ee88cf5d380] muxrate VBR, sdt every 500 ms, pat/pmt every 100 ms
Output #0, mpegts, to 'file:yt-dlp live stream download test 2024-05-05 17_54 [f962d2d9aeb7e8b2e845e775ee7546df].mp4.part':
  Metadata:
    encoder         : Lavf60.16.100
  Stream #0:0(und): Video: h264 (High), 1 reference frame (avc1 / 0x31637661), yuv420p(tv, bt709, left), 1920x1080 (0x0) [SAR 1:1 DAR 16:9], q=2-31, 42 kb/s, 60 fps, 60 tbr, 90k tbn (default)
    Metadata:
      variant_bitrate : 0
      compatible_brands: iso6
      handler_name    : VideoHandler
      vendor_id       : [0][0][0][0]
      major_brand     : iso6
      minor_version   : 0
      creation_time   : 2024-05-05T08:49:47.000000Z
  Stream #0:1(und): Audio: aac (LC) (mp4a / 0x6134706D), 48000 Hz, stereo, fltp, 1 kb/s (default)
    Metadata:
      variant_bitrate : 0
      creation_time   : 2024-05-05T08:49:47.000000Z
      handler_name    : SoundHandler
      vendor_id       : [0][0][0][0]
Stream mapping:
  Stream #0:0 -> #0:0 (copy)
  Stream #0:1 -> #0:1 (copy)
Press [q] to stop, [?] for help
Automatically inserted bitstream filter 'h264_mp4toannexb'; args=''
[hls @ 0x5ee88c8a6800] HLS request for url 'https://livecloud.pstatic.net/chzzk/lip2_kr/cflexnmss2u0169/o0chsu7z9rmqpcguammj7zbl4i0oivg89q/hdntl=exp=1714929877~acl=*%2Fo0chsu7z9rmqpcguammj7zbl4i0oivg89q%2F*~data=hdntl~hmac=0794b759f8675d3ee5a17f0c08e5499f3cbdd3ebacc60a37f8a18cc52c221a64/1080p_4284021664_1714899131650_168_0_84.m4v?type=hls&bitrate=1008794&filetype=.m4v', offset 0, playlist 0
[https @ 0x5ee88ce844c0] Opening 'https://livecloud.pstatic.net/chzzk/lip2_kr/cflexnmss2u0169/o0chsu7z9rmqpcguammj7zbl4i0oivg89q/hdntl=exp=1714929877~acl=*%2Fo0chsu7z9rmqpcguammj7zbl4i0oivg89q%2F*~data=hdntl~hmac=0794b759f8675d3ee5a17f0c08e5499f3cbdd3ebacc60a37f8a18cc52c221a64/1080p_4284021664_1714899131650_168_0_84.m4v?type=hls&bitrate=1008794&filetype=.m4v' for reading
[tcp @ 0x704b1c020300] Starting connection attempt to 211.47.29.68 port 443
[tcp @ 0x704b1c020300] Successfully connected to 211.47.29.68 port 443
[hls @ 0x5ee88c8a6800] Skip ('#EXT-X-VERSION:7')
[hls @ 0x5ee88c8a6800] Skip ('#EXT-X-INDEPENDENT-SEGMENTS')
[hls @ 0x5ee88c8a6800] Skip ('#EXT-X-DISCONTINUITY-SEQUENCE:0')
[hls @ 0x5ee88c8a6800] Skip ('#EXT-X-DATERANGE:ID="nmss-daterange",START-DATE="2024-05-05T08:49:23.650Z"')
[hls @ 0x5ee88c8a6800] Skip ('#EXT-X-PROGRAM-DATE-TIME:2024-05-05T08:52:07.650Z')
[hls @ 0x5ee88c8a6800] Skip ('#EXT-X-PROGRAM-DATE-TIME:2024-05-05T08:52:09.650Z')
[hls @ 0x5ee88c8a6800] Skip ('#EXT-X-PROGRAM-DATE-TIME:2024-05-05T08:52:11.650Z')
[https @ 0x704b1c01da00] Opening 'https://livecloud.pstatic.net/chzzk/lip2_kr/cflexnmss2u0169/o0chsu7z9rmqpcguammj7zbl4i0oivg89q/hdntl=exp=1714929877~acl=*%2Fo0chsu7z9rmqpcguammj7zbl4i0oivg89q%2F*~data=hdntl~hmac=0794b759f8675d3ee5a17f0c08e5499f3cbdd3ebacc60a37f8a18cc52c221a64/hls_chunklist_1080p.m3u8' for reading
[hls @ 0x5ee88c8a6800] Skip ('#EXT-X-VERSION:7')
[hls @ 0x5ee88c8a6800] Skip ('#EXT-X-INDEPENDENT-SEGMENTS')
[hls @ 0x5ee88c8a6800] Skip ('#EXT-X-DISCONTINUITY-SEQUENCE:0')
[hls @ 0x5ee88c8a6800] Skip ('#EXT-X-DATERANGE:ID="nmss-daterange",START-DATE="2024-05-05T08:49:23.650Z"')
[hls @ 0x5ee88c8a6800] Skip ('#EXT-X-PROGRAM-DATE-TIME:2024-05-05T08:52:09.650Z')
[hls @ 0x5ee88c8a6800] Skip ('#EXT-X-PROGRAM-DATE-TIME:2024-05-05T08:52:11.650Z')
[hls @ 0x5ee88c8a6800] Skip ('#EXT-X-PROGRAM-DATE-TIME:2024-05-05T08:52:13.650Z')
[hls @ 0x5ee88c8a6800] HLS request for url 'https://livecloud.pstatic.net/chzzk/lip2_kr/cflexnmss2u0169/o0chsu7z9rmqpcguammj7zbl4i0oivg89q/hdntl=exp=1714929877~acl=*%2Fo0chsu7z9rmqpcguammj7zbl4i0oivg89q%2F*~data=hdntl~hmac=0794b759f8675d3ee5a17f0c08e5499f3cbdd3ebacc60a37f8a18cc52c221a64/1080p_0_0_0.m4s?type=hls&filetype=.m4s', offset 0, playlist 0
[https @ 0x5ee88ce844c0] Opening 'https://livecloud.pstatic.net/chzzk/lip2_kr/cflexnmss2u0169/o0chsu7z9rmqpcguammj7zbl4i0oivg89q/hdntl=exp=1714929877~acl=*%2Fo0chsu7z9rmqpcguammj7zbl4i0oivg89q%2F*~data=hdntl~hmac=0794b759f8675d3ee5a17f0c08e5499f3cbdd3ebacc60a37f8a18cc52c221a64/1080p_0_0_0.m4s?type=hls&filetype=.m4s' for reading
[AVIOContext @ 0x5ee88cbf9b00] Statistics: 4122193 bytes read, 0 seeks
[hls @ 0x5ee88c8a6800] HLS request for url 'https://livecloud.pstatic.net/chzzk/lip2_kr/cflexnmss2u0169/o0chsu7z9rmqpcguammj7zbl4i0oivg89q/hdntl=exp=1714929877~acl=*%2Fo0chsu7z9rmqpcguammj7zbl4i0oivg89q%2F*~data=hdntl~hmac=0794b759f8675d3ee5a17f0c08e5499f3cbdd3ebacc60a37f8a18cc52c221a64/1080p_2798261581_1714899133650_170_0_85.m4v?type=hls&bitrate=1031435&filetype=.m4v', offset 0, playlist 0
[hls @ 0x5ee88c8a6800] Opening 'https://livecloud.pstatic.net/chzzk/lip2_kr/cflexnmss2u0169/o0chsu7z9rmqpcguammj7zbl4i0oivg89q/hdntl=exp=1714929877~acl=*%2Fo0chsu7z9rmqpcguammj7zbl4i0oivg89q%2F*~data=hdntl~hmac=0794b759f8675d3ee5a17f0c08e5499f3cbdd3ebacc60a37f8a18cc52c221a64/1080p_2798261581_1714899133650_170_0_85.m4v?type=hls&bitrate=1031435&filetype=.m4v' for reading
[tcp @ 0x704b1c3913c0] Starting connection attempt to 116.120.5.222 port 443
[tcp @ 0x704b1c3913c0] Successfully connected to 116.120.5.222 port 443
[mov,mp4,m4a,3gp,3g2,mj2 @ 0x5ee88cbc1e40] Found duplicated MOOV Atom. Skipped it
[https @ 0x704b1c01da00] Opening 'https://livecloud.pstatic.net/chzzk/lip2_kr/cflexnmss2u0169/o0chsu7z9rmqpcguammj7zbl4i0oivg89q/hdntl=exp=1714929877~acl=*%2Fo0chsu7z9rmqpcguammj7zbl4i0oivg89q%2F*~data=hdntl~hmac=0794b759f8675d3ee5a17f0c08e5499f3cbdd3ebacc60a37f8a18cc52c221a64/hls_chunklist_1080p.m3u8' for reading
[hls @ 0x5ee88c8a6800] Skip ('#EXT-X-VERSION:7')
[hls @ 0x5ee88c8a6800] Skip ('#EXT-X-INDEPENDENT-SEGMENTS')
[hls @ 0x5ee88c8a6800] Skip ('#EXT-X-DISCONTINUITY-SEQUENCE:0')
[hls @ 0x5ee88c8a6800] Skip ('#EXT-X-DATERANGE:ID="nmss-daterange",START-DATE="2024-05-05T08:49:23.650Z"')
[hls @ 0x5ee88c8a6800] Skip ('#EXT-X-PROGRAM-DATE-TIME:2024-05-05T08:52:09.650Z')
[hls @ 0x5ee88c8a6800] Skip ('#EXT-X-PROGRAM-DATE-TIME:2024-05-05T08:52:11.650Z')
[hls @ 0x5ee88c8a6800] Skip ('#EXT-X-PROGRAM-DATE-TIME:2024-05-05T08:52:13.650Z')
[https @ 0x704b1c01da00] Opening 'https://livecloud.pstatic.net/chzzk/lip2_kr/cflexnmss2u0169/o0chsu7z9rmqpcguammj7zbl4i0oivg89q/hdntl=exp=1714929877~acl=*%2Fo0chsu7z9rmqpcguammj7zbl4i0oivg89q%2F*~data=hdntl~hmac=0794b759f8675d3ee5a17f0c08e5499f3cbdd3ebacc60a37f8a18cc52c221a64/hls_chunklist_1080p.m3u8' for reading
[hls @ 0x5ee88c8a6800] Skip ('#EXT-X-VERSION:7')
[hls @ 0x5ee88c8a6800] Skip ('#EXT-X-INDEPENDENT-SEGMENTS')
[hls @ 0x5ee88c8a6800] Skip ('#EXT-X-DISCONTINUITY-SEQUENCE:0')
[hls @ 0x5ee88c8a6800] Skip ('#EXT-X-DATERANGE:ID="nmss-daterange",START-DATE="2024-05-05T08:49:23.650Z"')
[hls @ 0x5ee88c8a6800] Skip ('#EXT-X-PROGRAM-DATE-TIME:2024-05-05T08:52:09.650Z')
[hls @ 0x5ee88c8a6800] Skip ('#EXT-X-PROGRAM-DATE-TIME:2024-05-05T08:52:11.650Z')
[hls @ 0x5ee88c8a6800] Skip ('#EXT-X-PROGRAM-DATE-TIME:2024-05-05T08:52:13.650Z')
[https @ 0x704b1c01da00] Opening 'https://livecloud.pstatic.net/chzzk/lip2_kr/cflexnmss2u0169/o0chsu7z9rmqpcguammj7zbl4i0oivg89q/hdntl=exp=1714929877~acl=*%2Fo0chsu7z9rmqpcguammj7zbl4i0oivg89q%2F*~data=hdntl~hmac=0794b759f8675d3ee5a17f0c08e5499f3cbdd3ebacc60a37f8a18cc52c221a64/hls_chunklist_1080p.m3u8' for reading
[hls @ 0x5ee88c8a6800] Skip ('#EXT-X-VERSION:7')
[hls @ 0x5ee88c8a6800] Skip ('#EXT-X-INDEPENDENT-SEGMENTS')
[hls @ 0x5ee88c8a6800] Skip ('#EXT-X-DISCONTINUITY-SEQUENCE:0')
[hls @ 0x5ee88c8a6800] Skip ('#EXT-X-DATERANGE:ID="nmss-daterange",START-DATE="2024-05-05T08:49:23.650Z"')
[hls @ 0x5ee88c8a6800] Skip ('#EXT-X-PROGRAM-DATE-TIME:2024-05-05T08:52:11.650Z')
[hls @ 0x5ee88c8a6800] Skip ('#EXT-X-PROGRAM-DATE-TIME:2024-05-05T08:52:13.650Z')
[hls @ 0x5ee88c8a6800] Skip ('#EXT-X-PROGRAM-DATE-TIME:2024-05-05T08:52:15.650Z')
[hls @ 0x5ee88c8a6800] HLS request for url 'https://livecloud.pstatic.net/chzzk/lip2_kr/cflexnmss2u0169/o0chsu7z9rmqpcguammj7zbl4i0oivg89q/hdntl=exp=1714929877~acl=*%2Fo0chsu7z9rmqpcguammj7zbl4i0oivg89q%2F*~data=hdntl~hmac=0794b759f8675d3ee5a17f0c08e5499f3cbdd3ebacc60a37f8a18cc52c221a64/1080p_0_0_0.m4s?type=hls&filetype=.m4s', offset 0, playlist 0
[https @ 0x704b1c08df00] Opening 'https://livecloud.pstatic.net/chzzk/lip2_kr/cflexnmss2u0169/o0chsu7z9rmqpcguammj7zbl4i0oivg89q/hdntl=exp=1714929877~acl=*%2Fo0chsu7z9rmqpcguammj7zbl4i0oivg89q%2F*~data=hdntl~hmac=0794b759f8675d3ee5a17f0c08e5499f3cbdd3ebacc60a37f8a18cc52c221a64/1080p_0_0_0.m4s?type=hls&filetype=.m4s' for reading
[AVIOContext @ 0x704b1c6a8240] Statistics: 2064092 bytes read, 0 seeks
[hls @ 0x5ee88c8a6800] HLS request for url 'https://livecloud.pstatic.net/chzzk/lip2_kr/cflexnmss2u0169/o0chsu7z9rmqpcguammj7zbl4i0oivg89q/hdntl=exp=1714929877~acl=*%2Fo0chsu7z9rmqpcguammj7zbl4i0oivg89q%2F*~data=hdntl~hmac=0794b759f8675d3ee5a17f0c08e5499f3cbdd3ebacc60a37f8a18cc52c221a64/1080p_588013233_1714899135650_172_0_86.m4v?type=hls&bitrate=1007852&filetype=.m4v', offset 0, playlist 0
[hls @ 0x5ee88c8a6800] Opening 'https://livecloud.pstatic.net/chzzk/lip2_kr/cflexnmss2u0169/o0chsu7z9rmqpcguammj7zbl4i0oivg89q/hdntl=exp=1714929877~acl=*%2Fo0chsu7z9rmqpcguammj7zbl4i0oivg89q%2F*~data=hdntl~hmac=0794b759f8675d3ee5a17f0c08e5499f3cbdd3ebacc60a37f8a18cc52c221a64/1080p_588013233_1714899135650_172_0_86.m4v?type=hls&bitrate=1007852&filetype=.m4v' for reading
[tcp @ 0x704b1c39f500] Starting connection attempt to 211.47.29.69 port 443
[tcp @ 0x704b1c39f500] Successfully connected to 211.47.29.69 port 443
[in#0/hls @ 0x5ee88c8a6700] EOF while reading input
[in#0/hls @ 0x5ee88c8a6700] Terminating demuxer thread
No more output streams to write to, finishing.
[out#0/mpegts @ 0x5ee88cf3a980] All streams finished
[out#0/mpegts @ 0x5ee88cf3a980] Terminating muxer thread
[AVIOContext @ 0x5ee88d29d800] Statistics: 8501924 bytes written, 0 seeks, 33 writeouts
[out#0/mpegts @ 0x5ee88cf3a980] Output file #0 (file:yt-dlp live stream download test 2024-05-05 17_54 [f962d2d9aeb7e8b2e845e775ee7546df].mp4.part):
[out#0/mpegts @ 0x5ee88cf3a980]   Output stream #0:0 (video): 480 packets muxed (8035941 bytes); 
[out#0/mpegts @ 0x5ee88cf3a980]   Output stream #0:1 (audio): 375 packets muxed (192000 bytes); 
[out#0/mpegts @ 0x5ee88cf3a980]   Total: 855 packets (8227941 bytes) muxed
[out#0/mpegts @ 0x5ee88cf3a980] video:7848kB audio:188kB subtitle:0kB other streams:0kB global headers:0kB muxing overhead: 3.329910%
size=    8303kB time=00:00:07.99 bitrate=8508.3kbits/s speed=   1x    
[in#0/hls @ 0x5ee88c8a6700] Input file #0 (https://livecloud.pstatic.net/chzzk/lip2_kr/cflexnmss2u0169/o0chsu7z9rmqpcguammj7zbl4i0oivg89q/hdntl=exp=1714929877~acl=*%2Fo0chsu7z9rmqpcguammj7zbl4i0oivg89q%2F*~data=hdntl~hmac=0794b759f8675d3ee5a17f0c08e5499f3cbdd3ebacc60a37f8a18cc52c221a64/hls_chunklist_1080p.m3u8):
[in#0/hls @ 0x5ee88c8a6700]   Input stream #0:0 (video): 480 packets read (8035941 bytes); 
[in#0/hls @ 0x5ee88c8a6700]   Input stream #0:1 (audio): 375 packets read (192000 bytes); 
[in#0/hls @ 0x5ee88c8a6700]   Total: 855 packets (8227941 bytes) demuxed
[AVIOContext @ 0x704b1c3ada80] Statistics: 0 bytes read, 0 seeks
[AVIOContext @ 0x5ee88cf3b300] Statistics: 2049764 bytes read, 0 seeks
[AVIOContext @ 0x704b1c393000] Statistics: 3594 bytes read, 0 seeks
[AVIOContext @ 0x5ee88cbc5340] Statistics: 719 bytes read, 0 seeks
[download] 100% of    8.11MiB in 00:00:09 at 886.01KiB/s
[debug] ffprobe command line: ffprobe -hide_banner -show_format -show_streams -print_format json 'file:yt-dlp live stream download test 2024-05-05 17_54 [f962d2d9aeb7e8b2e845e775ee7546df].mp4'
[debug] ffmpeg command line: ffprobe -show_streams 'file:yt-dlp live stream download test 2024-05-05 17_54 [f962d2d9aeb7e8b2e845e775ee7546df].mp4'
[FixupM3u8] Fixing MPEG-TS in MP4 container of "yt-dlp live stream download test 2024-05-05 17_54 [f962d2d9aeb7e8b2e845e775ee7546df].mp4"
[debug] ffmpeg command line: ffmpeg -y -loglevel repeat+info -i 'file:yt-dlp live stream download test 2024-05-05 17_54 [f962d2d9aeb7e8b2e845e775ee7546df].mp4' -map 0 -dn -ignore_unknown -c copy -f mp4 -bsf:a aac_adtstoasc -movflags +faststart 'file:yt-dlp live stream download test 2024-05-05 17_54 [f962d2d9aeb7e8b2e845e775ee7546df].temp.mp4'
@hui1601 hui1601 added site-bug Issue with a specific website triage Untriaged issue labels May 5, 2024
@hui1601
Copy link
Contributor Author

hui1601 commented May 17, 2024

The Chzzk server does not replace the chunk on error (EOF); chzzk web page client simply skips the erroneous chunk.
The -reconnect_at_eof in ffmpeg doesn't help, I'm looking for a way to skip the chunk where the EOF occurred.
Alternatively, retrying when an error occurs seems like a good idea. Does anyone know how to make the extractor retry when ffmpeg exits even though the live stream hasn't ended?

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
site-bug Issue with a specific website triage Untriaged issue
Projects
None yet
Development

No branches or pull requests

1 participant