GNOME Bugzilla – Bug 638691
allow autovideosrc fall back to videotestsrc if /dev/video0 is busy
Last modified: 2016-02-21 12:36:27 UTC
This has pissed me off repeatedly because it means that you can't call yourself in empathy without digging around in gstreamer-properties every time, so I'm fixing it. It requires changes to v4l2src so that it probes the video device a bit harder on null->ready. I haven't made the same changes to v4lsrc from gst-plugins-base because: <ocrete> alsuren: or just ignroe v4lsrc ? anyway, v4l is going away. <alsuren> ocrete: as in sudo rm /usr/lib/gstreamer-0.10/libgstvideo4linux.so ? <ocrete> yea.. or you can fix it, I think its more broken than v4l2src ;) progress will be tracked on: http://git.collabora.co.uk/?p=user/alsuren/gst-plugins-good.git;a=shortlog;h=refs/heads/autovideosrc Once this is fixed thing that will be left to do now (for my perfect setup) will be to create a v4l2src2 that picks /dev/video1 by default (the high-def logitech webcam on my docking station), and install it with a very slightly higher priority than v4l2src.
Maybe you want to look at fsusource that Youness wrote, it has some of these features. See http://git.collabora.co.uk/?p=user/kakaroto/farsight2.git;a=blob;f=gst/farsight-utils/fsu-video-source.c;h=cdeb79fcb5f6fa032f6a57f0380d965fbb51fbe2;hb=77ba37b837002a767808c043b88edd40e56f165f
Does fsusource provide something that you can set as the gconf video source, which will provide you with a working video source no matter what your hardware is doing? Regardless, I think that my patch to v4l2src is worth a look, as it makes its behaviour more similar to the documented behaviour of the READY state. Should I create a separate bug for that? I have updated my branch to include a fallback-name property as suggested on irc. I'm not sure if that's the best name for it, so if anyone has any suggestions, I will rewrite my patch.
Can you provide a new patch against latest git master for v4l2src in a new bug report, and also update the autovideosrc patches to apply against latest git master and attach them here?
Dunno what to do with this, maybe autovideosrc should be re-implemented on top of the new GstDevice stuff, but that can also be done application side then. Closing this bug report as no further information has been provided. Please feel free to reopen this bug report if you can provide the information that was asked for in a previous comment. Thanks!