News for hackers. Stuff that matters.
Re:How to Run a Live Coding Stream on Twitch Using OBS by mrkwse on Tuesday July 14, 2020 @02:18PM (#23835624)
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 webcam stand in (although latency will never be as good, so possibly better as a sort of secondary vanity camera)
  (3. definitely works on Windows)
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.

As someone who used to work in TV too, the importance of good lighting cannot be stressed enough. It doesn't have to be expensive, but a reasonable, ideally diffuse source of light will make the biggest improvement to your stream vs an expensive camera (and some webcams may need manual adjustment via OBS to best utilise the available light).

[1]: https://obsproject.com/forum/resources/obs-ndi-newtek-ndi%E2...

Re:How to Run a Live Coding Stream on Twitch Using OBS by jordanlewis on Tuesday July 14, 2020 @02:20PM (#23835648)
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.
Re:How to Run a Live Coding Stream on Twitch Using OBS by philsnow on Tuesday July 14, 2020 @08:27PM (#23839813)
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 by Cu3PO42 on Tuesday July 14, 2020 @02:29PM (#23835787)
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 by jordanlewis on Tuesday July 14, 2020 @02:30PM (#23835809)
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 by Cu3PO42 on Tuesday July 14, 2020 @02:34PM (#23835868)
> Using another layer of window capture doesn't work very well as I'm sure you know - it gets super laggy!

Oh, don't I know. I last looked into this when I had to produce a video explaining the FLP theorem. In the end I opted to just TikZ everything and avoid the iPad route because I couldn't get anything working acceptably well.

(Though I never tried just adding it as an video source directy, I assumed there had to be secret sauce in QuickTime.)

Thank you so much for the info!

Re:How to Run a Live Coding Stream on Twitch Using OBS by mrkwse on Tuesday July 14, 2020 @02:32PM (#23835834)
To be fair I think the green screen whiteboard trick was a much more valuable tip, I've done a similar thing in the past but it's probably less intuitive/widely documented than how to make your device's screen appear.
Re:How to Run a Live Coding Stream on Twitch Using OBS by chrisweekly on Tuesday July 14, 2020 @02:45PM (#23835988)
... and eliminates the problematic wireless latency overhead.
Re:How to Run a Live Coding Stream on Twitch Using OBS by Cu3PO42 on Tuesday July 14, 2020 @02:26PM (#23835731)
> 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 by mrkwse on Tuesday July 14, 2020 @02:28PM (#23835773)
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 by Cu3PO42 on Tuesday July 14, 2020 @02:31PM (#23835819)
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!
Re:How to Run a Live Coding Stream on Twitch Using OBS by mrkwse on Tuesday July 14, 2020 @02:36PM (#23835895)
Just spotted it's $10 now, so not a painless thing to try if you're on the fence. FWIW it's worked well for me, decent quality and the latency is not an issue at all for screen sharing, not immediate obviously, but for whiteboarding etc. definitely not an impediment (YMMV dependent on your local network).

Also while it isn't a 'universal' app with an iPad specific interface, the interface is just the button to start broadcasting the screen so other than looking a little awkward on launch, again it's not an issue in terms of the output, you'll still get the full screen.

Re:How to Run a Live Coding Stream on Twitch Using OBS by Cu3PO42 on Tuesday July 14, 2020 @02:42PM (#23835955)
I tried one of those AirPlay servers before and it worked... okay for me. I've got my PC on LAN and an access point across the room (albeit without direct line of sight) and I still had network hiccups.

Since it turns out connecting the iPad to a Mac via USB will make it show up as a video source in OBS (not just QuickTime), I'm inclined to run OBS on my MacBook (also on LAN) with the NDI plugin to stream the screen to my PC. If that falls through, I guess I'll bite the bullet and get the app.

Re:How to Run a Live Coding Stream on Twitch Using OBS by unnouinceput on Tuesday July 14, 2020 @10:39PM (#23840606)
You can run TeamViewer and feed that as source into OBS.