Live data from Hacker News

How to Run a Live Coding Stream on Twitch Using OBS

jordanlewis.org

131–140 of 193 posts

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

#131

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 thi…

> What about hardware-level cursors? (I think that's a thing?)

Software that wants to capture the desktop has to emulate the hardware cursor by getting the current cursor position and bitmap and blit it into its copy of the framebuffer. That's because the hardware cursor doesn't exist in the framebuffer, it's overlaid by the GPU during readout.

For the same reason screen-effects like "nightlight" don't affect the cursor in Windows, because the effect is applied as a shader, which can't touch the cursor. They could fix this by updating the cursor bitmap, but they don't.

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

#132
post #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…

Getting a good level out of a solid dynamic mic requires a good pre-amp as well as (often) a signal booster like the Cloud Lifter or Cathedral Pipes.

It’s a more expensive setup overall, but it does make for a much richer ‘radio’ sound if that’s what you’re after.

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

#133

Love the bokeh on his video feed. Hard to justify a $900 camera for that alone though, anyone using anything else they'd recommend?

I’m testing the Pi HQ camera with a C-Mount Tamron lens that gives similar bokeh for a total cost of around $100... but it is awkward and a little clumsy, and offers no autofocus, so you have to be careful to not move out of the prefocused area.

So in other words, it’s easier to just use a good mirrorless camera.

I have a similar setup to OP, but I bought a used Sony a6000 and the same lens on sale, so the camera and lens only cost me about $500. You could use the Sony kit lens too, and it would still be a huge upgrade over any webcam.

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

#134
post #44

I love live coding streams but I don't understand why you'd stream a video of your keyboard at all times? From the screenshots it doesn't look like you'd be able to pick up on things like hotkeys when watching in real-time, but as mentioned in the article it does open the possibility for somebody to watch replays and figure out your passwords. Keyboard cameras make sense to me if somebody is streaming eg starcraft wh…

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!

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

#135
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.

It really depends on what I'm doing. If it's something I fundamentally don't know how to do and it requires all my concentration, I don't really do it on stream. But there's plenty that I know how to do but others don't. For example writing a parser/lexer can be interesting, but I generally only have to solve fairly local problems and not large structural ones.

Really hard things I _could_ do on stream...but I start to feel like it's too much of me staring really hard silently. I have to wonder how much of that is true and how much of that is personal anxiety. I do enjoy streaming though and should do it more.

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

#136
post #123

I've made a project that you can sell your live stream for btc. totally distributed using hypercore and Lightning network https://github.com/rbndg/Bitstation

I can barely get 1-2 people to briefly look at my stream, and that’s without attempting to charge them anything at all. And meanwhile even popular people stream for free. Why should anyone pay upfront to watch a stream? Much better with Patreon, Twitch subscriptions and donations while allowing anyone to come see.

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

#137
post #41

Jordan was a little vague in terms of how to get the iPad as a source. I know that QuickTime can capture i(Pad)OS devices as an input source so it might be some built in compatibility when the device is connected via lightning/USB, but another route is NDI. [1] NDI is doubly useful as it: 1. is wireless over the local network 2. allows you to use your phone/tablet's camera as a video source, which can be a reasonable…

Whoops, you're right that I didn't mention that. Connecting it to your Mac via Lightning makes the screen available as a video source.

This is great, thanks for pointing this out; I had jumped through a bunch of hoops trying out various camera streaming setups (RTMP mostly, held off on looking at NDI because I only wanted the additional camera angle for laughs), but I never got the latency under multiple seconds. I saw some people suggesting that wifi was causing the latency so I looked up some lightning->ethernet adapters before coming to my senses.

OBS recognized my iphone as a video source with zero configuration, and zero latency (ish? low enough that I can't tell).

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

#138
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.

Put a couple hundred line breaks at the top of your .env file so if you open it it’s just white space

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

#139
post #75

Earlier quoted context omitted.

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…

One thing you might enjoy is recording your screen for yourself, and then replaying it at 10x speed. I’ve done this before and it allows you to get some of the feeling of “being watched” with none of the privacy or security problems. Also sometimes it’s neat to see the crazy process of building something, particularly if there is ui or visual design tools involved. Also, I do think there is a whole additional level o…

I run a piece of software called TimeSnapper on my machine that takes a snapshot every 10 seconds of the entire desktop area. I have recordings going all the way back to the very beginning of 2006. It is incredibly interesting to watch some of those old recordings to see what I was working on that month.

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

#140

Earlier quoted context omitted.

It made me almost feel bad watching it, though. The dude is clearly so quick -- not even in coding, but just using a computer in general -- that given how much of my life I spend in front of this thing, I think I really missed a trick in not being extra attentive to trying to make sure I could maneuver my way around it as fast as he does.

It's just a case of taking the time to learn your tools. Take the time if you think it's worth it. A few hours of dedicated learning will put you miles ahead of casual users. It's not at all unattainable.

Thats like saying anyone can become a good concert pianist if they practice enough, not true.
Post reply on HN