Skip to content

OBS Studio

  • Action
  • Audio & media
  • Advanced mode

Controls OBS Studio: switch scenes, record, stream, mute a source, show or hide one, save the replay buffer, the virtual camera, or any request of OBS's WebSocket protocol. OBS must be running with its WebSocket server on (Tools > WebSocket Server Settings).

In the editor, press Space on the canvas to add a step, then open Actions > Audio & media, or type its name. In Simple mode it's under Show all, and search finds it.

Settings

Action

A choice
  • Switch scene
  • Start recording
  • Stop recording
  • Start or stop recording
  • Pause recording
  • Resume recording
  • Start streaming
  • Stop streaming
  • Start or stop streaming
  • Mute an audio source
  • Unmute an audio source
  • Mute or unmute an audio source
  • Show a source in a scene
  • Hide a source in a scene
  • Save the replay buffer
  • Start the virtual camera
  • Stop the virtual camera
  • Custom request: Any request of OBS's WebSocket protocol, by its name, with its data as JSON.

Starts as: Switch scene Can come from another step's output

Scene

Text

The scene's name as OBS shows it.

Starts as: empty Takes ${variables} and expressions Can come from another step's output

Source

Text

The source's name as OBS shows it, e.g. Mic/Aux.

Starts as: empty Takes ${variables} and expressions Can come from another step's output

Request

Text

The request's name, e.g. SetCurrentSceneTransition.

Starts as: empty Takes ${variables} and expressions Can come from another step's output

Request data

Text

Its data as JSON, sent as typed, e.g. {"transitionName": "Fade"}.

Starts as: empty Can come from another step's output

Address

Text Required

OBS's WebSocket server: OBS 28 and later have it built in (Tools > WebSocket Server Settings), on port 4455.

Starts as: ws://127.0.0.1:4455 Takes ${variables} and expressions Can come from another step's output

Password

Text

The server password from OBS's WebSocket Server Settings. Stored as a password.

Starts as: empty Takes ${variables} and expressions Can come from another step's output Starts as a password

Time limit (ms)

A duration More options

For connecting and OBS's answer. 0 waits as long as it takes.

Starts as: 10000 Can come from another step's output

Where it continues

  • OK: Continues here when OK is clicked.
  • Failed: Continues here when it fails; the reason is in the run log.

Outputs

Values the step gives to the steps after it. In the Graph view, drag a wire from an output to another step's field.

OBS Studio outputs
OutputGivesWhat it is
ResponseTextOBS's answer as JSON (empty for requests that answer nothing).
ErrorTextWhy it failed; empty when it worked.

Good to know

  • Fields marked as passwords keep their value in the Windows password vault, never in the macro.

More in Audio & media