๐น๐ฅ Transcode Google Cloud Storage video files with Node.js and FFmpeg
git clone https://github.com/diego3g/gcloud-node-video-transcoding.git
yarn
yarn lerna bootstrap
gcloud auth login
GOOGLE_APPLICATION_CREDENTIALS
environment variable following https://cloud.google.com/docs/authentication/getting-started?hl=pt-br
jupiter
;gsutil notification create -t jupiter -f json -e OBJECT_FINALIZE gs://ORIGIN_BUCKET_NAME
Replace ORIGIN_BUCKET_NAME with your origin bucket name :)
gsutil notification list gs://ORIGIN_BUCET_NAME
const destinationBucket = storage.bucket('DESTINATION_BUCKET_NAME');
yarn dev:main
yarn dev:worker
.mp4
file to ORIGIN bucket and monitor logs via:gcloud app logs tail -s default
gcloud app logs tail -s worker
This project lives under MIT License. See LICENSE for more details.