Resource icon

Shutdown Plugin 0.2.1

quasi51

New Member
I think this issue and it's comment addressed the same issue. Could you have a look at this?
Thanks, that solved it. For anyone trying to use this plugin with the Multi OBS Controller, this was how I got it working. Create a "Raw WS Request" and populate the fields with the following or something similar:

Request Type:

Code:
CallVendorRequest

RequestData:

Code:
{
  "vendorName": "obs-shutdown-plugin",
  "requestType": "shutdown",
  "requestData": {
    "reason": "asdfasdf asdfa",
    "support_url": "https://github.com/norihiro/obs-shutdown-plugin/issues"
  }
}
 

salt86

New Member
Got it. tawmae on the streamer.bot discord helped me format things correctly. I was able to send a raw OBS JSON

Here's what it looks like
Code:
{
  "requestType": "CallVendorRequest",
  "requestData": {
    "vendorName": "obs-shutdown-plugin",
    "requestType": "shutdown",
    "requestData": {
      "reason": "requested by streamer.bot",
      "support_url": 'https://github.com/norihiro/obs-shutdown-plugin/issues',
      "force": true
    }
  }
}
 

norihiro

Member
Got it. tawmae on the streamer.bot discord helped me format things correctly. I was able to send a raw OBS JSON

Here's what it looks like
Code:
{
  "requestType": "CallVendorRequest",
  "requestData": {
    "vendorName": "obs-shutdown-plugin",
    "requestType": "shutdown",
    "requestData": {
      "reason": "requested by streamer.bot",
      "support_url": 'https://github.com/norihiro/obs-shutdown-plugin/issues',
      "force": true
    }
  }
}
Please do not set https://github.com/norihiro/obs-shutdown-plugin/issues to support_url but set a URL to streamer.bot.
 

PoWeR-Ding

New Member
OBS 31.1.1
The 'force' parameter is "True", but it has no effect!

1753040006888.png


Python:
import obsws_python

import sys



cl = obsws_python.ReqClient(host='localhost', port=4455)



cl.send('CallVendorRequest', {

    'vendorName': 'obs-shutdown-plugin',

    'requestType': 'shutdown',

    'requestData': {

        'reason': f'requested by {sys.argv[0]}',

        'support_url': 'https://github.com/norihiro/obs-shutdown-plugin/issues',

        'force': True,

    },

})
 

PoWeR-Ding

New Member
谢谢你的报告。看起来我需要更新我的插件......该插件更改了 OBS 设置以禁用对话框,但设置的位置已移动。对于给您带来的不便,我深表歉意。
No need to apologize, your plugin is very useful
 

norihiro

Member
Updated source code is ready. I'm debugging the new build flow for OBS Studio 31. Hopefully, I can release this weekend. (It is tough work to support all 3 platforms. For now, Linux and Windows versions look ok.)
 

norihiro

Member
norihiro updated Shutdown Plugin with a new update entry:

Shutdown Plugin 0.2.0

This is a major update release.

Change in 0.2.0
  • When shutdown is requested with force = true, this plugin will request to stop recording and streaming to avoid the confirmation dialog.
  • The setting ConfirmOnExit is not longer modified by this plugin.
  • Rebuild for OBS Studio 31.1.1 (Windows and Linux), 31.0.0 (macOS).

Limitations
  • If using remux, this plugin cannot...

Read the rest of this update entry...
 

norihiro

Member
norihiro updated Shutdown Plugin with a new update entry:

Shutdown Plugin 0.2.1

This is a patch release.

Change in 0.2.1

  • Fixed OBS Studio is not shutdown even if force = true when the virtual camera or replay-buffer is active.
  • Added a new parameter exit_timeout to more strongly force OBS Studio to terminate.

Limitations
  • If using remux, this plugin cannot shutdown even if force is set true. Set [FONT=courier...[/LIST]
 

Smart Net

Member

@norihiro

your plugin is very useful! I am using OBS for 24/7 projects, however OBS need to be refreshed after 2 days and it is helpfull to shutdown it. Would be great to have restarting option
 

norihiro

Member

@norihiro

your plugin is very useful! I am using OBS for 24/7 projects, however OBS need to be refreshed after 2 days and it is helpfull to shutdown it. Would be great to have restarting option
AFAIK, restarting the software is tricky.
Instead, I'd like to suggest another program having infinite loop to start OBS.

For example, a shell script like below would work.
on macOS:
Bash:
#! /bin/bash
while true; do
  open -W /Applications/OBS.app
  sleep 10
done

For Linux:
Bash:
#! /bin/bash
while true; do
  obs
  sleep 10
done

Auto-start from Task Manager on Windows or Cron on Linux would be another option.
 
Top