VideoHelp Forum

+ Reply to Thread
Results 1 to 4 of 4
Thread
  1. Hello

    I have issues on recording livestream of the link below
    https://nifc77.dcs.redcdn.pl/livedash/o2/NIFC/live/konkurs-finaly-2021-4k.livx?type=vi...e=656615060853

    As you can see from the code below, yt-dlp can only record for 30 secs and then stop automatically. Is there any way to keep recording until livestream ends?

    G:\youtube-dl\yt-dlp.exe https://nifc77.dcs.redcdn.pl/livedash/o2/NIFC/live/konkurs-finaly-2021-4k.livx?type=vi...e=656615060853
    [generic] konkurs-finaly-2021-4k: Requesting header
    WARNING: [generic] Falling back on generic information extractor.
    [generic] konkurs-finaly-2021-4k: Downloading webpage
    [generic] konkurs-finaly-2021-4k: Extracting information
    [info] konkurs-finaly-2021-4k: Downloading 1 format(s): 0+1
    [dashsegments] Total fragments: 9
    [download] Destination: konkurs-finaly-2021-4k [konkurs-finaly-2021-4k].f0.mp4
    [download] 100% of 80.16MiB in 00:58
    [dashsegments] Total fragments: 9
    [download] Destination: konkurs-finaly-2021-4k [konkurs-finaly-2021-4k].f1.m4a
    [download] 100% of 1.23MiB in 00:19
    [Merger] Merging formats into "konkurs-finaly-2021-4k [konkurs-finaly-2021-4k].mp4"
    Deleting original file konkurs-finaly-2021-4k [konkurs-finaly-2021-4k].f0.mp4 (pass -k to keep)
    Deleting original file konkurs-finaly-2021-4k [konkurs-finaly-2021-4k].f1.m4a (pass -k to keep)
    'ft' is not recognized as an internal or external command,
    operable program or batch file.
    'id' is not recognized as an internal or external command,
    operable program or batch file.
    'bitrate' is not recognized as an internal or external command,
    operable program or batch file.
    'startTime' is not recognized as an internal or external command,
    operable program or batch file.
    Quote Quote  
  2. Member
    Join Date
    Jan 2021
    Location
    Argentina
    Search PM
    yt-dlp doesn't record live streams. Anyway, you could try with ffmpeg as external downloader:

    Code:
    yt-dlp --downloader ffmpeg "https://nifc77.dcs.redcdn.pl/livedash/o2/NIFC/live/konkurs-finaly-2021-4k.livx?type=video&ft=1&id=20&bitrate=800000&startTime=656615060853"
    Or with Streamlink:

    Code:
    streamlink "dash://https://nifc77.dcs.redcdn.pl/livedash/o2/NIFC/live/konkurs-finaly-2021-4k.livx?type=video&ft=1&id=20&bitrate=800000&startTime=656615060853" best -o video.mp4
    Quote Quote  
  3. Originally Posted by lfer94 View Post
    yt-dlp doesn't record live streams. Anyway, you could try with ffmpeg as external downloader:

    Code:
    yt-dlp --downloader ffmpeg "https://nifc77.dcs.redcdn.pl/livedash/o2/NIFC/live/konkurs-finaly-2021-4k.livx?type=video&ft=1&id=20&bitrate=800000&startTime=656615060853"
    Or with Streamlink:

    Code:
    streamlink "dash://https://nifc77.dcs.redcdn.pl/livedash/o2/NIFC/live/konkurs-finaly-2021-4k.livx?type=video&ft=1&id=20&bitrate=800000&startTime=656615060853" best -o video.mp4
    There is something wrong with the first code.
    yt-dlp.exe --downloader ffmpeg "https://r.dcs.redcdn.pl/livedash/o2/NIFC/live/konkurs-finaly-2021-4k.livx?indexMode?startTime=656700300000&startTime =656700300000"
    [generic] konkurs-finaly-2021-4k: Requesting header
    [redirect] Following redirect to https://n-12-2.dcs.redcdn.pl/livedash/o2/NIFC/live/konkurs-finaly-2021-4k.livx?indexMo...e=656700300000
    [generic] konkurs-finaly-2021-4k: Requesting header
    WARNING: [generic] Falling back on generic information extractor.
    [generic] konkurs-finaly-2021-4k: Downloading webpage
    [generic] konkurs-finaly-2021-4k: Extracting information
    [info] konkurs-finaly-2021-4k: Downloading 1 format(s): 0+1
    [download] Destination: konkurs-finaly-2021-4k [konkurs-finaly-2021-4k].mp4
    Unrecognized option 'headers'.
    Error splitting the argument list: Option not found


    ERROR: ffmpeg exited with code 1

    The second one works. Thank you!
    streamlink "dash://https://r.dcs.redcdn.pl/livedash/o2/NIFC/live/konkurs-finaly-2021-4k.livx?indexMode?startTime=656700300000&startTime =656700300000" best -o chopin.mp4
    [cli][info] Found matching plugin dash for URL dash://https://r.dcs.redcdn.pl/livedash/o2/NIFC/live/konkurs-finaly-2021-4k.livx?indexMode?startTime=656700300000&startTime =656700300000
    [cli][info] Available streams: 180p (worst), 360p, 540p_alt, 540p, 720p, 1080p, 2160p (best)
    [cli][info] Opening stream: 2160p (dash)
    [utils.named_pipe][info] Creating pipe streamlinkpipe-9100-1-3385
    [utils.named_pipe][info] Creating pipe streamlinkpipe-9100-2-9311
    [download][chopin.mp4] Written 1.81 GB (12m10s @ 3.8 MB/s)
    Quote Quote  
  4. Member
    Join Date
    Jan 2021
    Location
    Argentina
    Search PM
    Originally Posted by Alan2154 View Post
    The second one works. Thank you!
    streamlink "dash://https://r.dcs.redcdn.pl/livedash/o2/NIFC/live/konkurs-finaly-2021-4k.livx?indexMode?startTime=656700300000&startTime =656700300000" best -o chopin.mp4
    [cli][info] Found matching plugin dash for URL dash://https://r.dcs.redcdn.pl/livedash/o2/NIFC/live/konkurs-finaly-2021-4k.livx?indexMode?startTime=656700300000&startTime =656700300000
    [cli][info] Available streams: 180p (worst), 360p, 540p_alt, 540p, 720p, 1080p, 2160p (best)
    [cli][info] Opening stream: 2160p (dash)
    [utils.named_pipe][info] Creating pipe streamlinkpipe-9100-1-3385
    [utils.named_pipe][info] Creating pipe streamlinkpipe-9100-2-9311
    [download][chopin.mp4] Written 1.81 GB (12m10s @ 3.8 MB/s)
    You are welcome. Don't forget to add the dash:// prefix, otherwise you will not be able to download those live streams.
    Quote Quote