Twitch/livestream setups.


#684

For now I am just talking going straight to my TV.

My wall mount rotates so I think displaying 4k 65 inches full screen will be awesome.


#685

Okay then the brio is an option.


#686

I feel like the latest GoPro might be the cheapest way to get 4k 60fps PC free.


#687

PAPA is using 4k cameras, but we don’t stream at that resolution. Upcoming pre-filmed segments will most likely utilize 4k.


#688

I’ve been working on WiFi webcams using a Raspberry Pi for a bit. It’s been working pretty well lately and I’m just about done with the software for managing them remotely, adjusting exposure, brightness, etc remotely. It creates an RTSP feed of the video and audio (one video, one audio) for each camera plugged into it. I’ve mostly been testing with the C920 for budget setup and running off a battery charger for a full remote camera off a mic stand.

I need to work on my livestreaming setup but It’s not bad I think for a cheap portable rig. I run some custom basic broadcasting software off a NUC for a fixed scene right now. I’m trying to figure out how to get it to play nicely with OBS but haven’t had much success. I think XSplit might be better.

This was my latest test run with remote audio using a Snowball.
https://www.twitch.tv/videos/293093843

If anyone has XSplit, I’d love to see if they can get the RTSP streams to work, or anyone that knows how to use VLC sources in OBS.


#689

And shortly after I posted that I found a video on how to add RTSP sources to OBS. So I’m going to play around with that tonight. If it’s as easy as it seemed, that’d be awesome and hopefully help many folks with location streaming.


#690

Three C920s and a Snowball running off a Raspberry Pi 3 over WiFi to an i7 NUC using OBS. The audio is out of sync but I’m sure that’s an adjustment somewhere in the settings.

https://www.twitch.tv/videos/294062400?t=11m58s

Earlier in the stream I tweak some of the camera settings on the fly, which by the way can be done individually without any hassle of having multiples connected.

The only downside I see so far with this is that the cameras are active all of the time, even if their not being viewed as long as they’re added as sources. So that’ll chew through battery. Technically they turn off when nothing is consuming the stream. But hey, remote webcams.


#691

What’s really neat about the RPi is that you can get 60fps (though at 720p) off a $20 IMX219 camera module. 720p90 with a few hacks, as I understand it. There are also plenty of camera modules to be found on on Aliexpress with adjustable lenses, etc.


#692

We had to use lightning to get a decent image out of the v2 RPI camera module. Didn’t know there were other cameras available but, we couldn’t get acceptable results in low lighting with this one.


#693

It looks like most of the options on Amazon right now are either fixed focus, fisheye, or lack an IR filter (“night vision”), but the vast majority of IMX219 and OV5647 modules are set up in a manner that should “Just Work” with an RPi. Availability is super hit or miss, with a ton of very short-lived products hitting the market, but there are occasionally some really interesting options available dirt cheap.

Aliexpress (or Alibaba proper if you feel like ordering in bulk) is full of finds like this guy:
https://www.aliexpress.com/item/Waveshare-Raspberry-Pi-Camera-B-Module-Adjustable-focus-5-megapixel-OV5647-Sensor-Camera-Module-Kit-For/32610379341.html
That should do 720p60, albeit with cropping.

edit: looks like the same module is on Amazon for $10 more: https://www.amazon.com/Waveshare-RPi-Camera-B-Adjustable-Focus/dp/B010GF9SF6/ref=sr_1_3?s=electronics&ie=UTF8&qid=1533661238&sr=1-3&keywords=waveshare+camera+b


#694

60fps using a C922 and the Pi3 software encoder (its hardware encoder is limited to 30fps). No audio but I haven’t had much luck getting smooth 60fps yet. But it does support the C922 or other cameras as well, just probably not as many per Pi since it’s doing the encoding.

I originally played with the Pi Cameras with the intentions of using a Pi0W, the camera module and a C920 per machine but the Pi camera isn’t nearly as nice quality and the configuration options are much more limiting than the C920. It works, but just not as well as all C920s. And the Pi hardware encoder is limited at 30fps. I have a Le Potato I need to play with that is supposed to support 60fps but it’s not as easy to work with as the Pis yet.


#695

I don’t think the C922 has full v4l support yet, so you’re going to end up with the Pi doing a lot of extra work until the driver supports the C922’s h.264 stream. With the C920, you’re able to pull h.264 directly off the camera and avoid doing any encoding on the Pi. Of course the C920 still limits you to 30fps.

I wouldn’t set my expectations terribly high on the Le Potato’s VPU. The upstream vendor (Amlogic) has a kernel stuck in the stone ages that’s required if you want most of the SoC’s features (including video processing) to work correctly. It often involves downloading big ugly sdcard images off shady looking file share services. The BayLibre folks have done a lot of amazing work in porting support for the SoC over to a modern (and eventually mainline) kernel, but multimedia features tend to arrive dead last.

edit:
Looks like the c922 does already send over encoded h.264 at 1080p60, it’s just wrapped in an odd container: http://w2017.pl/logitech-vlc-ffmpeg-c922-streaming/

This might get you to a smooth c922 stream via the RPi.


#696

So I’m getting things setup to stream and got a couple of LED lights now but where should I position them? I also thought I’ve read that wall/ceiling colors make a difference, so what are the incremental improvement steps?


#697

From the side of the machine, pointed down st an angle onto the playfield. Shouldn’t see any glare.


#698

I merged in my recent changes for C920s and C922s with support for 60ish FPS. I need to work on the live controls web page UX but it should be functional and ready to start playing with now. https://gitlab.com/singleballplay/picam

Submit issues or other things to the project or you can send them to my the gmail address of my username.


#699

Very cool! Instead of going completely wireless, I’m tempted to try using a Pi 3B+ with the PoE HAT. That way the rig will just need a single CatX cable to supply both power and stable network for the stream.


#700

Although I’m not using this setup, a cat 6 run only to each stream location is the goal for me too.


#701

Another local streamer and I had talked about doing something like that early on. If that’s an option, running them into a switch underneath and a single cable running to another switch by the “booth” makes for much fewer cables and probably more reliable signal. Also, technically this isn’t limited to RPi’s and webcams, it’s generic Linux tooling so it’ll work with any Linux machine and device that is supported by Video4Linux. You could use something better than a Pi and run more inputs too. I’m going to be playing with the Cam Link soon to integrate better quality options like camcorders but still have the benefit of network protocol vs HDMI. Part of my original intentions were to have a really cheap solution for location streaming though.

I was also inspired by the Pinburgh broadcast and thought they had a pan and tilt on the backglass. So I grabbed a few cheap 9g servos and since I have I/O on the Pi I think I can add a cheap option for that too.


#702

You realize their pan and tilt on scores was being done by a human camera operator :slight_smile:

The “skill shot” can, was remote controlled.


#703

I did after I started watching the stream and saw the camera man. :slight_smile:
But that was well after I thought it would be a good addition for the non-DMD backglasses. I’m not holding out much hope though since the cheap servos might be too jittery in practice. But they’re cheap enough to play with.