Use GstDeviceMonitor to list and monitor v4l2 radio devices

Nicolas Dufresne nicolas.dufresne at collabora.com
Mon Jan 19 06:56:58 PST 2015


According to the spec, a V4L2 radio device can be recognized through the 
capability flags

"Devices supporting the radio interface set the |V4L2_CAP_RADIO| and 
|V4L2_CAP_TUNER| or |V4L2_CAP_MODULATOR| flag in the /|capabilities|/ 
field of struct v4l2_capability 
<http://linuxtv.org/downloads/v4l-dvb-apis/vidioc-querycap.html#v4l2-capability>"

So you'll get |(V4L2_CAP_RADIO| | |V4L2_CAP_TUNER) for tuners, and 
(V4L2_CAP_RADIO || |V4L2_CAP_MODULATOR) for modulator.| Modulators are 
not (yet?) supported in GStreamer.

This filtering is relatively trivial and should be added to 
gst-plugins-good/sys/v4l2/gstv4l2deviceprovider.c. Please attach patches 
to bug 743108.

Nicolas

Le 2015-01-18 21:24, Buda Servantes a écrit :
> Thanks for trying to help.
> OK in your code, audio source is monitored using caps to make fiter. My
> request is to monitor only radio device (/dev/radio0, /dev/radio1, etc) ,
> for example when a USB radio tuner is connected or disconnect to/from
> computer. Unfortunately not all tv cards have a radio device,
> I use v4l2radio plugin to open radio device.
>
>
>
> --
> View this message in context: http://gstreamer-devel.966125.n4.nabble.com/Use-GstDeviceMonitor-to-list-and-monitor-v4l2-radio-devices-tp4670312p4670330.html
> Sent from the GStreamer-devel mailing list archive at Nabble.com.
> _______________________________________________
> gstreamer-devel mailing list
> gstreamer-devel at lists.freedesktop.org
> http://lists.freedesktop.org/mailman/listinfo/gstreamer-devel



More information about the gstreamer-devel mailing list