damianociarla / node-ffmpeg

ffmpeg module for nodejs
MIT License
600 stars 140 forks source link

Command failed #61

Open gauri08 opened 4 years ago

gauri08 commented 4 years ago

I am trying to add watermark to video but it failed. Error is:

error: { Error: Command failed: ffmpeg -i assets/encoded/upload-157113597459120191009_171749.mp4 -i assets/logo/logo.png -filter_complex "overlay=0-0+0:main_h-overlay_h-0+0" assets/encoded/water-157113597459120191009_171749.mp4 'ffmpeg' is not recognized as an internal or external command, operable program or batch file.

at ChildProcess.exithandler (child_process.js:294:12)
at ChildProcess.emit (events.js:188:13)
at ChildProcess.EventEmitter.emit (domain.js:441:20)
at maybeClose (internal/child_process.js:978:16)
at Process.ChildProcess._handle.onexit (internal/child_process.js:265:5)

killed: false, code: 1, signal: null, cmd: 'ffmpeg -i assets/encoded/upload-157113597459120191009_171749.mp4 -i assets/logo/logo.png -filter_complex "overlay=0-0+0:main_h-overlay_h-0+0" assets/encoded/water-157113597459120191009_171749.mp4' }

Please help me !

web-linda commented 4 years ago

To use this library requires that ffmpeg is already installed

gauri08 commented 4 years ago

ffmpeg is already installed. It gives error for some videos.

web-linda commented 4 years ago

It may be your ffmpeg has a fail position.

web-linda commented 4 years ago

You must be sure your ffmpeg has a best position to your code file

web-linda commented 4 years ago

You must be sure your ffmpeg has a best relative path to your code file

gauri08 commented 4 years ago

Sorry, I didn't get

gauri08 commented 4 years ago

It gives Invalid data found when processing input