Design doc (Privately shared)
Install python and pip (We use Python 2.7)
pip install pillow
pip install numpy
pip install gTTS
For this, we need to install ffmpeg and melt since we simply invoke it using a subprocess. ffmpeg is used to attach audio to the images while melt is used to concat the videos.
sudo apt-get install ffmpeg
sudo apt-get install melt
pip install --upgrade oauth2client
pip install --upgrade google-api-python-client
time sh lasvegas_debug.sh
Install lint
pip install pep8
pip install autopep8
Please autolint the files before checking in.
autopep8 ./src/ --recursive --in-place --pep8-passes 2000 --verbose
Do not check in the client_secrets
git update-index --assume-unchanged path/to/client_secrets.json
-
Create a channel on youtube. Update preferences, monetization etc. Verify the account, add channel info.
-
Create a project on console.developers.google.com, enable youtube data api for the project, create an 'Other' type of O-Auth client id in the project and download the client_secret file.
-
A one time authentication for the account where we want to upload data is needed. After that uploads do not require authentication for a while.