Skip to content

Converts a YouTube song or playlist to MP3 format with added ability to edit file metadata.

License

Notifications You must be signed in to change notification settings

lucascavone/Youtube_To_MP3

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

15 Commits
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

YouTube-to-MP3 Converter With Metadata Editor

Warning: Converting YouTube videos to MP3 files may be a violation of YouTube's terms of service and may infringe on copyright laws. Please use this tool responsibly and for personal, non-commercial use only. The libraries used in this project are open-source and freely available, but please do not use this tool for any commercial or profit-making purposes.

Usage

This program will accept either a specific YouTube song or playlist link. Before downloading a song, it will ask the user to change the filename if needed, and will prompt the user for the artist and album name which are added as metadata to the file.

Installation

Use the code provided in the main.py file. Import the yt_dlp python library using pip install yt-dlp and the Mutagen python library using the pip install mutagen.

The following ffmpeg.exe and ffprobe.exe binaries should be downloaded from this link. In order for the code to run correctly, these files should be moved to the pythonProject/venv/bin/ folder.

Development

I chose personalization over automation when developing this project since I wanted to be able to manually control the filename, album name and artist.

I used the yt_dlp python library to set the audio specifications and convert the YouTube videos to MP3 files. I used the Mutagen library to access and modify the audio file metadata. I chose to only modify the artist and album name, however the Mutagen library can be used to modify all ID3 metadata tags if needed. Similarly, the yt_dlp library has a built-in function to download YouTube playlists. Since I wanted to be able to modify the filename for each song if needed, I decided to iterate through each song in the playlist without using the built-in function.

About

Converts a YouTube song or playlist to MP3 format with added ability to edit file metadata.

Resources

License

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published

Languages