将光标移到/点击文章中的句子上,可以查看译文。      显示繁体中文内容    显示简体中文内容

node.js - electron - how to use ffmpeg within an electron app
node.js 电子如何在电子应用中使用 ffmpeg

119 0

In the last release ( v0.31.0 ) electron comes with a statically linked FFMpeg library (not the command line tool, see #2588 )

I am aware of the many nodejs modules for ffmpeg, but they all look like an api to the command line tool, so how can i ideally access the ffmpeg library bundled with electron and encode a stream?

时间: 原作者:

88 2

This is currently not possible, since there is no decent ffmpeg library for node.js.Meaning, there are only such that abstract the CLI.however it is possible to compile and link ffmpeg as node native addon, which simply no-one seems to have done yet.so the advice, unfortunately, would be to write this kind of abstraction and include the lib into your electron build

...