EEVblog Electronics Community Forum

Electronics => Projects, Designs, and Technical Stuff => Topic started by: Supper_slash on March 12, 2018, 04:27:56 pm

Title: Choosing a PI, to stream 4 usb webcams.
Post by: Supper_slash on March 12, 2018, 04:27:56 pm
I stream on twitch and youtube. The webcams I use are {LE 20.0 M Pixel USB 6 LED Webcam Mic PC Laptop Camera}.
I connect webcam A&B into a USB hub, into my USB port 1.
And then webcams C&D into a USB hub, into USB port 2.
All on my PC.

Doing this I am able to stream ALL 4 cams at the same. And then choose what cameras I need to be using, or all 4.

I wish to find a "PI" that can take over outputting 4 streaming cameras onto a "closed server {192.168.1.222}" type setting so I can use them as needed.
I no pi's have 2-4 USB ports but has anyone tried to have it output 4 cams at the same time?  :-//

I may need to use 2 pi's to do this task, either way, I am looking for suggestions.
ALL I am looking for is 4 streamed USB webcams I can use as a server, then pull it into OBS software to stream, and switch what cams I want, etc.

Eventually, I will have some camera automation going on later, all being controlled by the PI.


Title: Re: Choosing a PI, to stream 4 usb webcams.
Post by: tyrel on March 12, 2018, 08:26:45 pm
If your usb cameras support jpg compression, you could use the MJPG-streamer software : https://sourceforge.net/projects/mjpg-streamer
It converts directly the jpg frames from the camera to a mjpeg stream over http, with no reencoding.

Since there is no video encoding, it doesn't need much cpu power at all, so you probably wo'nt be limited by the cpu.
Depending on the camera resolution and framerate, you could be limited  by the ethernet and usb bandwidth,  since they share the same controler on a raspberry.
Title: Re: Choosing a PI, to stream 4 usb webcams.
Post by: Supper_slash on March 12, 2018, 08:50:22 pm
TY I will look into that.