TermTube is a lightweight, terminal-based wrapper for yt-dlp that allows you to search for YouTube videos, select formats interactively, and download them with ease. It combines the power of yt-dlp with the interactivity of fzf.
- Search: Search YouTube directly from the terminal.
- Interactive Selection: Navigate search results using
fzf. - Format Control: Interactively choose video/audio quality and formats.
- Dependency Check: Automatically validates required tools.
TermTube relies on the following powerful tools:
yt-dlp: For media extraction.jq: For JSON parsing.fzf: For the fuzzy finder interface.ffmpeg: For media merging and conversion.
TermTube includes an automated installer script that detects Arch Linux and handles pacman operations.
-
Clone the repository:
git clone https://github.com/jalpan04/termtube.git cd termtube -
Run the installer:
chmod +x install.sh ./install.sh
If you prefer manual setup or are using a different distro:
-
Install dependencies:
# Arch sudo pacman -S yt-dlp jq fzf ffmpeg # Debian/Ubuntu sudo apt install yt-dlp jq fzf ffmpeg
-
Make the script executable and move it to your path:
chmod +x termtube sudo ln -s "$(pwd)/termtube" /usr/local/bin/termtube
Simply run termtube in your terminal:
termtube- Enter your search query when prompted.
- Use the Up/Down arrows to navigate video results. Press Enter to select.
- Use the Up/Down arrows to select your desired quality/format. Press Enter to select.
- Choose your download directory (default is current).
This project is licensed under the MIT License - see the LICENSE file for details.