After an evaluation, GNOME has moved from Bugzilla to GitLab. Learn more about GitLab.
No new issues can be reported in GNOME Bugzilla anymore.
To report an issue in a GNOME project, go to GNOME GitLab.
Do not go to GNOME Gitlab for: Bluefish, Doxygen, GnuCash, GStreamer, java-gnome, LDTP, NetworkManager, Tomboy.
Bug 793405 - autosrc: Port to GstDeviceMonitor
autosrc: Port to GstDeviceMonitor
Status: RESOLVED OBSOLETE
Product: GStreamer
Classification: Platform
Component: gst-plugins-good
git master
Other Linux
: Normal enhancement
: git master
Assigned To: GStreamer Maintainers
GStreamer Maintainers
Depends on:
Blocks:
 
 
Reported: 2018-02-12 21:50 UTC by Nicolas Dufresne (ndufresne)
Modified: 2018-11-03 15:26 UTC
See Also:
GNOME target: ---
GNOME version: ---



Description Nicolas Dufresne (ndufresne) 2018-02-12 21:50:51 UTC
The autoaudiosrc and audiovideosrc works a bit by chance as they assume no setup is requirement on the elements. As an example, if you have pipewire installed and activate the deamon, autovideosrc no longer works because then it picks pipewiresrc but with the default path, which is invalid.

https://github.com/PipeWire/pipewire/issues/55

Why I'm proposing to use GstDeviceMonitor internally is because that API provide a "configured" element to use, which would solve this kind of issue.. With that in place we'll be able to do fency fallback when a camera is unplugged. We could also expose the monitor, letting the application select a camera, handling the dynamic switch within the element itself.
Comment 1 Tim-Philipp Müller 2018-02-12 22:56:11 UTC
I can't decide whether this sounds intruiging or scary :)
Comment 2 Nicolas Dufresne (ndufresne) 2018-02-13 00:48:46 UTC
Hehe, but to be realist, I expect a feature equivalent port that fixes the pipewire style issue (which exists for v4l2src too, as video0 is not always a webcam).
Comment 3 Sebastian Dröge (slomo) 2018-02-13 07:37:00 UTC
Before merging this, we need to make sure all relevant sources actually implement the device monitor stuff at all :) Which should be done anyway
Comment 4 Sebastian Dröge (slomo) 2018-02-13 07:37:13 UTC
Oh but this sounds otherwise like a good idea to me!
Comment 5 GStreamer system administrator 2018-11-03 15:26:11 UTC
-- GitLab Migration Automatic Message --

This bug has been migrated to freedesktop.org's GitLab instance and has been closed from further activity.

You can subscribe and participate further through the new bug through this link to our GitLab instance: https://gitlab.freedesktop.org/gstreamer/gst-plugins-good/issues/439.