Set up device on Gstreamer

classic Classic list List threaded Threaded
4 messages Options
Reply | Threaded
Open this post in threaded view
|

Set up device on Gstreamer

tgn1
Is there another way than "device=/dev/video1" (for example) to set up the device I want to use for the stream?

I would like to connect through the usb port, somehting like: device="(usb-0000:00:14.0-2)" as you can find it with the
v4l2-ctl --list-devices command. ("HD Pro Webcam C920 (usb-0000:00:14.0-2):")

Thank you!
Reply | Threaded
Open this post in threaded view
|

Re: Set up device on Gstreamer

Tim Müller
On Tue, 2016-05-31 at 07:52 -0700, tgn1 wrote:

Hi,

> Is there another way than "device=/dev/video1" (for example) to set
> up the
> device I want to use for the stream?
>
> I would like to connect through the usb port, somehting like:
> device="(usb-0000:00:14.0-2)" as you can find it with the 
> v4l2-ctl --list-devices command. ("HD Pro Webcam C920
> (usb-0000:00:14.0-2):")

You can use the GstDeviceMonitor API to discover devices, see e.g.

 gst-device-monitor-1.0 Video/Source

for a list.

Cheers
 -Tim

--
Tim Müller, Centricular Ltd - http://www.centricular.com
_______________________________________________
gstreamer-devel mailing list
[hidden email]
https://lists.freedesktop.org/mailman/listinfo/gstreamer-devel
Reply | Threaded
Open this post in threaded view
|

Re: Set up device on Gstreamer

Nicolas Dufresne-4
In reply to this post by tgn1
Le mardi 31 mai 2016 à 07:52 -0700, tgn1 a écrit :
> Is there another way than "device=/dev/video1" (for example) to set
> up the
> device I want to use for the stream?
>
> I would like to connect through the usb port, somehting like:
> device="(usb-0000:00:14.0-2)" as you can find it with the 
> v4l2-ctl --list-devices command. ("HD Pro Webcam C920
> (usb-0000:00:14.0-2):")

We provide GstDeviceMonitor, to help you enumerate the cameras (and
other devices). This will give you a list of GstDevice, and there is
two methods for getting configured element, gst_device_create_element()
and gst_device_reconfigure_elements(). Filter classes, for getting
camera, are Source, Sink and Video.

regards,
Nicolas
_______________________________________________
gstreamer-devel mailing list
[hidden email]
https://lists.freedesktop.org/mailman/listinfo/gstreamer-devel
Reply | Threaded
Open this post in threaded view
|

Re: Set up device on Gstreamer

tgn1
In reply to this post by Tim Müller
Got you, I'll be looking at this API.

But, I wish there was a way to just put a command in the pipeline and make it work. Is there any way?

Thank you!