I occasionally try to download live streams on YouTube while they're live since they occasionally disappear or get edited for copyright strikes.
I've made changes to the 'retry' settings and some new ones like retry-sleep (although I'm not sure I understand it well), but it's not fixing the issue.
It frequently gives up downloading even though the stream is still running.
My current command:
Code:yt-dlp.exe -N 4 --retry-sleep fragment:exp=1:20 -R 25 --fragment-retries 25 --restrict-filenames "%stream%" -P temp:"C:\yt-dlp\Temp" -P home:"D:\My Downloads\" --live-from-start --wait-for-video 60 -o "%%(title)s.%%(ext)s"
Support our site by donate $5 directly to us Thanks!!!
Try StreamFab Downloader and download streaming video from Netflix, Amazon!
Try StreamFab Downloader and download streaming video from Netflix, Amazon!
+ Reply to Thread
Results 1 to 11 of 11
-
-
try ytarchive: https://github.com/Kethsar/ytarchive
i've found it much better than yt-dlp / ffmpeg when dealing with youtube livestreams. -
It sounded good before I started researching the whole necessary POToken thing. Weird that the ytarchive can't manage that since yt-dlp doesn't require it.
-
try it. i've not used a potoken. but youtube is getting annoying sometimes, if you dl too much or is on an IP they don't like etc.
-
+1
These are my commands.
Code:ytarchive.exe -o "D:/Movies/F1-24hours" --live-from now --threads 2 "https://www.youtube.com/watch?v=KS0r7_7cFDI"
Code:ytarchive.exe -o "D:/Movies/F1-24hours" --live-from -4h12m00s --threads 2 "https://www.youtube.com/watch?v=KS0r7_7cFDI"
Code:::ytarchive.exe -o "D:/Movies/F1-24hours" --live-from 00:00:00 --threads 2 "https://www.youtube.com/watch?v=KS0r7_7cFDI"
-
Anything similar to --restrict-filenames? I can't find it if there is.
Also, most of what I'm trying to do aren't working. --vp9 doesn't get the vp9 codec, even though it exists. --temporary-dir doesn't work and neither does -o for that matter. Everything gets downloaded and saved in the folder with ytarchive.exe.
(I did try forward slashes as well.)Last edited by doctorm; 4th Jul 2025 at 23:14.
-
"doesn't work" isn't giving us much to go on. show the full command(s) you say don't work.
there's no restrict filename option. if title has problematic characters, i'd avoid it. i use --add-metadata so the title is added there.
-o is for filename but supports using a folder/full path prefixed in front of the filename. i use the filename templates: -o "%(upload_date)s.%(title)s.%(id)s" but you can hardcode the filename (without extension). i tested all variations just now. make sure you quote it properly if spaces etc. i used normal windows path, i.e. backslashes.
--temporary-dir worked for me.
--vp9 didn't, but when i checked formats with yt-dlp (yt-dlp --live-from-start -F), it didn't show them either, so this might be a youtube issue as they've been restricting formats in various ways. maybe those actually require a potoken. -
Maybe it's a Win10 issue. Thanks.
Code:"C:\ytarchive\ytarchive.exe" "%stream%" best --threads 2 --temporary-dir "C:\ytarchive\temp" --live-from 00:00:00 -o "D:\Incoming"
-
-
Thanks!
Moving the URL to the end fixed all the issues, including VP9 being downloaded. Weirdly yt-dlp claims it isn't superior to H.264 anymore, but I'm not sure I believe that.
Other weird things:
Code:"C:\ytarchive\ytarchive.exe" --vp9 --threads 2 --temporary-dir "C:\ytarchive\Temp" --live-from 00:00:00 -o "D:\My Downloads\Incoming\%(title)s" "%stream%" best
--live-from-start generates an error.
The files in the temporary director aren't deleted when finished. -
yes, -o is for the filename, so using just a path is likely to fail in unintended ways.
--live-from-start is a yt-dlp argument, not a valid ytarchive argument. as i said, it starts from the beginning by default, so no need to use --live-from 00:00:00
it cleans up after itself when stream ends for me. would need to see the output of your command to troubleshoot that issue.
Similar Threads
-
Live stream from YouTube
By peachyoon in forum Video Streaming DownloadingReplies: 3Last Post: 4th Jun 2024, 08:52 -
ANYBODY can help me with this m3u8 live streaming, yt-dlp and ffmpeg????
By marioeivissa in forum Video Streaming DownloadingReplies: 5Last Post: 20th Oct 2023, 12:21 -
QVC Live Stream Youtube Download
By takistexas in forum Video Streaming DownloadingReplies: 22Last Post: 28th Jul 2023, 12:40 -
How to get the lowest latency while playing a youtube live stream?
By jankowal in forum Video Streaming DownloadingReplies: 0Last Post: 27th Jun 2023, 10:29 -
Youtube-dl and Youtube-dlp no longer work with nbc. Help with dl this link?
By PennyHartz in forum Video Streaming DownloadingReplies: 27Last Post: 30th Dec 2021, 01:59