Skip to main content

Python package creating Mashup of multiple songs.

Project description

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

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-Samarjot-102003242-1.0.1.tar.gz (3.8 kB view details)

Uploaded Source

Built Distribution

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

Mashup_Samarjot_102003242-1.0.1-py3-none-any.whl (4.5 kB view details)

Uploaded Python 3

File details

Details for the file Mashup-Samarjot-102003242-1.0.1.tar.gz.

File metadata

File hashes

Hashes for Mashup-Samarjot-102003242-1.0.1.tar.gz
Algorithm Hash digest
SHA256 a34fd10774835c2f18d654339f42b1d757a57a185e034c90862fe6e23ceb074e
MD5 da3e0a12c9f9f6ea8df5c5a3410b7807
BLAKE2b-256 6fbb51c6debabb36c367734493176cb574cbf6b818ff7eab21ecdf8f2ae221c6

See more details on using hashes here.

File details

Details for the file Mashup_Samarjot_102003242-1.0.1-py3-none-any.whl.

File metadata

File hashes

Hashes for Mashup_Samarjot_102003242-1.0.1-py3-none-any.whl
Algorithm Hash digest
SHA256 ad966315da94e823804c1e0bdf3c021958ced5423bb3579e92fd3264f2349103
MD5 e46c6f053cb8780c4539b0e077fde37b
BLAKE2b-256 feb938bfcc623d2067972c5d04705a0695712b691915ec74fcfa9613ae1a1233

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