- [possibly?] Connect to youtube api
ffmpeg
python
moviepy
gtts
imageMagick
Either run the program once or create a directory called footage
in the root of the project (the same level as the source folder).
Place an mp4 video file containing your background footage in the footage file, the program is currently setup to expect a file named "minecraft.mp4" but this can be easily changed to whatever you want by changing the FOOTAGE_PATH
constant in src/main.py
.
You also need to create an env file in the root of the project which must contain the following values:
CLIENT_ID = [The client id of your reddit api application]
CLIENT_SECRET = [The client secret of your reddit api application]
USERNAME = [Your reddit username]
PASSWORD = [Your reddit password]
To create a reddit api application if you haven't already:
- navigate here: https://www.reddit.com/prefs/apps
- Click "create app" at the bottom of the page.
- Set the type to "script".
- Give the app a name, description and redirect url - since this is a script none of those details really matter so set them to whatever you want.
- Copy the code just below "personal use script" - that is your client id.
- Then copy the code next to "secret" - that is your client secret.