Skip to main content

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-dlp to download high-quality audio directly.
  • Precision Trimming: Cuts the first Y seconds from every downloaded track using pydub.
  • Seamless Merging: Combines all trimmed clips into one clean .mp3 output 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


Download files

Download the file for your platform. If you're not sure which to choose, learn more about installing packages.

Source Distribution

mashup_gurdarshan_102303217-1.0.0.tar.gz (3.4 kB view details)

Uploaded Source

Built Distribution

If you're not sure about the file name format, learn more about wheel file names.

mashup_gurdarshan_102303217-1.0.0-py3-none-any.whl (4.0 kB view details)

Uploaded Python 3

File details

Details for the file mashup_gurdarshan_102303217-1.0.0.tar.gz.

File metadata

File hashes

Hashes for mashup_gurdarshan_102303217-1.0.0.tar.gz
Algorithm Hash digest
SHA256 2bb18ceb1e269e947d94d4bf44af377b59b4a4a3a6ac02ec9b3b6135ac497bf2
MD5 cb715247c5143bd84b5318dcb2c529ac
BLAKE2b-256 0d404b2f6414c435e4af805a176220ffead2a8858bfce20ba7f5893429a8a139

See more details on using hashes here.

File details

Details for the file mashup_gurdarshan_102303217-1.0.0-py3-none-any.whl.

File metadata

File hashes

Hashes for mashup_gurdarshan_102303217-1.0.0-py3-none-any.whl
Algorithm Hash digest
SHA256 665623b7c8d8851a070b80a5b584ed9e3439d83299fbd491e16d0624fb6ee742
MD5 48945da92d8896c091f7582fe80bc00e
BLAKE2b-256 977e23d53b516a8a36e3bc5d10d694442f07d9b86aa568b564aca906a7d690de

See more details on using hashes here.

Supported by

AWS Cloud computing and Security Sponsor Datadog Monitoring Depot Continuous Integration Fastly CDN Google Download Analytics Pingdom Monitoring Sentry Error logging StatusPage Status page