Skip to main content

Mashup of multiple songs - Python

Assignment 2 : UCS654

Submitted By: Samarjot Singh 102003242


Mashup

Mashup is a Python package that combines the power of pytube and pydub to create amazing audio and video mashups. With Mashup, you can easily download and manipulate audio and video files from YouTube and other sources, allowing you to create custom remixes, soundtracks, and more.


Features

  • Download videos and audio files from YouTube using pytube
  • Manage and manipulate audio files using pydub
  • Merge and layer audio and video files to create custom mashups
  • Export mashups as MP3 file format

How to run this package:

Mashup-Samarjot-102003242 can be used by running following command in CMD:

>> mashup "Sidhu Moose Wala" 10 20 102003242-output.mp3

Getting started

To get started with Mashup, you'll need to install both pytube and pydub. You can do this by running the following commands:

>> pip install pytube pydub
>> pip install pytube pytube

Next, you'll need to import the pytube and pydub libraries into your project. Here's an example of how you might do this:

from pytube import YouTube
import pydub

Once you have the libraries imported, you're ready to start downloading and manipulating audio files. Here's an example of how you might download a audio from YouTube using pytube:

url = "https://www.youtube.com/watch?v=dQw4w9WgXcQ"
yt = YouTube(url)
mp4files = yt.streams.filter(only_audio=True).first().download(filename='audio_'+str(i)+'.mp3')

Export the audio file

fin_sound.export(output_name, format="mp3")

With these building blocks, you can create all sorts of amazing audio and video mashups!


Documentation

For more information on how to use pytube and pydub, be sure to check out their official documentation:

pytube Documentation pydub Documentation

Release files for Mashup-Samarjot-102003242 1.0.1

For a detailed explanation of source distributions (sdists) and built distributions (wheels), please see the package formats documentation.

Source distribution (sdist)

Source distribution for Mashup-Samarjot-102003242 1.0.1
File Size Uploaded
Mashup-Samarjot-102003242-1.0.1.tar.gz 3.8 kB Details

Built distribution (wheel)

Table of built distributions (wheels) for Mashup-Samarjot-102003242 1.0.1
File Interpreter ABI Platform
Mashup_Samarjot_102003242-1.0.1-py3-none-any.whl Python 3 none any Details

Total release size: 8.3 kB

Release files / Mashup-Samarjot-102003242-1.0.1.tar.gz

Download URL Mashup-Samarjot-102003242-1.0.1.tar.gz
Size 3.8 kB
Tags Source
SHA-256 checksum
How to use checksums
a34fd10774835c2f18d654339f42b1d757a57a185e034c90862fe6e23ceb074e
BLAKE2b-256 checksum
How to use checksums
6fbb51c6debabb36c367734493176cb574cbf6b818ff7eab21ecdf8f2ae221c6
Upload date
Uploaded using Trusted Publishing?
What is trusted publishing?
No
Uploaded via twine/4.0.2 CPython/3.11.1

Release files / Mashup_Samarjot_102003242-1.0.1-py3-none-any.whl

Download URL Mashup_Samarjot_102003242-1.0.1-py3-none-any.whl
Size 4.5 kB
Tags Python 3
SHA-256 checksum
How to use checksums
ad966315da94e823804c1e0bdf3c021958ced5423bb3579e92fd3264f2349103
BLAKE2b-256 checksum
How to use checksums
feb938bfcc623d2067972c5d04705a0695712b691915ec74fcfa9613ae1a1233
Upload date
Uploaded using Trusted Publishing?
What is trusted publishing?
No
Uploaded via twine/4.0.2 CPython/3.11.1

Release history Release notifications | RSS feed

This release

1.0.1 This release

2 release files

1.0

3 release files

Anthropic, PBC Visionary sponsor Bloomberg Visionary sponsor Hudson River Trading Visionary sponsor Meta Visionary sponsor NVIDIA Visionary sponsor Microsoft Sustainability sponsor Depot Continuous Integration AWS Cloud computing and Security Sponsor Datadog Monitoring Fastly CDN Google Download Analytics Sentry Error logging StatusPage Status page