A friend of mine rewrote mfc-node to use
https://github.com/streamlink/streamlink instead of ffmpeg to save the streams and so far it has been working without any freezes. I've only been testing it for the last 24 hours so I'm not 100% sure yet but I'll post the changes he sent me down below for anyone who wants to try it.
It includes the whole main.js and just the changes under "changes.js" if you want to make the modifications yourself.