Serverless video upload and encoding with Firebase Storage, Cloud Functions and Publitio

Jonathan Perry
ITNEXT
Published in
6 min readAug 18, 2020

--

What we’re building

In my previous post I showed how to upload videos to Firebase Cloud Storage using client side encoding. This approach puts the encoding burden on the client, but can save server transcoding costs.

This time I’ll show how to use server side encoding instead, combining Firebase Cloud Storage, Firebase Cloud Functions and the Publitio API which I’ve written about previously.

Note: The method we’ll see here solved the security issue I described in this post, as the API key and secret aren’t used in the client at all.

System Design

The processing pipeline for each video file is as follows:

  1. Uploading the file from the client to Firebase Cloud Storage.
  2. Creating a document in…

--

--