OBS WebSocket and scripting

Hi @Musicullum and @Spork ,
I recently tried the VST Live 3 connection to OBS, audio only as I switch cams and scenes inside OBS. This is a great way to record the show with the possibility to stream it, and that led me to new ideas to improve this functionality.

What I’m thinking of would lay on three new features:

  1. Songs Meta Data, a form where we could add the author, composer, genre, year, etc for each Song.
  2. A WebSocket connection to OBS.
  3. Adding a scripting feature (Lua, JS…) that makes possible to send commands and Songs Meta Data to OBS via WebSocket.

Usage:
When a Song is selected, a new Chapter is created in the video file written/streamed by OBS and the Title and Artist name are displayed for a few seconds.

Of course, a scripting feature would not limit to this function. So many to imagine!

Many thanks for your excellent work these last weeks :folded_hands:t3:

have a good week.

Just for me to fully understand: :smiley:

You want:

  • to add metadata for each song in VL
  • send these data to OBS via Web Socket, so that it can be recorded in OBS’ video stream (be that live or recorded).

Am I right?

Next: what do you exactly mean by “send commands […] to web socket”. What commands?

And finally: you’re aware that scripting features rank highly among the easiest ways to wreak havoc and open the Pandora’s Box? :grin:

Absolutely! I know how bad and crazy it could turn :nerd_face:

You’re right, the goal is to control OBS using obs-websocket-js obs.call() functions like:

  • FilenameFormatting, StartRecord, StopRecord

  • CreateRecordChapter (add a Chapter marker named as the current Song title)

  • SetCurrentProgramScene (switch to a Scene, splash screen, for example)

  • SetSceneItemEnabled (display a Logo or the Song informations)

  • SetInputSettings (change the content of Text sources)

  • …

The LosslessCut freeware can divide a long video file with chapters into individual files.

For a solo performer or small band, this will automate the real-time creation of a streamabled full video recording with Songs titles and splash screens or animations fired each time a VL Song is activated.

Having meta data for Songs would of course increase the number and type of informations we could sens tu OBS.

I’m sorry but you started by giving us VST Live plugins for OBS :wink:

Hi,

:slight_smile:

Let us think for a while about your request. Meanwhile …

how’s your worfklow with VST Live and OBS?

Thank you
Michael.

I think that for a maybe :smiley:

Until now, I just connect two cams to OBS and a VST Live Audio source that I add to all Scenes.

The Advanced Scene Switcher plugin allows me to switch Scenes following a random delay between 3 and 8 seconds.

I could switch Scenes or activate Sources using Midi messages, through Chataigne, for example, but there’s no way to get the current Song name, and if I had fields for other informations such as year, composer, genre, etc, it would be so nice to send them to fill a lower third displayed in an OBS Scene for a few seconds on every Song activation!

… what about the Video Director of VST Live? There’s a random switch. And you can send your “Video-Stream” to OBS.

And you can control all action with MIDI messages …

… yes, I can understand that point/request. Thinking …

/Michael.

Hi Michael,

Of course I knew about VL Vídeo Director that is a fantastic tool to display video streams on a screen on stage. However OBS is more dedicated to recording and streaming, with lots of options for transitions, moves, titles, jingles, and more, with hundreds of plugins, and I don’t think this is the section of VL that deserves a huge amount of work. Maybe the two softwares can work hand in hand?