An open API service indexing awesome lists of open source software.

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.

Awesome Lists containing this project

README

          


Youtube MP3 Converter


Description   |   
Requirements   |   
Technologies   |   
Usage





License
Repo size
Top lang
Stars repo
Forks repo
Pull requests
Last commit


Report bug
·
Request feature


## 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