Download YouTube videos, extract MP3 audio, save transcripts, and stream to VLC - all from YouTube's interface.
Paste this into an elevated PowerShell window:
irm https://raw.githubusercontent.com/SysAdminDoc/YTYT-Downloader/refs/heads/main/src/Install-YTYT.ps1 | iexThe installer automatically downloads and configures everything: yt-dlp, ffmpeg, VLC detection, protocol handlers, and the userscript.
- Download Video - One-click MP4 downloads up to 1080p with progress UI
- Download Audio - Extract MP3 audio from any video
- Download Transcript - Save video captions/subtitles as timestamped text files
- Stream to VLC - Instantly stream any video to VLC media player
- Progress Popup - Real-time download progress with thumbnail, speed, and ETA
- Auto-Retry - Failed downloads automatically retry up to 3 times
- Settings Panel - Toggle which buttons to show/hide
- Shorts Support - Works on both regular videos and YouTube Shorts
- SPA Compatible - Handles YouTube's single-page navigation seamlessly
The script adds download buttons to YouTube's action bar with a settings gear:
| Button | Color | Function | Default |
|---|---|---|---|
| Video | Green | Download video as MP4 | Shown |
| MP3 | Purple | Download audio as MP3 | Shown |
| TXT | Blue | Download transcript | Shown |
| VLC | Orange | Stream in VLC Player | Hidden |
| ⚙️ | Gray | Settings panel | Always |
Click the gear icon to toggle button visibility. Settings persist across sessions.
Run the PowerShell installer - it handles everything automatically:
- Downloads yt-dlp and ffmpeg
- Detects VLC installation
- Registers protocol handlers
- Creates the userscript
If installing manually, you'll need:
-
Userscript Manager - Install one of:
- Tampermonkey (Chrome, Firefox, Edge, Safari)
- Violentmonkey (Chrome, Firefox, Edge)
- Greasemonkey (Firefox)
-
VLC Media Player - Download
-
yt-dlp - Download
-
ffmpeg - Required for MP3 extraction and video merging
- Open PowerShell as Administrator
- Run the one-liner:
irm https://raw.githubusercontent.com/SysAdminDoc/YTYT-Downloader/refs/heads/main/src/Install-YTYT.ps1 | iex
- Follow the installer prompts
- Install the userscript in your browser
-
Install a userscript manager (see Requirements)
-
Install the userscript:
-
Set up protocol handlers manually (see Protocol Handlers section below)
- The userscript detects YouTube video/Shorts pages
- It injects download buttons into the action bar
- Clicking a button triggers a custom protocol URL:
ytdl://- Download video/audioytvlc://- Stream to VLC
- Windows protocol handlers launch PowerShell scripts
- Download progress appears in a popup window with thumbnail
The transcript button extracts captions directly in the browser:
- Prefers English captions, falls back to first available language
- Includes timestamps in
[MM:SS]format - Downloads as a
.txtfile
If not using the automatic installer, create these registry entries:
Windows Registry Editor Version 5.00
; VLC Protocol Handler
[HKEY_CLASSES_ROOT\ytvlc]
@="URL:YTVLC Protocol"
"URL Protocol"=""
[HKEY_CLASSES_ROOT\ytvlc\shell\open\command]
@="\"C:\\Path\\To\\ytvlc-handler.bat\" \"%1\""
; Download Protocol Handler
[HKEY_CLASSES_ROOT\ytdl]
@="URL:YTDL Protocol"
"URL Protocol"=""
[HKEY_CLASSES_ROOT\ytdl\shell\open\command]
@="\"C:\\Path\\To\\ytdl-handler.bat\" \"%1\""| Issue | Solution |
|---|---|
| Buttons don't appear | Refresh the page or wait for YouTube to fully load |
| "Protocol not recognized" | Re-run the installer or check registry entries |
| VLC doesn't open | Verify VLC is installed and path is correct |
| Download fails | Check that yt-dlp and ffmpeg are installed |
| Settings don't save | Ensure your userscript manager has storage permissions |
| No transcript available | Video doesn't have captions/subtitles |
Run the installer again - it automatically removes the previous installation before reinstalling. To fully uninstall:
- Delete the installation folder (default:
%LOCALAPPDATA%\YTYT) - Remove registry keys under
HKCU:\Software\Classes\for:ytvlc,ytvlcq,ytdl,ytmpv,ytdlplay - Remove the userscript from your userscript manager
- Delete desktop shortcut if created
Contributions are welcome! Please feel free to submit a Pull Request.
This project is licensed under the MIT License - see the LICENSE file for details.
- yt-dlp - The powerful YouTube downloader
- VLC - The versatile media player
- ffmpeg - Audio/video processing