Makes an ffmpeg command return a promise. Index.js const functions = require('firebase-functions') Ĭonst ffmpeg_static = require('ffmpeg-static') Here is the code segment from the repository earlier. Error: Cannot find ffmpeg at /srv/node_modules/fluent-ffmpeg/lib/processor.js:136:22Īt FfmpegCommand.proto._getFfmpegPath (/srv/node_modules/fluent-ffmpeg/lib/capabilities.js:90:14)Īt FfmpegCommand.proto._spawnFfmpeg (/srv/node_modules/fluent-ffmpeg/lib/processor.js:132:10)Īt .getAvailableFormats (/srv/node_modules/fluent-ffmpeg/lib/capabilities.js:517:10)Īt /srv/node_modules/fluent-ffmpeg/lib/capabilities.js:568:14Īt nextTask (/srv/node_modules/async/dist/async.js:4578:27)Īt Object.waterfall (/srv/node_modules/async/dist/async.js:4589:9)Īt Object.awaitable(waterfall) (/srv/node_modules/async/dist/async.js:208:32)Īt FfmpegCommand.proto._checkCapabilities (/srv/node_modules/fluent-ffmpeg/lib/capabilities.js:565:11)Īt /srv/node_modules/fluent-ffmpeg/lib/processor.js:298:14Ĭan someone enlighten me what installation steps have I missed out? The deployment on Node 10 was successful, but upon uploading an mp3 file to test the function, it gave me the following error. I have copied the code, only changing the initialisation of gcs to const gcs = admin.storage(). I am trying to learn how to write a firebase cloud function with ffmpeg-fluent and am referring to this sample code.
0 Comments
Leave a Reply. |
AuthorWrite something about yourself. No need to be fancy, just an overview. ArchivesCategories |