Live data from Hacker News

How to Run a Live Coding Stream on Twitch Using OBS

jordanlewis.org

171–180 of 193 posts

Re: How to Run a Live Coding Stream on Twitch Using OBS

#171
post #20

If you are using Streamlabs for the alerts then why not use it for streaming too? And it's available on Mac aswell https://blog.streamlabs.com/streamlabs-is-live-on-mac-ff543b... or https://github.com/stream-labs/streamlabs-obs/ Personally I like it more than OBS because all the integrated stuff inside the client, it's just a better fork really.

Streamlabs used a ton of cpu usage on my Mac Mini 2014. Even when not being actively used. Made it a no go for me.

Re: How to Run a Live Coding Stream on Twitch Using OBS

#172

Earlier quoted context omitted.

Twitch has like 30 seconds delay, giving you plenty of time for this kind of moments. If you need more then 30 seconds, then you're out of luck and shouldn't be on Twitch in the first place.

That's not true at all in 2020. Most streamers have low latency on which reduces it to ~3 seconds or less.

And I would not recommend stay in low latency feature of Twitch. You are there to show people something, not to live chat with them. Opt-out of it and comeback to normal 30 seconds delay. Reasons to do this includes, but not limited to:

-1 -if gaming on a FPS, enemies might use your Twitch stream to find you. 30 seconds delay allows you to actually use counter-measures and employ disinformation tactics on your stream

-2 -if showing something, chat should be secondary, not primary. You're not on a live AMA, for that use Youtube LIVE (or chaturbate if that's your thing, I don't judge)

-3 -as said above, to give you time to react to your own mistakes

-4 -post processing for additional effects/reasons. Making a loop allows you to cut into mid-stream in some cases. This is an advanced use though, I only know of one twitcher that uses this

Re: How to Run a Live Coding Stream on Twitch Using OBS

#173
post #169

Earlier quoted context omitted.

I think the best way to deal with secrets is to not live stream them, at all, ever, in any way. If you have secrets anywhere near your live stream, it's not a question if "if" you will leak them but "when." Don't put yourself in that situation. Work _hard_ to keep yourself out of that situation.

It's not always possible to do this. Let's say I live streamed implementing Stripe. There's no way to avoid not showing my test API keys if I'm going to show the end to end process of setting everything up. The best I could do is to roll the keys before I start the stream but this degrades the quality of the stream since it's not from scratch. Of course those keys and anything else that's sensitive would be sitting i…

I'm sorry, but you claimed "it's not always possible to do this," and then your example started "Let's say I live streamed."

You are making the choice to live stream. It is always possible to avoid live streaming. Always.

Re: How to Run a Live Coding Stream on Twitch Using OBS

#174
post #103

Earlier quoted context omitted.

I'm using my phone, there's an app that lets you stream from your phone's camera... which is usually better than the dedicated web cams.

What's the app? Are you saying it allows you to use the phone as a video source in OBS?

Yes, https://obs.camera/

Re: How to Run a Live Coding Stream on Twitch Using OBS

#175
post #170
post #169

Earlier quoted context omitted.

It's not always possible to do this. Let's say I live streamed implementing Stripe. There's no way to avoid not showing my test API keys if I'm going to show the end to end process of setting everything up. The best I could do is to roll the keys before I start the stream but this degrades the quality of the stream since it's not from scratch. Of course those keys and anything else that's sensitive would be sitting i…

Maybe the answer is simpler than that. Rotating a key should never be painful. If you accidentally reveal a key, it should be straightforward to change it (I'm sure your audience will understand if you take a one minute break).

The reveal wouldn't be by accident typically. It could be a necessary requirement based on the content you're streaming.

If you revealed a Stripe key only to change it 1 minute afterwards, you still need a process to change it in secret, which goes back to my original reply of setting up a dedicated "secret" scene so you can modify things in private.

Re: How to Run a Live Coding Stream on Twitch Using OBS

#176
post #175
post #170

Earlier quoted context omitted.

Maybe the answer is simpler than that. Rotating a key should never be painful. If you accidentally reveal a key, it should be straightforward to change it (I'm sure your audience will understand if you take a one minute break).

The reveal wouldn't be by accident typically. It could be a necessary requirement based on the content you're streaming. If you revealed a Stripe key only to change it 1 minute afterwards, you still need a process to change it in secret, which goes back to my original reply of setting up a dedicated "secret" scene so you can modify things in private.

You can switch to a different scene when handling sensitive details, like the camera feed or the "technical difficulties" scene. This is how I've seen folks deal with secrets in the past

Re: How to Run a Live Coding Stream on Twitch Using OBS

#177

Earlier quoted context omitted.

Technically this is still kind of the best way of doing it. Guy who wrote this article made a mistake, his keyframe interval is set to 0, which tells his encoder its free to do scene detection... however, he's exploiting the nature of the encoder (the scene never changes, as its a static image) to create extremely large GOPs, but not as big as manually setting it can go. Twitch, as do other platforms, have recommenda…

I haven't had a chance to play with Turing NVENC yet - how much of a real step up from Pascal is it? How does it compare to x264 veryslow quality wise (I know it'll beat x264 in realtime encoding, but I'm more interested in archival)

Its equivalent to x264 medium when using "quality" or "low latency quality. "High quality" just enables two pass on top of quality, which doesn't get it out of medium, but improves the bit distribution similarly to how two pass in x264 does.

All the gens of GCN through RDNA1 are on the spectrum of veryfast to fast, Pascal is fast; RDNA2 (due to inclusion in PS5 and XB2) meets Turing's new bar for quality (so no more low quality console streams on Twitch).

So, none of them compare to veryslow. Ampere will probably have a better encoder than Turing, but I think the fair comparison will still be against medium, not slow. The big change, afiact, will be work on h265, h264 for them is pretty much as good as they need.

Re: How to Run a Live Coding Stream on Twitch Using OBS

#178

Earlier quoted context omitted.

Technically this is still kind of the best way of doing it. Guy who wrote this article made a mistake, his keyframe interval is set to 0, which tells his encoder its free to do scene detection... however, he's exploiting the nature of the encoder (the scene never changes, as its a static image) to create extremely large GOPs, but not as big as manually setting it can go. Twitch, as do other platforms, have recommenda…

Huh, thanks for the info here. I don't really understand keyframe intervals. What's a good recommendation for a stream that's mostly static? Thanks!

Keyframe intervals in OBS are just "keyframe per x seconds"; x264 itself exposes this as keyframe x frames.

As I said in my comment, a keyframe interval of 10 is doable. Don't be afraid of trying large values to see what they do.

Re: How to Run a Live Coding Stream on Twitch Using OBS

#179

Earlier quoted context omitted.

That's not true at all in 2020. Most streamers have low latency on which reduces it to ~3 seconds or less.

And I would not recommend stay in low latency feature of Twitch. You are there to show people something, not to live chat with them. Opt-out of it and comeback to normal 30 seconds delay. Reasons to do this includes, but not limited to: -1 -if gaming on a FPS, enemies might use your Twitch stream to find you. 30 seconds delay allows you to actually use counter-measures and employ disinformation tactics on your stream…

"You are there to show people something, not to live chat with them"

Many, many streamers expressly DO want to live chat with viewers. As a viewer, I don't like streamers that don't interact with chat. I may as well as watch a youtube video at that point. As a streamer, the entire point for me is to interact with people. If all I wanted to do was showcase something, I'd make youtube videos...

There are other methods one can use to avoid i.e. stream sniping besides having a long latency.

"You're not on a live AMA"

Twitch literally has a "Just Chatting" category. That said, there's nothing wrong with a streamer taking a break from the game to just chat for a bit. If you don't like that, instead of telling people how they should act, why not find a different streamer or use a different platform?

Re: How to Run a Live Coding Stream on Twitch Using OBS

#180

I've streamed coding a few times on Twitch at my channel (14domino). My setup is much more similar to my coding setup so the font can definitely look small. Does anyone know a good way to advertise coding streams in general? I mostly get 2-3 viewers who are already my friends, and I doubt they're very engaged, but I do like streaming coding and would love it if people could learn something out of it. :)

Youtube videos. You need to have a youtube channel and put up videos for people to discover if you want to grow.

With twitch alone it's easy to get lost among the other streamers, and I'm not necessarily going to dig through VODs either.

Putting a condensed version of your stream to a youtube playlist and having links to your twitch will help a lot.

Post reply on HN