I have an HTML5 application that allows users to download and play audio files. Node Server runs on Heroku.
In order to allow playback in a cross browser, I understand that I need to at least support two formats for each audio file, say .mp3 and .ogg. Therefore, I need to transcode the files automatically on the server side.
The problem is that Heroku does not start ffmpeg. I found this project that creates a custom buildpack for heroku that supports ffmpeg but seems to be for Rails applications: https://github.com/dzello/ffmpeg-heroku .
I was thinking of starting an external server for transcoding, to which the nodejs application sends the file, transcodes and reloads the new file on my nodejs server. But I donβt know how to configure such a server, and is there a ready-made solution that does this work?
So here are my questions:
1- Is there a solution to run ffmpeg on heroku+nodejs? 2- How can I set up a transcoding server that communicates with my nodejs+heroku server?
Thanks!
source share