Download videos from social media URLs (X/Twitter, YouTube, Instagram, TikTok, etc.) using yt-dlp. Use when saving a video locally, extracting content for transcription, or archiving video references.
Download a video from $ARGUMENTS (a social media URL) to the current directory using yt-dlp.
Supports X/Twitter, YouTube, Instagram, TikTok, Reddit, and 1400+ other sites.
which yt-dlp, suggest brew install yt-dlp if missingyt-dlp -o "%(title)s.%(ext)s" "URL"
# Best video+audio (default)
yt-dlp -o "%(title)s.%(ext)s" "URL"
# List available formats first
yt-dlp -F "URL"
# Pick a specific format
yt-dlp -f "FORMAT_ID" -o "%(title)s.%(ext)s" "URL"
# Audio only (e.g. for podcasts)
yt-dlp -x --audio-format mp3 -o "%(title)s.%(ext)s" "URL"
# Custom output directory
yt-dlp -o "/path/to/dir/%(title)s.%(ext)s" "URL"
| Platform | Notes |
|---|---|
| X/Twitter | Works with tweet URLs containing video. May need --cookies-from-browser for age-restricted content |
| YouTube | Supports playlists, channels, shorts. Use -F to pick resolution |
| Reels and stories supported. May require authentication for private accounts | |
| TikTok | Direct video URLs work. Watermark-free when available |
| Handles v.redd.it links with audio merging automatically |
ls -lh *.mp4 (or whatever extension was downloaded)/transcribe-video