this post was submitted on 14 Sep 2026
23 points (96.0% liked)

Free and Open Source Software

22954 readers
15 users here now

If it's free and open source and it's also software, it can be discussed here. Subcommunity of Technology.


This community's icon was made by Aaron Schneider, under the CC-BY-NC-SA 4.0 license.

founded 4 years ago
MODERATORS
 

Naked self-interest disclaimer: I want the best config for the --output option, one that sorts downloads into folders, respects playlist order etc., and never ever displays the string NA, no matter which extractor is used (I mostly use youtube and bandcamp).


edit: here's my own:

-S res:720  
--embed-metadata  
--embed-thumbnail  

# maybe that'll speed things up  
--concurrent-fragments 3  
--buffer-size 16k  
#  

--output "%(channel,playlist_channel,uploader,creator)s/%(playlist)s/%(playlist_index,playlist_autonumber,video_autonumber,autonumber)03d %(display_id,title,id)s (%(duration_string|_)s).%(ext)s"  

--sleep-subtitles 1  
--sub-langs "en.*,de.*,fi.*"  
--embed-subs  

Any suggestions on improving --output...

you are viewing a single comment's thread
view the rest of the comments
[โ€“] alanceil@feddit.org 2 points 5 days ago* (last edited 5 days ago) (1 children)

Used in converting videos to podcast episodes using dir2cast:

--force-ipv6 #use with net.ipv6.conf.all.use_tempaddr = 2
--ffmpeg-location "~/src/FFmpeg" #selfcompiled ffmpeg with he-aac support
#convert to he-aac (v1, for music bed compatibility) and filter mic noise:
--exec "~/src/FFmpeg/ffmpeg -y -i %(filepath)q -af afftdn=nf=-25,highpass=f=100 -c:a libfdk_aac -profile:a aac_he -b:a 64k -ar 44100 -c:v copy -disposition:v attached_pic -map_metadata 0 -map_chapters 0 %(filepath)q.filtered.m4a && mv %(filepath)q.filtered.m4a %(filepath)q" 
--js-runtimes quickjs #for solving challenges
--remote-components ejs:github #for updates on how to solve the challenges
--extract-audio 
--audio-format m4a #best compatibility with dir2cast & overcast
--embed-thumbnail
--embed-metadata
--embed-chapters
--no-progress #this thing runs as a systemd timer service, prevent logspam
--paths /tmp/ytdlp #no unnecessary writes to storage
--sponsorblock-remove default #remove in-video ads
#only download the newest video from a channel at most 1 month old:
--break-on-existing
--break-on-reject
--dateafter now-1month
--download-archive ~/var/downloaded.ytdlp
[โ€“] A_norny_mousse@piefed.zip 2 points 5 days ago

Nice. It's basically a podcast app now.

FWIW

  • remote-components ejs:github is the default anyhow (unless you obtain your ty-dlp in weird ways)
  • embed-chapters is already contained in embed-metadata