fluent-ffmpeg / node-fluent-ffmpeg

A fluent API to FFMPEG (http://www.ffmpeg.org)
MIT License
7.96k stars 881 forks source link

Needed Libs? #222

Closed msho closed 10 years ago

msho commented 10 years ago

Hey, I'm kinda new to that whole node.js thing. So I'm sorry if my question is a bit stupid...

i try to use the example 'image2video' (here: https://github.com/schaermu/node-fluent-ffmpeg/blob/master/examples/image2video.js)

And I get errors... First, the first line throw the error "Cannot find module '../index'" So I changed it into the line "var ffmpeg = require('fluent-ffmpeg');"

Then I get the error: " events.js:72 throw er; // Unhandled 'error' event ^ Error: spawn ENOENT at errnoException (child_process.js:988:11) at Process.ChildProcess._handle.onexit (child_process.js:779:34) "

I guess it because I'm missing a library? (If so what lib should i get?)

ThankU very much for your patience and time!

bencevans commented 10 years ago

ENOENT means "No such file or directory". Are you sure the file you're trying to get an image from exists?

On Thu, Apr 3, 2014 at 2:45 PM, msho notifications@github.com wrote:

Hey, I'm kinda new to that whole node.js thing. So I'm sorry if my question is a bit stupid...

i try to use the example 'image2video' (here: https://github.com/schaermu/node-fluent-ffmpeg/blob/master/examples/image2video.js )

And I get errors... First, the first line throw the error "Cannot find module '../index'" So I changed it into the line "var ffmpeg = require('fluent-ffmpeg');"

Then I get the error: " events.js:72 throw er; // Unhandled 'error' event ^ Error: spawn ENOENT at errnoException (child_process.js:988:11) at Process.ChildProcess._handle.onexit (child_process.js:779:34) "

I guess it because I'm missing a library? (If so what lib should i get?)

ThankU very much for your patience and time!

Reply to this email directly or view it on GitHubhttps://github.com/schaermu/node-fluent-ffmpeg/issues/222 .

msho commented 10 years ago

Wow man, thanks for the quick answer! Well I'm sure it there, but I gave the relative path... maybe it does not support relative path...

Ill try to play with the path then. see if I get better results...

Thanks again!

bencevans commented 10 years ago

Okay, good luck :)

On Thu, Apr 3, 2014 at 2:50 PM, msho notifications@github.com wrote:

Wow man, thanks for the quick answer! Well I'm sure it there, but I gave the relative path... maybe it does not support relative path...

Ill try to play with the path then. see if I get better results...

Thanks again!

Reply to this email directly or view it on GitHubhttps://github.com/schaermu/node-fluent-ffmpeg/issues/222#issuecomment-39452883 .

msho commented 10 years ago

Well, its not that :(

I changed the input file name to something that does not exist, and it return a different error (that my input is not right)...

Can you see something else there?

njoyard commented 10 years ago

Do you have ffmpeg installed ? The error "spawn ENOENT" seems to indicate that ffmpeg is not present on your system.

msho commented 10 years ago

Thanks for the response!

I do have it installed (on windows 8). But now that you mention it. I do not have the command ffmpeg as a variable. So from your answer it seems i must have the ffmpeg as a variable right?

njoyard commented 10 years ago

You should either have the folder where ffmpeg is installed in your PATH environment variable, or define a FFMPEG_PATH environment variable with the full path to the ffmpeg.exe executable.

msho commented 10 years ago

OK thanks! And sorry for my ignorance.

One last question :) How can I install FFMPEG in my hosting (Lets say heroku.com, but it does not matter) so your beautiful code would work??

njoyard commented 10 years ago

No idea, it completely depends on what the hoster allows and what system it uses. You should ask them, instead !

msho commented 10 years ago

Alright!

Thank you all so much. for this great API and quick responses!

I wish you happiness where ever you good and may the light be with you

hayatnoor commented 10 years ago

@msho

Did you find a way to get FFMPEG on heroku?