Question / Help Programatically stop recording

tejovi8181

New Member
For personal reasons I've made an app which will start recording when computer starts or resumes (--startrecording etc.), likewise I'd like obs to quit peacefully and finish its recording when I tell computer to shutdown or sleep. I tested taskkill and it seems to write some data but the file becomes partially corrupted. Is there a way to programmatically tell OBS to stop recording and have a working file as result?
 

Narcogen

Active Member
You should also record to mkv or flv instead of MP4 if you anticipate the possibility that recording would be ended or interrupted by the program exiting abruptly. But the websocket plugin would be the way to do this programmatically, that or something that issued the program hotkey commands.
 

tejovi8181

New Member
You should also record to mkv or flv instead of MP4 if you anticipate the possibility that recording would be ended or interrupted by the program exiting abruptly. But the websocket plugin would be the way to do this programmatically, that or something that issued the program hotkey commands.

Already recording mkv. It's weird, I ran the installer for command line tool, but no new option is under "Tools", even though I closed obs even taskkilled anything remotely named it. I have no idea how to get it to work.
 

tejovi8181

New Member
I also spammed copy-pasted the plugin into folder in obs-plugins in 64bit and 32bit, in and out. I think there's like 8 copies of that plugin in multiple places now incl. main folder.
 
Top