https://github.com/lissone/yt-mp3-converter
Python script that downloads YouTube videos and converts them to MP3 using yt-dlp and FFmpeg.
https://github.com/lissone/yt-mp3-converter
difflib ffmpeg python yt-dlp
Last synced: 5 months ago
JSON representation
Python script that downloads YouTube videos and converts them to MP3 using yt-dlp and FFmpeg.
- Host: GitHub
- URL: https://github.com/lissone/yt-mp3-converter
- Owner: Lissone
- Created: 2024-09-07T22:39:18.000Z (almost 2 years ago)
- Default Branch: main
- Last Pushed: 2024-09-20T22:14:59.000Z (over 1 year ago)
- Last Synced: 2025-03-04T18:16:14.190Z (over 1 year ago)
- Topics: difflib, ffmpeg, python, yt-dlp
- Language: Python
- Homepage:
- Size: 12.7 KB
- Stars: 0
- Watchers: 1
- Forks: 0
- Open Issues: 0
-
Metadata Files:
- Readme: README.md
Awesome Lists containing this project
README
Youtube MP3 Converter
Description |
Requirements |
Technologies |
Usage
## Description
A Python script that downloads YouTube videos and automatically converts them to MP3 using yt-dlp and FFmpeg. Simple to set up and use, with options for customization.
## Requirements
- [Python](https://www.python.org/downloads/)
- [FFmpeg](https://ffmpeg.org/download.html)
- [yt-dlp](https://github.com/yt-dlp/yt-dlp)
## Technologies
- Python
- yt-dlp
- difflib
- logging
- FFmpeg
## Usage
### 1. Install Python
Download and install Python from the [official website](https://www.python.org/downloads/), ensuring the option "Add Python to PATH" is checked during installation.
### 2. Install dependencies
Open the command prompt and install `yt-dlp`:
```bash
pip install yt-dlp
```
### 3. Install FFmpeg
1. Download FFmpeg from [here](https://ffmpeg.org/download.html) and extract the files to a directory (e.g., `C:\ffmpeg`).
2. Add `C:\ffmpeg\bin` to your system's `PATH` environment variable.
### 4. Prepare the `urls.txt` file
Create a `urls.txt` file in the same directory as the script and add the YouTube URLs you want to download, one per line.
### 5. Run the script
Run the script with the following command:
```bash
python main.py
```
### 6. Optional: Customize the output directory
By default, the script saves files in the `downloads` folder. You can modify this by changing the `output_dir` parameter in the script.
## License
Distributed under the MIT License. See `LICENSE` for more information.
Made with ❤️ by Lissone