在Node.js中调用ffmpeg的绝佳方法是使用node-fluent-ffmpeg库。

fluent-ffmpeg开源地址:https://github.com/fluent-ffmpeg/node-fluent-ffmpeg