Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

How to use obs-cli #67

Open
JyotstnaDeviChintala opened this issue Sep 13, 2022 · 4 comments
Open

How to use obs-cli #67

JyotstnaDeviChintala opened this issue Sep 13, 2022 · 4 comments

Comments

@JyotstnaDeviChintala
Copy link

obs-studio 28.0.1.0 is installed in C:\Program Files

i have downloaded obs-cli 0.5.0 WIndows x86_64

do i need to copy it to some folder in obs-studio to start using it form cmd.exe ?

i think obs-studio 28.0.1.0 has obs-websocket built in.. so no new plugin is needed

when i run the command from cmd.exe i get the folllowing error

obs-cli recording start
error: dial tcp [::1]:4444: connectex: No connection could be made because the target machine actively refused it.

Pls suggest on how to use

@onyx-and-iris
Copy link

Hi. OBS 28 has websocket v5 built in but obs-cli 0.5.0 supports websocket v4. If you check #64 yusefnapora has kindly started implementing v5 support. So you can use https://github.com/yusefnapora/obs-cli/tree/protocol-v5 until obs-cli is officially updated.

Otherwise you'll have to install the obs-websocket compat plugin for OBS 28.

Once you have compatible library/plugin you can run any command and pass connection flags.

Example

obs-cli recording start --host "localhost" --port 4455 --password "strongpassword"

@JyotstnaDeviChintala
Copy link
Author

JyotstnaDeviChintala commented Sep 14, 2022

Hi, i followed all the below steps .. still the same error

Using the installer (recommended) : download obs-websocket-4.9.1-compat-Qt6-Windows-Installer.exe, launch it and follow the instructions.
Using the obs-websocket-4.9.1-compat-Qt6-Windows.zip archive : copy the contents of the archive to the root of your OBS Studio installation folder (C:\Program Files\obs-studio).

@onyx-and-iris
Copy link

well have you configured websocket settings in OBS? I haven't tried using the obs-websocket-4.9.1-compat plugin btw, I used the v5 compatible fork I linked above.

For me it was as simple as clone fork, install it. Configure websocket settings in OBS and then run the command as above.

@JyotstnaDeviChintala
Copy link
Author

JyotstnaDeviChintala commented Sep 15, 2022

ok i have to run the obs64.exe to get this obs-cli connected and run.

is there a way to hide the obs-studio UI window while running and still get obs-cli connected?

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

2 participants