A fast and lightweight YouTube downloader powered by yt-dlp + ffmpeg + LAME
Download high-quality MP3 music or MP4 videos without using complex commands
✅ Two simple modes:
- 🎧 MP3 Mode — Extracts and converts YouTube audio into high-quality MP3 files with thumbnail and metadata.
- 🎬 MP4 Mode — Downloads best video and audio, merges them into MP4 format automatically.
✅ Auto Dependency Check — Automatic dependency detection (yt-dlp, ffmpeg, lame).
✅ Smart Folder System — Auto-creates Downloads/Music and Downloads/Video directories.
✅ Metadata Support — Embeds title, artist, album, and thumbnail.
✅ Playlist Support — Works with both single videos and playlists.
This tool is a simple Windows batch script that automates the YouTube download workflow:
- User selects audio or video mode and provides a YouTube URL.
yt-dlpdownloads the YouTube streams.ffmpegmerges audio and video or extracts sound only.lameconverts the audio to MP3 format.- Thumbnail and metadata are embedded automatically.
YouTube-Downloader/
├── yt-downloader.bat ← Main script
├── yt-dlp.exe ← YouTube downloader core
├── ffmpeg.exe ← Video/audio merger & converter
└── Downloads/ ← Output folder
├── Music/
└── Video/
- Download or clone this repository.
- Place the following files together in the same directory:
yt-downloader.bat yt-dlp.exe ffmpeg.exe - Double-click yt-downloader.bat to start.
- Follow on-screen instructions:
[1] Download music (MP3) [2] Download video (MP4) - Paste the YouTube video or playlist URL.
- Wait for completion — files will appear in the
Downloadsfolder.
- 💻 Works on Windows 10 / 11 with UTF-8 enabled Command Prompt.
- ⬆️ Keep
yt-dlpandffmpegupdated for best compatibility. ⚠️ Some videos may not allow thumbnail embedding due to YouTube restrictions.- ⚖️ For personal use only — Do not use this tool for copyrighted material.
- 🚫 Avoid using folders with Chinese characters or spaces in the path — may cause path issues.
You can tweak some settings in the script to suit your needs:
| Parameter | Section | Default | Description |
|---|---|---|---|
--audio-quality |
MP3 Mode | 0 |
Best quality (0 = highest, 9 = lowest) |
--audio-format |
MP3 Mode | mp3 |
Can be changed to flac, wav, etc. |
-f |
MP4 Mode | "bestvideo[ext=mp4][vcodec^=avc1]+bestaudio[ext=m4a]" |
Choose higher resolution or codec |
-o |
Output Template | `%folder%/%%(playlist_title | Music)s/%%(title)s.%%(ext)s` |
💡 Example: To save downloads on Desktop:
set folder=%userprofile%\Desktop\YouTubeDownloads| Tool | Download | Description |
|---|---|---|
| yt-dlp.exe | 🔗 Download | YouTube downloader core |
| ffmpeg.exe | 🔗 Download | Audio/video converter and merger |
| lame.exe | 🔗 Download | High-quality MP3 encoder |
📁 Place all .exe files in the same folder as the batch file.
===============================================
YouTube Downloader (MP3 / MP4)
Powered by yt-dlp + ffmpeg
===============================================
Please select a download mode:
[1] Download music (MP3)
[2] Download video (MP4)
Please enter option (1 or 2): 1
Please paste the YouTube URL:
https://www.youtube.com/watch?v=dQw4w9WgXcQ
===============================================
✅ Download Complete!
Files saved in: "Downloads"
===============================================
This project was built to make YouTube downloading simple and accessible.
No Python installation, no command-line knowledge needed — just run and enjoy.
🧩 "The best tools are the ones that make you forget you're using them."
This project is free for personal use and educational purposes.
Please comply with YouTube’s Terms of Service and local copyright laws.