Only want the audio of a video?
yt-dlp "https://www.youtube.com/watch?v=dQw4w9WgXcQ" --extract-audio --audio-format=mp3
Only want a bit of the video?
yt-dlp "https://www.youtube.com/watch?v=dQw4w9WgXcQ" --download-sections="*1:10-1:15"
Only want some chapters of the video?
yt-dlp "https://www.youtube.com/watch?v=dQw4w9WgXcQ" --download-sections="intro-outro"
Want to record a stream at the best quality?
Just point yt-dlp to it, it'll handle it.
I'm sure there are plenty, yt-dlp and has a lot of options. And of course it works on basically anything at this point (assuming there's no DRM), it fucking rules.
Downloading a twitch vod? Wish it would go a little faster? Try -N 12 with that. Or even -N 24. Just keep in mind this is going to generate a separate file for each chunk while it's downloading, which is usually a few thousand. (Do it in a separate folder and move the file after! See mktemp if scripting this)
Format filtering! namely -f "best[height=1080]"
You can pipe yt-dlp's output into a video player too, if it accepts a bitstream input. Like say, yt-dlp -o - | mpv -. Of course, mpv can hook into your local yt-dlp now to make that work without pipes...
I haven't tried it yet, but --live-from-start is supposed to grab a youtube live stream from the beginning until whatever point it's at, which would be very useful if you want to grab a live stream but show up late.
yt-dlp is one of the most useful programs out there, it's extremely good.
