Skip to content

Python script to create sped up or slowed down videos using audio extracted from url

License

Notifications You must be signed in to change notification settings

sankeer28/Spedup-Slowed-MV

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

97 Commits
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

Spedup/Slowed down Music Video Maker

       _____                __               _____ __                       __   __  ____    __
      / ___/____  ___  ____/ /_  ______     / ___// /___ _      _____  ____/ /  /  |/  / |  / /
      \__ \/ __ \/ _ \/ __  / / / / __ \    \__ \/ / __ \ | /| / / _ \/ __  /  / /|_/ /| | / / 
     ___/ / /_/ /  __/ /_/ / /_/ / /_/ /   ___/ / / /_/ / |/ |/ /  __/ /_/ /  / /  / / | |/ /
    /____/ .___/\___/\__,_/\__,_/ .___/   /____/_/\____/|__/|__/\___/\__,_/  /_/  /_/  |___/
        /_/                    /_/ 

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.

gif

Features

  • 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

How to run

  1. clone repository git clone https://github.com/sankeer28/Spedup-Slowed-MV.git
  2. open folder cd Spedup-Slowed-MV
  3. install dependencies pip install -r requirements.txt and ffmpeg
  4. run python main.py or python3 main.py.
  5. Follow the prompts to enter the YouTube video URL, wallpaper choice, and speed preference.
  6. The script will then download the video, extract audio, fetch the wallpaper, and combine them to create the nightcore-style video.
  7. The final video will be saved in the outputs directory.

Dependencies

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 then python3 main.py
  • 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:

Older Versions:

  • 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

Examples

expand

Anime Slowed

slowed_down_One_Direction_-_Perfect_.Official_Video.mp4

Random Wallpaper Spedup

nightcore_One_Direction_-_Perfect_.Official_Video.mp4

Pexels Query: City

nightcore_HEAVEN_AND_BACK.mp4

Anime Spedup

nightcore_Camila_Cabello_-_Havana_.Lyrics._ft._Young_Thug.mp4
nightcore_Falling.mp4
nightcore_Paradise.mp4

Cat Spedup

nightcore_DJ_Snake_-_Let_Me_Love_You_ft._Justin_Bieber.mp4

About

Python script to create sped up or slowed down videos using audio extracted from url

Topics

Resources

License

Stars

Watchers

Forks

Packages

No packages published

Languages