Logo Questions Linux Laravel Mysql Ubuntu Git Menu
 

electron - how to use ffmpeg within an electron app

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?

like image 465
Carlo Avatar asked Aug 29 '15 21:08

Carlo


1 Answers

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

like image 175
eljefedelrodeodeljefe Avatar answered Oct 12 '22 02:10

eljefedelrodeodeljefe