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 hashes)

Uploaded Source

Built Distribution

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

Uploaded Python 3

Supported by

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