Sound Editing
Design
Hacks / Utilities
- yt-dlp #cli #downloader #youtube #automation
- Requires:
yt-dlp, ffmpeg — optional: aria2c, mutagen - Audio Extraction
- Basic:
yt-dlp -x --audio-format mp3 "URL" - Best quality MP3:
yt-dlp -x --audio-format mp3 --audio-quality 0 "URL" - No conversion (keep original
.opus / .m4a): yt-dlp -x "URL" - Opus (best quality-to-size):
yt-dlp -x --audio-format opus --audio-quality 0 "URL" - Custom bitrate via ffmpeg:
yt-dlp -x --audio-format mp3 --postprocessor-args "ffmpeg:-b:a 192k" "URL" - Normalize volume:
yt-dlp -x --audio-format mp3 --postprocessor-args "ffmpeg:-af loudnorm=I=-16:LRA=11:TP=-1.5" "URL" - Time range extraction (requires ffmpeg):
yt-dlp -x --audio-format mp3 --download-sections "*00:30-02:15" --force-keyframes-at-cuts "URL" - Metadata & Packaging
- Embed thumbnail (requires
mutagen or AtomicParsley): yt-dlp -x --audio-format mp3 --embed-thumbnail "URL" - Embed metadata (title, artist, etc.):
yt-dlp -x --audio-format mp3 --embed-thumbnail --embed-metadata "URL" - Save full info to file:
yt-dlp --write-info-json "URL" - Everything (subs + thumbnail + metadata):
yt-dlp --write-subs --embed-subs --embed-thumbnail --write-thumbnail "URL" - Video Download
- Best quality MP4:
yt-dlp -f "bestvideo+bestaudio" --merge-output-format mp4 "URL" - Capped at 720p:
yt-dlp -f "bestvideo[height<=720]+bestaudio" --merge-output-format mp4 "URL" - Capped at 1080p:
yt-dlp -f "bestvideo[height<=1080]+bestaudio" --merge-output-format mp4 "URL" - H.264 + M4A (widest compatibility):
yt-dlp -f "bestvideo[ext=mp4][vcodec^=avc1]+bestaudio[ext=m4a]" "URL" - Video only (no audio):
yt-dlp -f "bestvideo" "URL" - Audio only (no conversion):
yt-dlp -f "bestaudio" "URL" - Subtitles
- Download only (no video):
yt-dlp --write-subs --sub-lang en --skip-download "URL" - Embed into video:
yt-dlp --write-subs --sub-lang en --embed-subs "URL" - Format Inspection
- List all formats:
yt-dlp -F "URL" - Download by format code:
yt-dlp -f FORMAT_CODE "URL" - Output & Naming
- Custom filename:
yt-dlp -x --audio-format mp3 -o "%(title)s.%(ext)s" "URL" - Save to directory:
yt-dlp -x --audio-format mp3 -o "~/Downloads/%(title)s.%(ext)s" "URL" - Playlists & Channels
- Full playlist as MP3:
yt-dlp -x --audio-format mp3 --yes-playlist "PLAYLIST-URL" - Latest N videos from channel:
yt-dlp --playlist-end 10 "CHANNEL-URL" - Skip errors and continue:
yt-dlp --ignore-errors "PLAYLIST-URL" - Sleep between downloads:
yt-dlp --sleep-interval 5 --max-sleep-interval 10 "PLAYLIST-URL" - Network & Performance
- Limit speed (1 MB/s):
yt-dlp --limit-rate 1M "URL" - Throttled rate (avoid platform throttling):
yt-dlp --throttled-rate 1M "URL" - Faster downloads via aria2c:
yt-dlp --downloader aria2c "URL" - Use a proxy:
yt-dlp --proxy "http://proxy-server:port" "URL" - Browser cookies (age-restricted content):
yt-dlp --cookies-from-browser chrome "URL" - Reliability
- Resume interrupted download:
yt-dlp --continue "URL" - Retry on failure:
yt-dlp --retries 10 --fragment-retries 10 "URL" - Verbose/debug output:
yt-dlp -v "URL"
Operating Systems
- Linux #os #opensource #dev
- macOS #os #apple #unix
- Calibre #ebooks #pdf #conversion
- k2pdfopt #pdf #optimization #kindle
- Pandoc #conversion #documents #cli
- Python #scripting #automation #general
Programming
Android (FOSS Focus)
Text Manipulation
Translation
Video Editing
Web & Publishing
Writing