https://github.com/SamuraiPolix/ShortsMaker/assets/52662032/fb67c274-8701-482a-a557-466ce4b9a9ef
This is my first big Python project, which I put a lot of effort into, hope you get the most out of it :)
I used it to sell bible verse videos on Fiverr for a while.
I got a 50+ stock background video (of mainly nature), 40 audio files and 10 fonts.
The script works by taking a background video from '/videos', an audio file from '/audios', a random font, and a quote (a bible verse) from the JSON file, and combining them all into 1 video.
I am using PILLOW to generate the text in different fonts and FFMPEG to combine them all as fast as possible (I used MoviePy at the beginning but it was too slow).
All the video files and audio files are copyright-free from stock footage websites (Pexels, Pixabay, etc.), and the fonts are copyright-free as well.
Follow the instructions given below to get this script up and running on your device.
pip install -r requirements.txt
)number_of_videos = 99
customer_name = "your_name"
image_file = f"{project_dir}/sources/logo.png"
json_file = f"{project_dir}/sources/verses_data/love_data.json"
customers/your-name/
directory.After running the script you will get these 3 files:
The edited video file.
https://github.com/SamuraiPolix/ShortsMaker/assets/52662032/1640ba4f-13c5-4698-9f2f-bcbfacb9b908
A spreadsheet containing all the File names, verses, and references, to make it easier to find the video you want.
The generated text image (for the quote in the video).
Note that this script is very basic as of now. I added Text-to-Speak in a later version which I will hopefully post soon. If you want to contribute, you are free to do so and you may even fork and improve this repository.