Hi everyone,
I'm trying to run fmedia from node red under windows 10 to record speeches.
I can easily start recording from a Daemon node, but to stop recording I need to press S key or CTRL+C command (in terminal) and I'm unable to this from node red. The kill command just kill the process bus the recorded file is not correct saved.
Is there a proper way to send CTRL+C to daemon node or simulate a S key press?
Thanks for helping,
Best
Hi,
I'm really stuck there. Should I give more info? Maybe this is super easy and I just miss something ![:wink: :wink:](https://emoji.discourse-cdn.com/twitter/wink.png?v=12)
Best,
Hey @UnborN,
Thanks a lot for your answer. Of course it helps... I will try tomorrow at work but the linked text should solve it:
When you want to stop recording, you execute fmedia once again (i.e. you start instance #2):
fmedia --globcmd=stop
fmedia will find out that instance #1 is currently running and will issue a command to it to stop recording. Both fmedia processes will now exit, with the first one correctly finishing its recording file (flushing all cached data and finalizing file header). In other words, this command will simulate an "S" key-press action for the first instance.
from https://stsaz.github.io/fmedia/recording/
I will keep you posted.
Best,
This topic was automatically closed 60 days after the last reply. New replies are no longer allowed.