How to get camera supported resolutions using Qt5?
-
I've digged deeper into GStreamer plugin gstcamerabin2.c, here it's querying for pad capabilities @pad = gst_element_get_static_pad (element, padname);
caps = gst_pad_query_caps (pad, NULL);@ and then the query failing "GstPAd.html":http://gstreamer.freedesktop.org/data/doc/gstreamer/head/gstreamer/html/GstPad.html
...gst_pad_query_caps returns all possible caps a pad can operate with, using the pad's CAPS query function, If the query fails, this function will return filter , if not NULL, otherwise ANY.
And this ANY is what's returned into QT and then returned as empty QList. I thing we should use another gstreamer input element aka v4l2src which is stable. Camerabin2 is marked as unstable and under development.
-
Thanks for sharing your findings !
Do you have that with gstreamer0.1 ? Did you check gstreamer 1 ?
-
Thanks for sharing your findings !
Do you have that with gstreamer0.1 ? Did you check gstreamer 1 ?