Skip to content

About

Download music from Youtube videos

Resources

Stars

1 star

Watchers

0 watching

Forks

Latest commit

 

History

1 Commit

Folders and files

Repository files navigation

YouTube Music Downloader

A Windows desktop application for downloading music from YouTube, built with Python and PySide6.

Windows 11 Style UI Python 3.10+ PySide6

Features

  • Embedded Browser: Browse YouTube and YouTube Music directly in the app
  • Account Login: Log into your YouTube account for access to your playlists and recommendations
  • Audio Extraction: High-quality audio extraction using yt-dlp
  • Multiple Formats: Support for MP3, M4A, OPUS, FLAC, and WAV
  • Quality Selection: Choose from 128, 192, 256, or 320 kbps
  • Download Queue: Visual queue with progress bars for each download
  • Metadata Embedding: Automatic embedding of thumbnail, artist, and title
  • Modern UI: Windows 11 style design with Light/Dark mode toggle
  • Non-blocking: Downloads run in background threads (no UI freezing)

Requirements

  • Windows 10/11
  • Python 3.10 or higher
  • FFmpeg (required by yt-dlp for audio conversion)

Installation

1. Install FFmpeg

FFmpeg is required for audio conversion. You can install it via:

Option A: Using winget (Windows Package Manager)

winget install Gyan.FFmpeg

Option B: Using Chocolatey

choco install ffmpeg

Option C: Manual Installation

  1. Download from https://ffmpeg.org/download.html
  2. Extract to a folder (e.g., C:\ffmpeg)
  3. Add the bin folder to your system PATH

2. Install Python Dependencies

pip install -r requirements.txt

Usage

  1. Start the Application

    python main.py
  2. Browse YouTube

    • Use the embedded browser to navigate YouTube or YouTube Music
    • Log in to your account if needed (the browser supports cookies)
  3. Download Audio

    • Navigate to any YouTube video page
    • Click the Download button in the toolbar
    • The download will appear in the queue on the right
  4. Configure Settings

    • Save Location: Click the folder path to change download location
    • Format: Choose between MP3, M4A, OPUS, FLAC, or WAV
    • Quality: Select bitrate (128-320 kbps)
    • Dark Mode: Toggle the moon icon 🌙 for dark theme

File Structure

├── main.py           # Main application window and entry point
├── downloader.py     # Download worker thread using yt-dlp
├── ui_components.py  # Custom UI widgets (cards, queue, nav bar)
├── styles.py         # Light and Dark theme stylesheets
├── requirements.txt  # Python dependencies
└── README.md         # This file

Technical Details

Architecture

  • Main Thread: UI rendering and user interaction
  • Download Workers: Each download runs in its own QThread
  • Signals/Slots: Communication between workers and UI
  • yt-dlp: Used as a library (not subprocess) for better integration

Libraries Used

Library Purpose
PySide6 Qt6 bindings for Python (UI framework)
yt-dlp YouTube download and extraction
mutagen Audio metadata embedding
requests Thumbnail downloading
Pillow Image processing

Troubleshooting

"FFmpeg not found"

Make sure FFmpeg is installed and in your system PATH. Restart the application after installation.

Downloads fail with "HTTP Error 403"

This usually means the video is age-restricted or region-locked. Try logging into your YouTube account in the browser.

UI appears blurry

The application supports high DPI displays. If text appears blurry, try running with:

set QT_ENABLE_HIGHDPI_SCALING=1
python main.py

License

This project is for personal/educational use only. Downloading copyrighted content without permission may violate YouTube's Terms of Service and applicable laws.

Disclaimer

This tool is intended for downloading content you have the right to download (e.g., Creative Commons, your own uploads, or content with explicit download permission). The developers are not responsible for any misuse of this software.

About

Download music from Youtube videos

Resources

Stars

1 star

Watchers

0 watching

Forks

Releases

Packages

Contributors

Languages