I am building a platform, that allows users to upload some video files (20-40 seconds) from their phone to server. All this upload is working great for now, files are stored in google storage bucket via nodejs cloud functions.
Now I want to create a gcp transcoder-job, that will convert uploaded .mp4 video file to .hls video stream with .ts chunks of 2-4 seconds duration.
Probably success scenario:
- User uploads mp4 file [Done]
- .mp4 file after upload triggers
functions.storage.object().onFinalize
[Done] onFinalize
triggers Google Cloud Job, that will convert mp4 to hls. [We are here]- .mp4 file is removed from google storage.
Will appreciate any help on creating such job. I am using firebase cloud functions with nodejs.