Firebase Cloud Functions - Automatically create gif thumbnail from mp4 using ffmpeg
This firebase function uses ffmpeg / fluent-ffmpeg and automatically creates gif thumbnails from mp4 files that are uploaded to Cloud Storage
See file functions/index.js for the gif conversion code.
The dependencies are listed in functions/package.json.
The function triggers on upload of any file to your Firebase project’s default Cloud Storage bucket.
To deploy and test the sample:
git clone https://github.com/mithatcak/firebase-ffmpeg-gif-thumbnail
firebase use --add
and select your Firebase projectfirebase deploy
thumb_
suffix will be created in the same folder (make sure you refresh the UI to see the new file).