node.js - How can i deploy a node app using ffmpeg to heroku? -
struggling go local development deploying web app. using ffmpeg in node crop things. tried following guide deploying ffmpeg, https://github.com/hyperhyper/heroku-buildpack-ffmpeg, , how binary needs in buildpack. achieved this, still doesn't work. how reference buildpack?
is line? .setffmpegpath('./ffmpeg')
var filename = './new_crops/' + videotitle + '.mp3'; var process = new ffmpeg({ source: videograb }) .setffmpegpath('./ffmpeg') .audiobitrate(info.formats[0].audiobitrate) .withaudiocodec('libmp3lame') .toformat('mp3') .outputoptions('-id3v2_version', '4') .outputoptions('-metadata', 'title=' + title) .outputoptions('-metadata', 'artist=' + artist) thanks in advance
try removing ./ ffmpeg path. according buildpack documentation, app installed in server path, it's globally available.
the full path executable located /app/vendor/ffmpeg/bin.
Comments
Post a Comment