canvas-sketch icon indicating copy to clipboard operation
canvas-sketch copied to clipboard

[Discussion] FFMPEG Handling

Open mattdesl opened this issue 5 years ago • 1 comments

I've added streaming MP4 and GIF exports with the --stream flag, which is pretty handy.

I'm curious about how I could integrate @ffmpeg-intsaller/ffmpeg into this project without forcing it upon the user. Basically, giving users a single npm approach to installing ffmpeg, rather than telling them to install through brew or whatever, however still allowing canvas-sketch to support the PATH-installed ffmpeg if needed. By default, it seems too heavy to add as a dependency to canvas-sketch-cli, which might get used in a per-project basis.

Basically looking for a UX solve... open to discussion!

mattdesl avatar Jun 20 '19 18:06 mattdesl

Not sure if what's you are looking for, but maybe having the binaries within the package could be a solution. Other known packages such as Canvas (node-canvas) do so--though I think ffmpeg still needs to be installed.

And if adding it as a dependency is too much, maybe have it as an external module that you download and install when needed for the 1st time--a quick but dirty way would be to inject that dependency into the package.json.

Apidcloud avatar Jun 21 '19 13:06 Apidcloud