Skip to content

Instantly share code, notes, and snippets.

@FoamyGuy
Last active June 22, 2022 12:37
Show Gist options
  • Star 0 You must be signed in to star a gist
  • Fork 0 You must be signed in to fork a gist
  • Save FoamyGuy/96dd64865cf77f9fe100fc0f7a764543 to your computer and use it in GitHub Desktop.
Save FoamyGuy/96dd64865cf77f9fe100fc0f7a764543 to your computer and use it in GitHub Desktop.

Multiple screens is not a string requirement, but it will make things MUCH easier. You can manage the stream and (try to) keep anything private on the screen that is not shared as a source in OBS.

I use OBS and hooked it up with restream.io. I don't recall the exact process but it was fairly straightforward after signing up for restream.io. Youtube seems to keep them recorded automatically, I don't think I had to do anything extra.

Restream.io can in turn connect your twitch, youtube and other platform accounts. All of them will go live together (if everything works)

OBS "Scenes" allow you to build up other things on your view like the chat box, other camera feeds, and any static elements you want. You can setup multiple scenes and switch between them if you want.

I used the discord stream kit chat overlay from here: https://streamkit.discord.com/overlay there are a few configurable options. But not overall size. I ended up writing a little javascript bookmarklet to manipulate the size:

javascript:(function(){document.querySelector(".chat-container").style.width='500px';document.querySelector(".messages").style.height='400px';})();

I use a "window" source for it in OBS, not the browser source like thepage recomends, because the browser source isn't included by default in the Linux OBS.

Though I'm exploring other options and hoping to find something better because the overlay seems to have some javascript bug causing names to appear as [object Object] sometimes.

My "desk cam" is an old Android Phone with a network camera streaming app installed on it. I just load a browser window to view it when needed on the stream. But if it were a more traditional camera device it could be fed in as a source in OBS.

A few gotchas in no particular order:

For me it seems like the "set title" feature in restream.io isn't affecting twitch properly even though they say it should. I've had to manually update the twitch title to get it to match youtube if I want them to match.

With primarily programming content there is likely to be lots of text in the stream. It's probably good to set the font size a touch larger than normal so that it's still legible on the other end of the stream.

If you do layer up the screen with chat box and other feeds and things: try to keep in mind what part of your shared screen is covered. I was bad about covering up the thing I was talking about a few times. I ended up shrinking my screen source a bit so that it doesn't take up the full size of the output scene. The whole thing is smaller, but it means a smaller portion of it is getting covered.

if you end up with relative dead air at begining or end of your stream youtube has a basic editor that lets you trim the videos begining and end easily-ish

@ShGKme
Copy link

ShGKme commented Jun 20, 2022

Hello!

How have you added JavaScript to steamkit discord overlay in OBS?

It seems custom JS is the only way to fix [object Object] in names, but standard BrowserSource in OBS doesn't allow to add JS, only CSS...

@FoamyGuy
Copy link
Author

@ShGKme I never did get the stream kit to work reliably, it was always having that [object Object] problem. Eventually I stopped using the stream kit altogether and just started using a standard browser window open to discord.com and logged in. OBS can pull in a browser window open to discord the same way it could pull in the streamkit browser window. And the standard client doesn't have the problem with not showing names correctly.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment