Closed ChrisZio closed 3 years ago
That error indicates that ffmpeg is not installed or not in path. Check if you can call ffmpeg from the command line.
I had the same issue, you need to download and install FFMpeg from their site.
As @vaaski said, you have to install FFMpeg in your environnement AND add the ffmpeg binaries folder to your environnement path variables otherwise it won't work.
I have the same issue but it works on cmd but not in vscode terminal
Hi @Mahboub99, I also had same error on Windows 10. I had downloaded ffmpeg files, placed in c drive, and added the path of that folder to environment variables. ffmpeg commands worked in cmd but still faced error in while runnning the project. I fixed it by copying the ffmpeg.exe directly into the project in visual studio code.
@Mahboub99 @Arsh-Sandhu You can change the ffmpeg
command here https://github.com/agsh/rtsp-ffmpeg/blob/ac6b17b9b3a952cc6f8e52c9b4ec975aafb64a45/lib/rtsp-ffmpeg.js#L42
To close this issue, added solution in the README
Hi,
I have been trying to find the solution to this error for weeks now :(
events.js:182 throw er; // Unhandled 'error' event ^
Error: spawn ffmpeg ENOENT at exports._errnoException (util.js:1024:11) at Process.ChildProcess._handle.onexit (internal/child_process.js:192:19) at onErrorNT (internal/child_process.js:374:16) at _combinedTickCallback (internal/process/next_tick.js:138:11) at process._tickCallback (internal/process/next_tick.js:180:9)
I am using the example on your github page and this is the error I get...
Please can you give me some assistance in the matter...
Thanx.