xyzzy

pronounced zizz-ee

friendly netpresence who likes to write


blue hellsite
snoothy.tumblr.com/

rnai
@rnai
This page's posts are visible only to users who are logged in.

eramdam
@eramdam

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.


plumpan
@plumpan

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.


You must log in to comment.

in reply to @rnai's post:

in reply to @eramdam's post:

in reply to @plumpan's post:

It looks like what you want is the --parse-metadata flag, which can take a ton of options to transform metadata however you'd like. It looks like you may also want --embed-metadata? Admittedly I've not used this before, so it may not work as intended.

https://github.com/yt-dlp/yt-dlp?tab=readme-ov-file#modifying-metadata

It may not be straightforward to get working the way you'd like, depending on exactly what you want it to do.

I'd also put forward that, if you really care about your file tagging, sourcing things from youtube et al might not be the best option, but music torrent sites won't let one upload silvagunner music so, needs must.

I'm pretty sure I used -F to pick the setting I wanted. I started the command mid stream and the download started from the beginning when I finally opened it.

I actually put the stream in Kdenlive, raised the pitch to sound close enough, then rendered the whole thing.

Weird! I've been using yt-dlp for archiving vods, including the occasional "channel is still live when cron runs" grab, and with mpv to watch twtich for a good while now. Never heard of this.

Super curious what causes it. I know midroll ads play havoc with the timestamps but that shouldn't change the audio pitch.... depending on the player???