It works no problem on my Windows 10 but the issue is that when I run it on command line, I would have to stop it using Cntrl+C.
I am new to this library so I am trying to understand it. The idea is that I send a request to "/startRec" and it starts recording to "output.mkv" and when the "/startRec" is received, it stops recording (does not need to return the file, just save it to the file system)
Attempting to visit "/startRec" gives me this:
Error trying to start recording: TypeError: ffmpegCommand.run is not a function
I think im not understanding the library correctly so Im hoping to get some advice. I know this will run on linux so I am trying to set options depending on different OSes but how do I get ffmpeg to stop & start recording via ExpressJS?
[ X] I tried the same with command line ffmpeg and it works correctly (hint: if the problem also happens this way, this is an ffmpeg problem and you're not reporting it to the right place)
[X ] I have included full stderr/stdout output from ffmpeg
Version information
Code to reproduce
My Issue explained
I have a goal to run ffmpeg from an ExpressJS server. The idea is to replace this command here:
https://trac.ffmpeg.org/wiki/Capture/Desktop (In the 'Use built-in GDI screengrabber')
This command
It works no problem on my Windows 10 but the issue is that when I run it on command line, I would have to stop it using Cntrl+C.
I am new to this library so I am trying to understand it. The idea is that I send a request to "/startRec" and it starts recording to "output.mkv" and when the "/startRec" is received, it stops recording (does not need to return the file, just save it to the file system)
Attempting to visit "/startRec" gives me this:
Yet the command is here: https://github.com/fluent-ffmpeg/node-fluent-ffmpeg#outputtarget-options-add-an-output-to-the-command
I think im not understanding the library correctly so Im hoping to get some advice. I know this will run on linux so I am trying to set options depending on different OSes but how do I get ffmpeg to stop & start recording via ExpressJS?
Checklist