项目作者: tuomastik

项目描述 :
🎞️🔄 Run FFmpeg on Google Cloud (App Engine & Cloud Functions)
高级语言: Python
项目地址: git://github.com/tuomastik/ffmpeg-google-cloud.git
创建时间: 2020-05-10T18:21:13Z
项目社区:https://github.com/tuomastik/ffmpeg-google-cloud

开源协议:

下载


FFmpeg on Google Cloud

This repository contains App Engine and Cloud Functions implementation of
webm -> mp4/gif video conversion using FFmpeg.

Usage

  1. 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.

  2. Prepare Google Cloud SDK command-line tool

    2.1. Authenticate

    1. gcloud auth login

    2.2. Change to the correct project:

    1. gcloud config set project YOUR_PROJECT
  3. Deploy the service

    3.1 App Engine

    1. cd app_engine
    2. gcloud app deploy --version=1 --quiet

    3.2 Cloud Functions

    List of all possible arguments: https://cloud.google.com/sdk/gcloud/reference/functions/deploy

    1. cd cloud_functions
    2. gcloud functions deploy YOUR_FUNCTION_NAME --runtime=python37 --entry-point=convert_webm --trigger-http --allow-unauthenticated --memory=512MB --timeout=540s