Can you call out to FFMPEG in a Firebase Cloud Function

前端 未结 6 1589
感动是毒
感动是毒 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:52

    ffmpeg is now included in the Cloud Functions environment so it can be used directly:

    spawn(
      'ffmpeg',
      ['-i', 'video.mp4'] 
    )
    

    Full list of installed packages: https://cloud.google.com/functions/docs/reference/nodejs-system-packages

提交回复
热议问题