waprin / appengine-transcoder

Demo of using libav in App Engine Flexible
Apache License 2.0
30 stars 7 forks source link

AppEngine Transcoder Example

Demonstration of using libav in App Engine Flexible Environment.

Please note this is a simple demonstration repo and not ready to productionize!

See the associated Medium post for more info. Please use the Issue Tracker for any problems.

https://medium.com/@waprin/scalable-video-transcoding-with-app-engine-flexible-621f6e7fdf56#.f2vgzta5q

Overview

Docekrfile and app.yaml are used to configure the main web worker, main.py.

worker/ contains the Dockerfile and code for the background process that does the transcoding.

Deploying

Create a Google Cloud project. Download the Google Cloud SDK.

gcloud init <your-project-id>

go in to the worker/ directory and replace PROJECT_ID with your project ID, then

gcloud app deploy worker.yaml

That will deploy the backend module. To deploy the frontend module, replace PROJECT_ID in main.py with your project ID. Then

gcloud app deploy app.yaml

After that, hitting https://.appspot.com/transcode will kick off the transcoding process.

Help

File an issue on the issue tracker.

Copyright

Copyright Google 2016, but not an official Google product or service

Contributing changes

Licensing