promotion_video.mp4
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.
- Download this repository as zip file / using git.
- Open the folder.
- Make sure all the required modules are installed. (
pip install -r requirements.txt
) - Open main.py
- set the number of videos you want, your logo, and choose a quote file from '/sources/verses_data' (you can also use the topical bible verses scraper I developed)
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"
- RUN!
- And that's it! Everything else will be handled automatically!
- You can find your video in the
customers/your-name/
directory.
After running the script you will get these 3 files:
-
The edited video file.
61-Hebrews1211_23_35_3.mp4
-
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.