It appears that Bluemix does not include FFMPEG as part of the standard runtime. However, we'd like to use FFMPEG in our application.
It seems the "correct" way to do this is to use a custom buildpack.
Consequently, a few questions:
I've recently integrated a third-party C library into the standard NodeJS buildpack. You can find details here to help you build your own: http://jamesthom.as/blog/2015/03/04/cloud-foundry-custom-buildpacks/
I forked the standard NodeJS buildpack from the external repo.
There is a Heroku buildpack for FFMPEG here which should work on Bluemix. As noted in the description of the buildpack you will need to combine this with another buildpack in order to get the runtime. The other option is to add what is done in this buildpack to your forked buildpack (all buildpacks have the same bin/detect, bin/compile, bin/release scripts).
Another option (which I prefer) is to not fork a buildpack but to add ffmpeg as a dependency (as that is what it is). There is a npm package called easy-ffmpeg that includes the binaries for ffmpeg on Windows, Mac and Linux (you would use the Linux binaries for Bluemix). So all you need to do is add it as a dependency in your package.json for your node.js app.
If you love us? You can donate to us via Paypal or buy me a coffee so we can maintain and grow! Thank you!
Donate Us With