New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Access ffmpeg methods? #2588

Closed
kirkouimet opened this Issue Aug 25, 2015 · 11 comments

Comments

Projects
None yet
8 participants
@kirkouimet
Contributor

kirkouimet commented Aug 25, 2015

With the latest release of electron I see that ffmpeg is now statically linked and no longer needs to be distributed, which is very convenient (thank you!).

On this note, is it possible for me to use electron to access ffmpeg to do jobs, e.g., invoking something like "ffmpeg -i input.mp4 output.avi"? Invoking ffmpeg with API calls rather than the command-line approach would be even better.

This would be very cool and would pave the way for some fun ideas I have

@zcbenz

This comment has been minimized.

Show comment
Hide comment
@zcbenz

zcbenz Aug 26, 2015

Contributor

We only bundled the library version of ffmpeg, not the command line version.

Contributor

zcbenz commented Aug 26, 2015

We only bundled the library version of ffmpeg, not the command line version.

@zcbenz zcbenz closed this Aug 26, 2015

@zcbenz

This comment has been minimized.

Show comment
Hide comment
@zcbenz

zcbenz Aug 26, 2015

Contributor

Also providing JavaScript API for the bundled ffmpeg is possible, but I don't think we will ever do that because of limitation of resources.

Contributor

zcbenz commented Aug 26, 2015

Also providing JavaScript API for the bundled ffmpeg is possible, but I don't think we will ever do that because of limitation of resources.

@kirkouimet

This comment has been minimized.

Show comment
Hide comment
@kirkouimet

kirkouimet Aug 26, 2015

Contributor

@zcbenz a JavaScript API for the bundled ffmpeg could be really fun - a couple of quick questions:

  1. Does the library version of ffmpeg allow you to do everything the command line version can?
  2. If I were to do some research into contributing code for the JavaScript API to the bundled ffmpeg, which files are my best starting point?

Thanks!

Contributor

kirkouimet commented Aug 26, 2015

@zcbenz a JavaScript API for the bundled ffmpeg could be really fun - a couple of quick questions:

  1. Does the library version of ffmpeg allow you to do everything the command line version can?
  2. If I were to do some research into contributing code for the JavaScript API to the bundled ffmpeg, which files are my best starting point?

Thanks!

@zcbenz

This comment has been minimized.

Show comment
Hide comment
@zcbenz

zcbenz Aug 26, 2015

Contributor

I don't have experience with ffmpeg, you can probably look into existing Node bindings of ffmpeg.

Contributor

zcbenz commented Aug 26, 2015

I don't have experience with ffmpeg, you can probably look into existing Node bindings of ffmpeg.

@frankhale

This comment has been minimized.

Show comment
Hide comment
@frankhale

frankhale Oct 2, 2015

Contributor

A quick search of npmjs.com reveals a lot of node modules for ffmpeg. Would any of these be suitable for your needs?

https://www.npmjs.com/search?q=ffmpeg

Contributor

frankhale commented Oct 2, 2015

A quick search of npmjs.com reveals a lot of node modules for ffmpeg. Would any of these be suitable for your needs?

https://www.npmjs.com/search?q=ffmpeg

@cplumier

This comment has been minimized.

Show comment
Hide comment
@cplumier

cplumier Oct 4, 2015

Unfortunately no because they are based on the command line tools.

cplumier commented Oct 4, 2015

Unfortunately no because they are based on the command line tools.

@benkaiser

This comment has been minimized.

Show comment
Hide comment
@benkaiser

benkaiser Dec 20, 2015

agree with @cplumier here. Would be great to have the command line tools bundled too as they are used by all the npm ffmpeg libraries!

benkaiser commented Dec 20, 2015

agree with @cplumier here. Would be great to have the command line tools bundled too as they are used by all the npm ffmpeg libraries!

@gabrielstuff

This comment has been minimized.

Show comment
Hide comment
@gabrielstuff

gabrielstuff Mar 3, 2016

Anyone know commercial project using ffmpeg and respecting all the information here:
https://www.ffmpeg.org/legal.html

gabrielstuff commented Mar 3, 2016

Anyone know commercial project using ffmpeg and respecting all the information here:
https://www.ffmpeg.org/legal.html

@vot

This comment has been minimized.

Show comment
Hide comment
@vot

vot Nov 13, 2016

I know this is more than a year since the original question got asked but I just got around to solving this in my own project.
I was looking for the answer to this a while ago and now that I decided to put something together I thought I'd share. It's packaged as a module so you can just add it to your project as a dependency.

Disclaimer: This is a shameless plug for ffbinaries Node module and API I created.

I simply repackaged existing builds by other people into individual packages for modularity and consistency and uploaded to a GitHub repo. I created an API and a downloader module to integrate this into my project. I just started this two nights ago so might be still lacking but give it a try.

You can include it in your build, it can be used from Node scripts or through CLI.

vot commented Nov 13, 2016

I know this is more than a year since the original question got asked but I just got around to solving this in my own project.
I was looking for the answer to this a while ago and now that I decided to put something together I thought I'd share. It's packaged as a module so you can just add it to your project as a dependency.

Disclaimer: This is a shameless plug for ffbinaries Node module and API I created.

I simply repackaged existing builds by other people into individual packages for modularity and consistency and uploaded to a GitHub repo. I created an API and a downloader module to integrate this into my project. I just started this two nights ago so might be still lacking but give it a try.

You can include it in your build, it can be used from Node scripts or through CLI.

@benkaiser

This comment has been minimized.

Show comment
Hide comment
@benkaiser

benkaiser Nov 13, 2016

@vot you are a legend! Now I can stop shipping binaries with my builds and install them at runtime for users of my software only if needed!

benkaiser commented Nov 13, 2016

@vot you are a legend! Now I can stop shipping binaries with my builds and install them at runtime for users of my software only if needed!

@tconroy

This comment has been minimized.

Show comment
Hide comment
@tconroy

tconroy Mar 11, 2018

@vot this looks great. Thank you for creating/sharing!

tconroy commented Mar 11, 2018

@vot this looks great. Thank you for creating/sharing!

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment