don't know if he's open-sourced his ffmpeg-node solution though