Audio-Only Mode¶
Basic Audio Download¶
Selects the best available audio-only format automatically.
Selection Priority¶
- Highest bitrate audio-only format
- Best codec (Opus > AAC > MP3)
- Falls back to progressive format if audio-only is unavailable
Specific Audio Quality¶
# 128kbps audio
ytdl-go -audio -quality 128k URL
# Best quality audio
ytdl-go -audio -quality best URL
# Lowest quality (smallest file)
ytdl-go -audio -quality worst URL
Specific Audio Format¶
Download Strategy¶
Audio-only downloads use a multi-layered fallback strategy:
- Direct audio-only download — Standard chunked download of the audio stream
- Single request retry — If a 403 error occurs, retries without chunking
- FFmpeg fallback — Downloads a progressive video and extracts the audio track
The FFmpeg fallback requires FFmpeg to be installed. See Installation for setup instructions.
Music Library Archiving¶
Combine audio mode with output templates and metadata overrides:
ytdl-go -audio \
-o "Music/{artist}/{album}/{index} - {title}.{ext}" \
-meta album="Album Name" \
URL
ID3 Tags¶
For MP3 files, ytdl-go automatically embeds ID3 tags with available metadata (title, artist, album). Use -meta to override: