🎞️🔄 Run FFmpeg on Google Cloud (App Engine & Cloud Functions)
This repository contains App Engine and Cloud Functions implementation ofwebm
-> mp4
/gif
video conversion using FFmpeg.
Download precompiled linux-64 ffmpeg
binary from ffbinaries.com
and place it with ffmpeg
name in app_engine
or cloud_functions
directory based on which of the services you want to deploy.
Prepare Google Cloud SDK command-line tool
2.1. Authenticate
gcloud auth login
2.2. Change to the correct project:
gcloud config set project YOUR_PROJECT
Deploy the service
3.1 App Engine
cd app_engine
gcloud app deploy --version=1 --quiet
3.2 Cloud Functions
List of all possible arguments: https://cloud.google.com/sdk/gcloud/reference/functions/deploy
cd cloud_functions
gcloud functions deploy YOUR_FUNCTION_NAME --runtime=python37 --entry-point=convert_webm --trigger-http --allow-unauthenticated --memory=512MB --timeout=540s