Example of 3 live cameras streaming.

Wouter Vanhauwaert W.Vanhauwaert at TELEVIC.com
Mon Jun 17 09:13:05 UTC 2019


> -----Original Message-----
> From: gstreamer-devel [mailto:gstreamer-devel-
> bounces at lists.freedesktop.org] On Behalf Of socieboy
> Sent: vrijdag 14 juni 2019 22:38
> To: gstreamer-devel at lists.freedesktop.org
> Subject: Re: Example of 3 live cameras streaming.
> 
> CAUTION: This Email originated from outside Televic. Do not click links or
> open attachments unless you recognize the sender and know the content is
> safe.
> 
> 
> Hello, Do you have a idea how to make gstreamer detect the /dev/video*
> devices and start a recording for each one?
> 
> do i need to use some kind of for loop?
> 
> 

Do you want to monitor the /dev/video* on the fly? Or are they available at startup?
Via a shell-script you can do something like:
#!/bin/sh
if [ -e /dev/video0 ]; then
gst-launch1.0 ................ &
fi

if [ -e /dev/video1 ]; then
gst-launch1.0 ................ &
fi
 
.....
Or you create an application to detect the /dev/video* and start a gstreamer pipeline accordingly

grt


More information about the gstreamer-devel mailing list