_____ __ _____ __ __ __ ____ __
/ ___/____ ___ ____/ /_ ______ / ___// /___ _ _____ ____/ / / |/ / | / /
\__ \/ __ \/ _ \/ __ / / / / __ \ \__ \/ / __ \ | /| / / _ \/ __ / / /|_/ /| | / /
___/ / /_/ / __/ /_/ / /_/ / /_/ / ___/ / / /_/ / |/ |/ / __/ /_/ / / / / / | |/ /
/____/ .___/\___/\__,_/\__,_/ .___/ /____/_/\____/|__/|__/\___/\__,_/ /_/ /_/ |___/
/_/ /_/
A Python script that automates the creation of nightcore-style/sped-up videos or slowed-down videos by combining a wallpaper with audio extracted from URLs from supported websites like YouTube, YouTube music, and Soundcloud.
This script will work with other sites, full list can be found here.
- Note: GUI can only create GIF based videos
- Requires Tenor API on Line 66, can be obtained at https://developers.google.com/tenor/guides/quickstart For GUI use gui.py
- Uses GIFs as the background using the tenor v2 api
- User can input query for gif search.
examples
Miley_Cyrus_-_Party_In_The_U.S.A._.Official_Video.mp4
Set_Fire_To_The_Rain_-_Adele_.Lyrics._.mp4
Zac_Efron._Zendaya_-_Rewrite_The_Stars_.Lyrics__Lyrics_Video.mp4
Katy_Perry_-_Wide_Awake.mp4
ILLIT_._.Magnetic._Official_MV.mp4
Sleep_Token_-_Granite.mp4
- Downloads from URLs of supported websites using yt-dlp
- Extract audio from videos using ffmpeg
- Fetch background images from multiple sources (1), (2), (3)
- Combine audio and images to create videos using ffmpeg
- Each video has the title of the song in the bottom right corner
- Option to download multiple URLs from a list and apply the same options to all of them
- Option to download all the video URLs from a Youtube channel to a text file with restriction on max length while also skipping Youtube Shorts
- Allow the artist of the image/gif to be credited
- clone repository
git clone https://github.com/sankeer28/Spedup-Slowed-MV.git
- open folder
cd Spedup-Slowed-MV
- install dependencies
pip install -r requirements.txt
and ffmpeg - run
python main.py
orpython3 main.py
. - Follow the prompts to enter the YouTube video URL, wallpaper choice, and speed preference.
- The script will then download the video, extract audio, fetch the wallpaper, and combine them to create the nightcore-style video.
- The final video will be saved in the
outputs
directory.
Do pip install -r requirements.txt
If you run into errors try python3 -m pip install yt-dlp
- Tested and working Python versions: Python 3.10.0,3.11.8, 3.12.3
- On linux you can do
sudo apt install python3.10
thenpython3 main.py
- On linux you can do
- ffmpeg: Add to system path.
- Linux (apt):
sudo apt install ffmpeg
- macOS (via homebrew):
brew install ffmpeg
- Windows: tutorials can be found on Google like this:
- Linux (apt):
- old.py: does not have bulk url download feature and does not have the feature to download all videos from channel
- old1.py: does not have the feature to download all videos from channel
This will be much slower compared to running locally if using the free version of Replit