A command-line tool to download, cut, and mashup YouTube audio.
Project description
YouTube Audio Mashup 🎵
A powerful command-line utility that downloads videos from YouTube, extracts the audio, cuts them to a specific duration, and merges them into a single, seamless audio mashup.
Created by Gurdarshan Singh (Roll No: 102303217).
🚀 Features
- Automated Searching: Pass the singer/artist name, and it automatically finds the top videos.
- Direct Audio Extraction: Uses
yt-dlpto download high-quality audio directly. - Precision Trimming: Cuts the first
Yseconds from every downloaded track usingpydub. - Seamless Merging: Combines all trimmed clips into one clean
.mp3output file.
🛠 Prerequisites
This tool relies on pydub to process audio, which requires FFmpeg to be installed on your system.
Mac:
brew install ffmpeg
Linux (Ubuntu/Debian):
sudo apt-get install ffmpeg
Windows: Download from FFmpeg official site and add it to your system PATH.
📦 Installation
You can install this package directly from PyPI:
pip install Mashup-Gurdarshan-102303217
💻 Usage
Once installed, you can use the globally available mashup command in your terminal.
Syntax:
mashup <SingerName> <NumberOfVideos> <AudioDurationInSeconds> <OutputFileName.mp3>
Example:
mashup "Arjan Dhillon" 15 20 my_mashup.mp3
Constraints:
- The Number of Videos ($N$) must be greater than 10.
- The Audio Duration ($Y$) must be greater than 20 seconds.
📝 License
This project is for educational purposes as part of a university assignment.
Project details
Release history Release notifications | RSS feed
Download files
Download the file for your platform. If you're not sure which to choose, learn more about installing packages.
Source Distribution
Built Distribution
Filter files by name, interpreter, ABI, and platform.
If you're not sure about the file name format, learn more about wheel file names.
Copy a direct link to the current filters
File details
Details for the file mashup_gurdarshan_102303217-1.0.0.tar.gz.
File metadata
- Download URL: mashup_gurdarshan_102303217-1.0.0.tar.gz
- Upload date:
- Size: 3.4 kB
- Tags: Source
- Uploaded using Trusted Publishing? No
- Uploaded via: twine/6.2.0 CPython/3.13.1
File hashes
| Algorithm | Hash digest | |
|---|---|---|
| SHA256 |
2bb18ceb1e269e947d94d4bf44af377b59b4a4a3a6ac02ec9b3b6135ac497bf2
|
|
| MD5 |
cb715247c5143bd84b5318dcb2c529ac
|
|
| BLAKE2b-256 |
0d404b2f6414c435e4af805a176220ffead2a8858bfce20ba7f5893429a8a139
|
File details
Details for the file mashup_gurdarshan_102303217-1.0.0-py3-none-any.whl.
File metadata
- Download URL: mashup_gurdarshan_102303217-1.0.0-py3-none-any.whl
- Upload date:
- Size: 4.0 kB
- Tags: Python 3
- Uploaded using Trusted Publishing? No
- Uploaded via: twine/6.2.0 CPython/3.13.1
File hashes
| Algorithm | Hash digest | |
|---|---|---|
| SHA256 |
665623b7c8d8851a070b80a5b584ed9e3439d83299fbd491e16d0624fb6ee742
|
|
| MD5 |
48945da92d8896c091f7582fe80bc00e
|
|
| BLAKE2b-256 |
977e23d53b516a8a36e3bc5d10d694442f07d9b86aa568b564aca906a7d690de
|