Giter Site home page Giter Site logo

howardwkim / gcloud-node-video-transcoding Goto Github PK

View Code? Open in Web Editor NEW

This project forked from diego3g/gcloud-node-video-transcoding

0.0 1.0 0.0 371 KB

๐Ÿ“น๐Ÿ”ฅ Transcode Google Cloud Storage video files with Node.js and FFmpeg

Dockerfile 5.03% TypeScript 94.97%

gcloud-node-video-transcoding's Introduction

Google Cloud Node.js video transcoder

Use Google Cloud Storage, Pub/Sub and App Engine to transcode videos to many resolutions.

๐Ÿ”ฅ Setup

  • Clone the app:
git clone https://github.com/diego3g/gcloud-node-video-transcoding.git
  • Install all dependencies:
yarn
yarn lerna bootstrap
gcloud auth login
  • Setup a Google Cloud Project;
  • Setup GOOGLE_APPLICATION_CREDENTIALS environment variable following https://cloud.google.com/docs/authentication/getting-started?hl=pt-br
  • Create origin and destination bucket inside Google Cloud Storage;
  • Create a topic inside Pub/Sub called jupiter;
  • Setup Google Cloud Storage notification to new topic, so every file uploaded to bucket will publish a message to the queue:
gsutil notification create -t jupiter -f json -e OBJECT_FINALIZE gs://ORIGIN_BUCKET_NAME

Replace ORIGIN_BUCKET_NAME with your origin bucket name :)

  • To see all the notifications:
gsutil notification list gs://ORIGIN_BUCET_NAME
const destinationBucket = storage.bucket('DESTINATION_BUCKET_NAME');
  • Run main application:
yarn dev:main
  • Run worker application (in another terminal):
yarn dev:worker
  • Upload .mp4 file to ORIGIN bucket and monitor logs via:
gcloud app logs tail -s default
gcloud app logs tail -s worker

๐Ÿ“ License

This project lives under MIT License. See LICENSE for more details.

gcloud-node-video-transcoding's People

Contributors

diego3g avatar

Watchers

 avatar

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    ๐Ÿ–– Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. ๐Ÿ“Š๐Ÿ“ˆ๐ŸŽ‰

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google โค๏ธ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.