Ecosyste.ms: Awesome
An open API service indexing awesome lists of open source software.
https://github.com/yduman/yt-to-mp3
Concurrent MP3 conversion of YouTube videos using goroutines
https://github.com/yduman/yt-to-mp3
concurrency conversion ffmpeg go golang goroutines mp3 yt-dlp
Last synced: 19 days ago
JSON representation
Concurrent MP3 conversion of YouTube videos using goroutines
- Host: GitHub
- URL: https://github.com/yduman/yt-to-mp3
- Owner: yduman
- Created: 2025-01-08T17:16:38.000Z (22 days ago)
- Default Branch: main
- Last Pushed: 2025-01-08T18:36:06.000Z (21 days ago)
- Last Synced: 2025-01-08T18:44:53.357Z (21 days ago)
- Topics: concurrency, conversion, ffmpeg, go, golang, goroutines, mp3, yt-dlp
- Language: Go
- Homepage:
- Size: 2.99 MB
- Stars: 0
- Watchers: 1
- Forks: 0
- Open Issues: 0
-
Metadata Files:
- Readme: README.md
Awesome Lists containing this project
README
# yt-to-mp3
Read a list of YouTube URLs from a text file, then use goroutines to concurrently download and convert each video to MP3. Store all resulting MP3 files in a designated output folder.
## Requirements
- [`ffmpeg`](https://www.ffmpeg.org/)
- [`yt-dlp`](https://github.com/yt-dlp/yt-dlp)The input file is expected to have one link for each line. Did not test playlist links.
```txt
...
```## Usage
Build the binary with Go
```console
cd cmd && go build -o yt2mp3
```Run the binary
```console
./yt2mp3 [concurrency]
````concurrency` is by default `10`. It controls how many downloads to run in parallel. The higher the number, the more speed up but also more network/CPU usage.