Live data from Hacker News

How to Run a Live Coding Stream on Twitch Using OBS

jordanlewis.org

91–100 of 193 posts

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

#91
post #75
post #4

Do a lot of programmers feel like they could be effective on a livestream? I might be in a minority, but my preferred coding style is very non-linear and sporadic, and wouldn't make for an enjoyable viewing experience.

I am way to self conscious for that... I dive deep into a problem for 10 hours and I try a bunch of stupid stuff along the way or make a bunch of mistakes and now I am broadcasting those to the world; and meanwhile either I am paying attention to the people and not working (I always want to get lost in a complete zone of concentration) or entirely ignoring them (which seems weird)... I will go for long stretches--lik…

I’d watch this, FWIW. The exploration is where the fun/hate/elation/ and excitement occur. ️

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

#92
post #73

So I haven't done any live coding streams in a long time. But I recently recorded a completely unfiltered version of myself coding for a co-worker who is learning to program. I wanted him to see all of the ups and downs. All I did was turn on the recording and just went about my day like I normally do, all cussing and fiddling in my terminal like I normally do. Once you're on for 30 minutes or so you forget you're ev…

I've done this a few times too and posted those on Youtube. Good times. Streaming could be fun, but if you're streaming something you're actively learning (let's say a new piece of tech while you build something), for me it would be likely 50 minutes of Googling and 10 minutes of coding for every hour. That's how I talk myself out of not streaming because I personally would get bored watching someone Google things en…

Yea, I think that's true for us for beginners I realized it might be super valuable. They don't have those skills down and there's usually this perception that if you're a good programmer that you don't run into a lot of the same workflow problems they do.

What they really get out of it is, oh okay this person's a human too but they think about the problems they run into in this way, I could do that too and get a little bit faster. And then also they don't discouraged thinking they're total "noobs"

I always like to explain, no I'm not a genius I've just been doing this a long time. So anything I have a good answer on? I learned that through fire and didn't just pull it out of my ass lol.

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

#93
post #85
post #79

Earlier quoted context omitted.

> I think you'd be surprised how efficient video codecs with regards to bandwidth used, nobody sends raw pixels at all. Also with HLS latency can be very short with the right settings. We've all had enough experience with Zoom, Google Meet, Skype for Business, etc. in recent months to know that this is not something that works well out of the box. And that's before we get into issues like the fact that I'm using a 34…

At the same time, moving video coming from a camera is a lot different than a stream of what is essentially a 95% a still image.

I was referring primarily to the screen sharing features of the aforementioned services. In general, they're barely adequate for slideshow presentations, but the transitions are still going to be rough. And even when everybody in the virtual conference has a solid internet connection, the user experience is still a lot worse than when a PDF of the slides is emailed out before the meeting starts.

I find it simply amazing that all these "collaboration" tools aspire to little more than emulating the use-cases of broadcast television or a large lecture hall, and there a so few tools that try to enhance the experience in ways that are only possible when every participant has their own screen and computer.

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

#94
post #90

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.

That would require no secrets. All it takes is a misclick into a .env file. I’d assume you’re not coding on a production system so your secrets shouldn’t be too hard to revoke, cycle them after your stream and any time you leak them.

Secrets should really be stored in services, not files outside of maybe a single bootstrap file (unless you're working on the secret storage service itself).

I generate my secrets once, send them off to the secrets service, and then my service queries that service. I never see the secrets with my own eyes.

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

#95
post #94
post #90

Earlier quoted context omitted.

That would require no secrets. All it takes is a misclick into a .env file. I’d assume you’re not coding on a production system so your secrets shouldn’t be too hard to revoke, cycle them after your stream and any time you leak them.

Secrets should really be stored in services, not files outside of maybe a single bootstrap file (unless you're working on the secret storage service itself). I generate my secrets once, send them off to the secrets service, and then my service queries that service. I never see the secrets with my own eyes.

Can you expand on this? What service do you use to store your secrets?

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

#96
technical question -- I'm really impressed how OBS is able to abstract the "screen recording" functionality across different OSs (it works the same in Linux, Windows and OSX, with no difference in behavior that I've noticed).

How does screen recording work? Is it easy for OBS to just capture the video output buffer and start encoding it, regardless of the OS? Or do different OSs have very different strategies for this? What about hardware-level cursors? (I think that's a thing?)

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

#97
post #94
post #90

Earlier quoted context omitted.

That would require no secrets. All it takes is a misclick into a .env file. I’d assume you’re not coding on a production system so your secrets shouldn’t be too hard to revoke, cycle them after your stream and any time you leak them.

Secrets should really be stored in services, not files outside of maybe a single bootstrap file (unless you're working on the secret storage service itself). I generate my secrets once, send them off to the secrets service, and then my service queries that service. I never see the secrets with my own eyes.

What are you using for this? This sounds like a neat setup.

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

#98
Audio-input-wise, I fail to understand why anyone whose objective is to capture their own voice, would choose a condenser over a dynamic microphone. Dynamic microphone hardly those fan/AC/room nearby phone calls that the author had to reduce using software filters. Farther more, dynamic mics can deliver your voice with a touch of radiophonic note. What's more, they're usually more durable and cost less (you can get a very good dynamic mic like ATR2100 or Q2U for less than $100).

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

#99
post #90

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.

That would require no secrets. All it takes is a misclick into a .env file. I’d assume you’re not coding on a production system so your secrets shouldn’t be too hard to revoke, cycle them after your stream and any time you leak them.

I think we're probably agreeing with each other, except I'm not willing to call those things "secret." They're public. If you can plan to properly publicize something, great. But work _hard_ to make sure you're really okay publicizing it.

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

#100
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. :)
Post reply on HN