>>1400953to record a live stream you just need to say 'youtube-dl [URL]' and press enter. you have to do it as close as possible to the stream start time, because it will miss whatever happened before you start it. also, if you just run it that way, then you have to WAIT and DO NOT TOUCH IT after the stream ends and DO NOT PRESS CTRL+C. if you do, the file will be trashed and there is only an extremely remote chance of recovering it. all that is extremely stressful.
so, what you *should* do is run it like this:
'youtube-dl --write-thumbnail --write-description --hls-use-mpegts --no-part [URL]'
this will save an MPEG transport stream file and you can cancel it whenever you want and the file won't be broken. but you should remux it into a normal MPEG 4 video file because TS files are bigger and suck for seeking. most of the time i just dump my recordings into another directory for safekeeping and then download an archive after the stream is finished processing, but sometimes i do need to go back to the recording like if she edits it or something.
after about six hours of a live stream, the playlist with all the fragment URLs expires and youtube-dl shits itself. there is a guy on /t/ working on some kind of archiving tool that works around this but i haven't been following it too closely because he's got all kinds of fancy features in it that don't fit my long-term automation plans at all, and what i need is "literally just youtube-dl but it doesn't shit itself after six hours" without a lot of extra junk and i'm hoping that'll get merged eventually. the way i work around this is a start a second overlapping recording at about 5:55:00 so that if i do have to go back to the recording, i have enough to edit together into a single file.
i hope that helps