Resource icon

Free Command line tool for obs-websocket plugin (Windows) 1.5.4

richardguenther

New Member
...that was too easy. I didn't know, that you could just ignore the grouping of the sources and toggle with "scene"/"source" regardless of the group.
Thanks again for this nice tool.
richard

Hello.
It's a great plugin. I queued up 50 commands at it worked almost instantly - great work. Now I'm trying to show a source in a "Group" but I don't know if or how obs command can acess groups and sources within a group.
Is there a way or should I use another websockets way into obs to accomplish this?
thank you
richard
 

PixelBeardQc

New Member
/command is only for simple or single nested json commands, it is not suitable for complex combinations of nested json commands, you should be able to make this work with the /sendjson feature
I have never worked with json,

I triedusing this as a guide : /sendjson="ReorderSceneItems={'scene': 'MyScene', 'items': [{'name': 'Image'}, {'name': 'Gamecapture'}]}"

but I have no luck, here is waht I got so far : /password=^%$%^$ /sendjson="SetSourceSettings={'sourceName': 'OBSNINJALOANER', 'sourceSettingsurl': 'https://obs.ninja/?view=$allargs&scene&room=test&password=test'}"

Any help from Json pro would be appreciated
 

FSC

Member
I have never worked with json,

I triedusing this as a guide : /sendjson="ReorderSceneItems={'scene': 'MyScene', 'items': [{'name': 'Image'}, {'name': 'Gamecapture'}]}"

but I have no luck, here is waht I got so far : /password=^%$%^$ /sendjson="SetSourceSettings={'sourceName': 'OBSNINJALOANER', 'sourceSettingsurl': 'https://obs.ninja/?view=$allargs&scene&room=test&password=test'}"

Any help from Json pro would be appreciated
are you sure it is 'sourceSettingsurl' and not just 'url'? (I am looking at your post on page 9)

If you do a "GetSourceSettings" it should list the items and the names you can use
 

PixelBeardQc

New Member
are you sure it is 'sourceSettingsurl' and not just 'url'? (I am looking at your post on page 9)

If you do a "GetSourceSettings" it should list the items and the names you can use
I figured it out with someone's help and you are right.

I am basically replacing the livefeed between guest without having to have all the source loaded at the same time

/sendjson="SetSourceSettings={'sourceName':'OBSNINJALOANER','sourceSettings':{'height': 1080,'reroute_audio': true,'shutdown': false,'url': 'https://obs.ninja/?view=$allargs&scene&room=someroomnameL&password=somepassword','width': 1920}}
 

lindenkron

New Member
Hey FSC!

I'm using NOOBS Cmdr which uses OBS Commander as its core. I'm being told there of some bugs that apparently are due to OBS Commander, and thus hard to fix on their end. I'd hope you'd have a look at them, or help us figure out how to solve the issues. NOOBS Cmdr have been a very useful tool, and therefore obviously so has OBS Commander!

First issue is some audio issue with setting audio. Here's an example using NOOBS Cmdr (I'm being told they're limitations of OBS Commander)
DphQWHW.png

So setting it to 1% (audio volume, 2nd bar) results in this:
https://streamable.com/l3ngl0

wlOnoRd.png

While setting it to 0% (audio volume, 2nd bar) results in this:
https://streamable.com/7kfwq7

As you can see in bottom video example, the bar just doesn't react if audio is set to 0% for some reason. And I don't know if the audio bars jumping around a bit is OBS Commander or NOOBS Cmdr.

Second issue is enabling/disabling sources that are inside groups seems to not be working. There's no need for any elaborate example, it just only shows groups and not the sources inside.

Third issue is enabling/disabling sources with the same name. If you in OBS have three sources called "Black" (color source for example) that are duplicated references with different transformations - then OBS Commander can't tell which is which.

Thanks for your time and dedication!
-lindenkron
 

FSC

Member
Is a Mac version available?
No, this works only for Windows.

Hey FSC!

I'm using NOOBS Cmdr which uses OBS Commander as its core. I'm being told there of some bugs that apparently are due to OBS Commander, and thus hard to fix on their end. I'd hope you'd have a look at them, or help us figure out how to solve the issues. NOOBS Cmdr have been a very useful tool, and therefore obviously so has OBS Commander!

First issue is some audio issue with setting audio. Here's an example using NOOBS Cmdr (I'm being told they're limitations of OBS Commander)
View attachment 68899
So setting it to 1% (audio volume, 2nd bar) results in this:
https://streamable.com/l3ngl0

View attachment 68900
While setting it to 0% (audio volume, 2nd bar) results in this:
https://streamable.com/7kfwq7

As you can see in bottom video example, the bar just doesn't react if audio is set to 0% for some reason. And I don't know if the audio bars jumping around a bit is OBS Commander or NOOBS Cmdr.

Second issue is enabling/disabling sources that are inside groups seems to not be working. There's no need for any elaborate example, it just only shows groups and not the sources inside.

Third issue is enabling/disabling sources with the same name. If you in OBS have three sources called "Black" (color source for example) that are duplicated references with different transformations - then OBS Commander can't tell which is which.

Thanks for your time and dedication!
-lindenkron
1. I am aware of and have addressed different international decimal separators in my project in the past. I assume this is an issue in the NOOBS Cmdr project
2. OBSCommand's "internal" commands do not support groups, but you should be able to access items in groups by providing the "parentGroupName" with the "/sendjson" command
3. OBSCommand is only a command line interface for obs-websocket, basically it just relays the information to the plugin, what the plugin is capable of or not is in the hands of the obs-websocket plugin developer (link is at the top in the Overview), and also the OBS Studio developers.

Just wanted to say thanks so much for this! It really helped me for a project at new job.
I'm glad to hear that my little tool is so useful for you! Most of the credits belong to the obs-websocket developer "Palakis" as he did most of the heavy lifting and provided a TCP/IP interface and the .net framework for OBS Studio.
 

aconn91

New Member
Oh, only recommendation I have is to add that the zip must be extracted a specific folder (C:\Program Files\obs-studio, rather than C:\Program Files\obs-studio\obs-plugins). I don't know how to refer to this folder, sorry.

This info would fit perfectly in step 2 of the How to Install section, which is located in the Overview tab.

On the other hand, I'm really quite new to all this stuff, so maybe this is common knowledge, but I think another user had the same issue.

Again, best wishes and thanks for all your work <3.
 

FSC

Member
The zip file can be extracted anywhere you want, except "C:\Program Files\obs-studio\obs-plugins" as this folder is for OBS plugins only, like obs-websocket, which OBSCommand is using.
Thanks for pointing this out, I added this note to the overview install section.
 

usbizupdates

New Member
I gave it a try and was not noticing OBS responding. When I tried another MIDI port it crashed. Now it crashes on launch. Does MidiContol save the last used MIDI port? If so where is it stored? I would like to delete any configuration and experiment with other MIDI Ports/ Devices.
usbizupdates.com
 

FSC

Member
I gave it a try and was not noticing OBS responding. When I tried another MIDI port it crashed. Now it crashes on launch. Does MidiContol save the last used MIDI port? If so where is it stored? I would like to delete any configuration and experiment with other MIDI Ports/ Devices.
usbizupdates.com
This is the discussion for OBSCommand, has nothing to do with MidiControl for OBS
 

jojizaidi

New Member
I'm unable to change my stream key using obscommand. Not sure what how it expects input. I tried /command=SetStreamSettings,settings.key=<Key comes here> but I always get 'settings are required'
 

FSC

Member
I'm unable to change my stream key using obscommand. Not sure what how it expects input. I tried /command=SetStreamSettings,settings.key=<Key comes here> but I always get 'settings are required'
This works for me:
Code:
obscommand /command=SetStreamSettings,settings=key="YourKeyInHere"
 
Top