Live data from Hacker News

How to Run a Live Coding Stream on Twitch Using OBS

jordanlewis.org

51–60 of 193 posts

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

#51
post #40

Does anyone know of a good presentation system that does not consist of compressing raw pixels and sending that to the audience? It's a huge waste of bandwidth that I'd rather see used to provide reliable low-latency audio. I'd love to be able to teach programming in a way that lets the students explore the live state of my working directory and follow along with file edits, but rendered locally on their machines at…

I think that you can do something like this with VS Code's Live Share[1] feature. And I think it's possible to do read-only sessions as well. Been a while since I looked at that feature though, so I'm not certain.

[1]: https://docs.microsoft.com/en-us/visualstudio/liveshare/use/...

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

#52
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 used to do some livecoding myself. The answer is that it depends on the specific things you are working on. Some thing lend themselves very poorly for livecoding, but others work out pretty well.

For example, if you are doing interview practice, for Google style interviews, livecoding your interview practice is actually a pretty good experience.

Coding in front of an audience isn't much different than coding in front of an interviewer, if you think about it.

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

#53
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…

> There are apps on iOS that will share the screen content and camera content and a quick google seems to surface the same for Android.

I have been on the look for something like that in the past. I know of software sharing the camera via NDI, but it was my understanding that doing the same with the screen was not possible inside Apple's sandbox.

You can use AirPlay, of course, but then you're stuck with hoping that on the next OS update the AirPlay server software you're bought is updated quickly.

So please do name one if you're aware.

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

#55
post #40

Does anyone know of a good presentation system that does not consist of compressing raw pixels and sending that to the audience? It's a huge waste of bandwidth that I'd rather see used to provide reliable low-latency audio. I'd love to be able to teach programming in a way that lets the students explore the live state of my working directory and follow along with file edits, but rendered locally on their machines at…

What you’re looking for sounds like Skypix, an Amiga based system for creating BBS UIs.

But, honestly, if your intention is to reach an audience rather than simply to geek out over an elegant technical solution (no harm in that!), then just go with streaming. It’s not your bandwidth, after all, if you’re using Twitch et al.

I guess, though, that streaming has the problem of not letting you copy the code, not being meaningfully interactive, etc.

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

#56
post #53
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…

> There are apps on iOS that will share the screen content and camera content and a quick google seems to surface the same for Android. I have been on the look for something like that in the past. I know of software sharing the camera via NDI, but it was my understanding that doing the same with the screen was not possible inside Apple's sandbox. You can use AirPlay, of course, but then you're stuck with hoping that…

NDI HX Capture is the one I've tried: https://apps.apple.com/us/app/ndi-hx-capture/id1501247823

In terms of sandboxing, I think it may use APIs that are there for screen sharing on video calling apps. It shows a similar interface to the screen recording feature that was added in iOS 12.

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

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

Is it available as a video source directly in OBS? I know I can open it in QuickTime, but then you'd have to add a layer of window capture...

Personally I'm looking for a Windows solution primarily, but if I can open it directly in OBS, I might just run my MacBook and use the NDI plugin from the parent to stream that video to my PC.

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

#58
post #57

Earlier quoted context omitted.

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.

Is it available as a video source directly in OBS? I know I can open it in QuickTime, but then you'd have to add a layer of window capture... Personally I'm looking for a Windows solution primarily, but if I can open it directly in OBS, I might just run my MacBook and use the NDI plugin from the parent to stream that video to my PC.

Yes, it pops right up in OBS as well as QuickTime and so on.

Using another layer of window capture doesn't work very well as I'm sure you know - it gets super laggy!

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

#59
post #40

Does anyone know of a good presentation system that does not consist of compressing raw pixels and sending that to the audience? It's a huge waste of bandwidth that I'd rather see used to provide reliable low-latency audio. I'd love to be able to teach programming in a way that lets the students explore the live state of my working directory and follow along with file edits, but rendered locally on their machines at…

Scrimba pretty effectively (at least in terms of tech implementation) does this for frontend programming. I think the actual course content is relatively middling.

https://scrimba.com/

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

#60
post #56
post #53

Earlier quoted context omitted.

> There are apps on iOS that will share the screen content and camera content and a quick google seems to surface the same for Android. I have been on the look for something like that in the past. I know of software sharing the camera via NDI, but it was my understanding that doing the same with the screen was not possible inside Apple's sandbox. You can use AirPlay, of course, but then you're stuck with hoping that…

NDI HX Capture is the one I've tried: https://apps.apple.com/us/app/ndi-hx-capture/id1501247823 In terms of sandboxing, I think it may use APIs that are there for screen sharing on video calling apps. It shows a similar interface to the screen recording feature that was added in iOS 12.

Well I'll be damned. I wasn't aware screen sharing was available in video calling apps either. I suppose my last foray into this "rabbithole" must have been pre-iOS 12. Thanks!
Post reply on HN