this post was submitted on 17 Jun 2025
731 points (98.8% liked)

Technology

71582 readers
3607 users here now

This is a most excellent place for technology news and articles.


Our Rules


  1. Follow the lemmy.world rules.
  2. Only tech related news or articles.
  3. Be excellent to each other!
  4. Mod approved content bots can post up to 10 articles per day.
  5. Threads asking for personal tech support may be deleted.
  6. Politics threads may be removed.
  7. No memes allowed as posts, OK to post as comments.
  8. Only approved bots from the list below, this includes using AI responses and summaries. To ask if your bot can be added please contact a mod.
  9. Check for duplicates before posting, duplicates may be removed
  10. Accounts 7 days and younger will have their posts automatically removed.

Approved Bots


founded 2 years ago
MODERATORS
you are viewing a single comment's thread
view the rest of the comments
[–] B_DL@lemmynsfw.com 7 points 1 day ago (3 children)

I’m new to yt-dlp. Care to share your flags? I’m a little confused on which ones I actually need.

[–] tal@lemmy.today 23 points 1 day ago* (last edited 1 day ago) (2 children)

I mean, you don't need anything; it'll work with no flags. I have these:

$ cat ~/.config/yt-dlp/config
--embed-subs
--embed-metadata
--embed-chapters
--embed-thumbnail
--sponsorblock-mark=all
$

That'll just embed some useful metadata in the file.

[–] sh00g@lemmy.zip 2 points 55 minutes ago (1 children)

Also if you just want the audio to listen to (I like to do this with TTRPGs) you can do:

yt-dlp -x -f bestaudio

Also works great in a pinch for getting sounds and music for FoundryVTT.

[–] tal@lemmy.today 1 points 29 minutes ago* (last edited 27 minutes ago)

I'm pretty sure that it defaults to best quality.

goes looking at man page

   By default, yt-dlp tries to download the best available quality if you don't  pass  any  options.   This  is  generally
   equivalent to using -f bestvideo*+bestaudio/best.  However, if multiple audiostreams is enabled (--audio-multistreams),
   the  default  format changes to -f bestvideo+bestaudio/best.  Similarly, if ffmpeg is unavailable, or if you use yt-dlp
   to stream to stdout (-o -), the default becomes -f best/bestvideo+bestaudio.

So I think that it should normally pull down the best audio unless you get into some situation where YouTube doesn't offer a format that simultaneously has the combination of highest audio quality with the highest video quality; if it has to do so to get the highest video quality then, it'll sacrifice audio quality.

EDIT: Hmm. I could have sworn that there was more text about prioritizing relative audio and video quality at one point in the man page, but I don't see anything there now. Maybe it can just always get the best audio quality, regardless of video quality, can pull 'em entirely separately.

[–] LodeMike@lemmy.today 3 points 22 hours ago* (last edited 19 hours ago) (1 children)

Note that subtitles doesn't include automatic subtitles. For that you have to do --write-auto-subs in conjunction

[–] tal@lemmy.today 4 points 20 hours ago* (last edited 20 hours ago) (1 children)

Thanks.

EDIT: There isn't an --embed-auto-subs, but there is a --write-auto-subs.

[–] LodeMike@lemmy.today 3 points 19 hours ago
[–] SpicyTaint@lemmy.world 4 points 23 hours ago* (last edited 23 hours ago) (1 children)

I'm a filthy Windows user that's too lazy to migrate my main PC to Fedora.

> Path\to\yt-dlp.exe -P <target directory> <URL>

Multiple URLs can be separated by spaces. Put any URLs with ampersands in quotes or remove the ampersand and following arguments.

You can find a list of all the arguments on the yt-dlp github page

[–] OwlPaste@lemmy.world 2 points 22 hours ago

I like https://github.com/ArabCoders/ytptube gui. Only started using it yesterday, so far for indovidual videos. However it looks like it can also watch new videos being uploaded, thought not tried it myself.

Use docker compose for quick deployment