ffmpeg-google-cloud
ffmpeg-google-cloud copied to clipboard
🎞️🔄 Run FFmpeg on Google Cloud (App Engine & Cloud Functions)
FFmpeg on Google Cloud
This repository contains App Engine and Cloud Functions implementation of
webm -> mp4/gif video conversion using FFmpeg.
Usage
-
Download precompiled linux-64
ffmpegbinary from ffbinaries.com and place it withffmpegname inapp_engineorcloud_functionsdirectory based on which of the services you want to deploy. -
Prepare Google Cloud SDK command-line tool
2.1. Authenticate
gcloud auth login2.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 --quiet3.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