Can you call out to FFMPEG in a Firebase Cloud Function

前端 未结 6 1591
感动是毒
感动是毒 2020-11-27 16:12

Per the Firebase Cloud Functions documentation, you can leverage ImageMagick from within a cloud function: https://firebase.google.com/docs/functions/use-cases

Is i

6条回答
  •  不知归路
    2020-11-27 16:57

    While you technically can run FFMPEG on a Firebase Functions instance, you will quickly hit the small quota limits.

    As per this answer, you can instead use Functions to trigger a request to GCP's more powerful App Engine or Compute Engine services. The App Engine process can grab the file from the same bucket, handle the transcoding, and upload the finished file back to the bucket. If you check the other answers at the link, one user posted a sample repo that does just that.

提交回复
热议问题