Categories: Music

Raspberry Pi as chew.tv Streaming Camera

After having moved recently I started to think about having a proper camera setup for my attic studio. I’ve been using a action cam that doubles as webcam, but image quality cannot be altered at all, leading to some issues with white balance mainly. I still have a spare raspberry pi somewhere, that I will be trying to convert into a small streaming box. Normally I use OBS and BUTT on my serato laptop to connect to both chew.tv and our clouwdnine icecast. In OBS I overlay chat and a logo to end up with a nice streaming setup.

I’m hoping that with the Raspberry Pi I can put the box with camera nice and close to the setup and use a cable to connect to the USB sound card next to the decks.

I hope that the raspberry pi camera module provides good enough image quality. I will be using gstreamer and possibly nginx to send audio and video to chew.tv and audio only to our icecast server.

Video encoding through omxh264enc

Some resources I found for streaming:

Using omxh264enc for gstreamer:

And using nginx for forwarding audio/video to multiple streams:

The basic setup will be capturing audio and video, muxing it into a h264/AAC .mp4 stream which I send to nginx, where it is split into an audio/video stream that is forwarded to chew and an audio stream that is forwarded to clouwdnine. I’ll try to create a control page in nginx that will allow me to control and monitor both streams from my phone or another computer.

A challenge I’m unsure about is the chat overlay. Gstreamer allows text overlay, but I don’t know to what extent I’ll be able to overlay a stream…

If this idea works out, the next cool thing would definitely be using several Pi’s to get a multi-camera setup.

View Comments

  • Hey! I'm thinking about doing a similar thing, just with a video playout. Let me know if you could move forward with it, my Pi Zero is on the route.

Share

Recent Posts

Academia and Industry Compared

In the beginning of this year I switched careers. I quit my job as assistant…

December 1, 2021

Aligning Values in AI Applications

Artificial Intelligence (AI) is everywhere. When you use the internet or computers in general you…

September 27, 2021

Why I (think I) Didn’t Succeed in Academia

I’m not too embarrassed to admit that I just finished a 16-session therapy with a…

June 28, 2021

Human-Centric AI Manifesto: Or How To Try and Do No Harm

Introduction Recently I’ve said farewell to my academic career and switched back to industry. While…

June 16, 2021

Surf and the Art of Career Navigation

Disclaimer: I am as good as a surfer as I am experienced a professional. I…

November 30, 2020

Research into Mobility in the Netherlands

Q-Park is probably the biggest owner of parking garages in the Netherlands. Based in Maastricht,…

April 6, 2020