Infinite Video Creator
This Python script uses the MoviePY library to create a zooming video from a set of images. The main purpose of this script is to concatenate a series of images generated by the zoom-out feature of Midjourney into a coherent and smooth video clip.
These instructions will get you a copy of the project up and running on your local machine for development and testing purposes.
- Python 3
- moviepy library
Clone the project to your local machine.
git clone https://codeberg.org/betazetadev/infinite-video-creator
The images to be used by the script should be placed in a folder named imgs located in the same directory as the script. Each image should be a .png file and should have a number indicating its position in its filename (e.g., 1.png, 2.png, etc.). The images are ordered based on these numbers, with the higher numbers (corresponding to the closest image in terms of zoom) processed first, and the lower numbers (corresponding to the farthest image) processed last.
You can run the project using Python. The script accepts several parameters:
resolution: Specify the resolution of the output video (square). Default is 1024.
fps: Set frames per second in the output video. Default is 24.
output: Set the name for the output video file. The
.mp4extension will be added automatically.
- Blurry corners during transitions: There's a known issue where the corners of the image clips become blurry during transitions, especially at the points where the current and the next images merge because of some difference between the generated images by Midjourney.
Please feel free to fork this repo and submit PRs for any improvements or fixes you make!
This project is licensed under the MIT License - see the LICENSE.md file for details.