youtube_chapter_splitter-0.15.3 has been yanked.
youtube-chapter-splitter
ytcs: Download complete YouTube albums, cleanly split into MP3 tracks with metadata and cover art.
youtube-chapter-splitter (or ytcs) is a CLI tool designed for one thing: archiving music from YouTube perfectly. It downloads the video, extracts audio to MP3, fetches the cover art, cleans titles, and splits the audio into pristine tracks based on chapters.
Features
- Interactive TUI: Beautiful terminal UI (default mode) for guided downloads
- Quick CLI: Direct URL download with
ytcs --cli <URL> - MP3 Download: High-quality audio (192 kbps by default)
- Automatic Cover Art: Album artwork embedded in MP3 metadata
- Smart Chapter Detection: YouTube chapters → description parsing → silence detection fallback
- Chapter Refinement: Adjusts markers using silence detection for precise splits
- Playlist Support: Download entire playlists with interactive selection
- Complete Metadata: Title, artist, album, track number, cover art
- Persistent Configuration:
config.tomlfile for your preferences - Auto-Dependency Check: Detects missing yt-dlp/ffmpeg and prompts to install
Installation
Prerequisites
ytcs requires:
# Ubuntu/Debian
# macOS
# Windows (chocolatey)
Pre-compiled Binaries (Recommended)
Download from Releases.
# Linux
# macOS (Intel)
Via cargo
Build from Source
Usage
Interactive Mode (Default)
Launch the TUI:
Keyboard shortcuts:
Enter/D- Download from URLS- SettingsH- HelpQ- QuitEsc- Go back
CLI Mode
Download directly:
# Single video
# Custom output
# Override artist/album
Options:
| Option | Description |
|---|---|
-o, --output <DIR> |
Output directory |
-a, --artist <ARTIST> |
Force artist name |
-A, --album <ALBUM> |
Force album name |
--no-cover |
Skip cover art |
--no-refine-chapters |
Disable silence refinement |
With URL (TUI pre-filled)
# Launches TUI with URL ready to download
Configuration
Config file: ~/.config/ytcs/config.toml
# View config
# Set value
# Reset to defaults
| Key | Default | Description |
|---|---|---|
default_output_dir |
~/Music |
Output folder |
download_cover |
true |
Download cover art |
filename_format |
"%n - %t" |
File format |
directory_format |
"%a - %A" |
Folder format |
audio_quality |
192 |
MP3 quality (kbps) |
playlist_behavior |
ask |
ask / video_only / playlist_only |
cookies_from_browser |
- | Browser for cookies |
Format placeholders:
%n- Track number%t- Track title%a- Artist%A- Album
Debugging
# Verbose logging
RUST_LOG=debug
# Save logs
RUST_LOG=debug |
Changelog
See CHANGELOG.md.
Recent:
- 0.15.1 - TUI by default, URL pre-fill, reduced verbosity
- 0.15.0 - Interactive TUI mode, dependency auto-detection
- 0.14.7 - Windows forbidden character filtering
License
MIT