Skip to content

Python script that creates a video from a set of images and adds a random audio clip to each video

License

Notifications You must be signed in to change notification settings

barkerbg001/FrameFusion

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

20 Commits
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

FrameFusion

This is a Python script that creates a video from a set of images and adds a random audio clip to each video.

Getting Started

To use this script, you'll need to have Python 3.x installed on your system along with the following libraries:

  • cv2
  • numpy
  • glob
  • random
  • moviepy

You can install these libraries using the following command:

pip install opencv-python numpy glob3 pydub random  moviepy

Usage

  1. Clone or download the script to your computer.
  2. Add your images to the "images" folder. The script reads all PNG files in each subfolder of the "images" folder and creates a video for each subfolder.
  3. Add your audio files to the "audio" folder. The script selects a random audio file from this folder and adds it to the video.
  4. Run the script using the following command:
  5. python main.py
  6. The script will create a video for each subfolder in the "images" folder and save it in the "output" folder.

Customization

  • If you want to add more image or audio files, simply add them to the "images" or "audio" folder, respectively.

License

This script is licensed under the MIT License. Feel free to modify and use it for your own projects.

About

Python script that creates a video from a set of images and adds a random audio clip to each video

Topics

Resources

License

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published