Skip to content

bretmcg/cloud-functions-examples

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

2 Commits
 
 
 
 
 
 
 
 

Repository files navigation

Google Cloud Functions examples

Code snippets and examples for Google Cloud Functions.

ffmpeg example

Inspired by the Stack Overflow question: Can you call out to FFMPEG in a Firebase Cloud Function?

The ffmpeg binary is included in the Cloud Functions environment. See complete list of included system packages.

Two Cloud Functions examples in ffmpeg/index.js:

  • ffmpegTest() - Use the npm module fluent-ffmpeg to resize a video. This module provides a nice, easy to use wrapper over the ffmpeg command- line interface.
  • ffmpegShellTest() - invoke the ffmpeg binary directly to get info about a video file.

Deploying the ffmpeg examples:

cd ffmpeg/
./deploy.sh

Questions?

I'm Bret McGowen, drop me a line at @BretMcG on Twitter or my website bretmcg.com.

Credits

About

Code snippets for Google Cloud Functions

Resources

License

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published