[Bug 674287] New: Gstreamer fails to use v4l2 webcam
https://bugzilla.novell.com/show_bug.cgi?id=674287 https://bugzilla.novell.com/show_bug.cgi?id=674287#c0 Summary: Gstreamer fails to use v4l2 webcam Classification: openSUSE Product: openSUSE 11.4 Version: Factory Platform: i586 OS/Version: SuSE Other Status: NEW Severity: Normal Priority: P5 - None Component: GNOME AssignedTo: bnc-team-gnome@forge.provo.novell.com ReportedBy: michael_denker@gmx.de QAContact: qa@suse.de Found By: --- Blocker: --- User-Agent: Mozilla/5.0 (X11; U; Linux x86_64; en-US; rv:1.9.2.13) Gecko/20101206 Ubuntu/10.04 (lucid) Firefox/3.6.13 I have a Logitech Notebook Deluxe webcam. Webcam worked flawless under openSUSE 11.3. After Upgrade (not fresh install) to 11.4RC1, the systems level driver of the camera still seems to work: *Start Ekiga *Select in Properties->Video: Input device: Camera PTLIB/V4L2 *Ekiga shows the webcam video when clicking on 'Display images from your camera device'. However, using gstreamer as driver does not work: *Start Ekiga *Select in Properties->Video: Input device: Camera Gstreamer/V4L2 *Ekiga does not show the webcam video when clicking on 'Display images from your camera device'. Pressing the 'Test' Button in gstreamer-properties, Video Tab, selecting the V4L2 camera, yields a dialogue box: 'Video for Linux 2 (v4l2): Could not negotiate format'. Console output in response to clicking the 'Test' button is: 'Could not negotiate format [gstbasesrc.c(2778): gst_base_src_start (): /GstPipeline:pipeline0/GstV4l2Src:v4l2src1: Check your filtered caps, if any]' Likewise, programs such as cheese or skype cannot communicate with the webcam (which both worked in 11.3). Testing with a different (newer) Logitech camera (also v4l2) did not show this effect and worked perfectly. Therefore, I suspect it seems to be an issue both hardware and gstreamer specific. Reproducible: Always Steps to Reproduce: 1.See steps outlined above 2. 3. -- Configure bugmail: https://bugzilla.novell.com/userprefs.cgi?tab=email ------- You are receiving this mail because: ------- You are on the CC list for the bug.
https://bugzilla.novell.com/show_bug.cgi?id=674287 https://bugzilla.novell.com/show_bug.cgi?id=674287#c1 Michael Denker <michael_denker@gmx.de> changed: What |Removed |Added ---------------------------------------------------------------------------- Status|NEW |CLOSED Resolution| |FIXED --- Comment #1 from Michael Denker <michael_denker@gmx.de> 2011-03-10 10:26:41 UTC --- Fixed upon installing all gstreamer packages from the Packman repository. Therefore, I guess I am closing this bug. -- Configure bugmail: https://bugzilla.novell.com/userprefs.cgi?tab=email ------- You are receiving this mail because: ------- You are on the CC list for the bug.
https://bugzilla.novell.com/show_bug.cgi?id=674287 https://bugzilla.novell.com/show_bug.cgi?id=674287#c2 Gabriel Burt <gburt@novell.com> changed: What |Removed |Added ---------------------------------------------------------------------------- Status|CLOSED |REOPENED CC| |gburt@novell.com Resolution|FIXED | --- Comment #2 from Gabriel Burt <gburt@novell.com> 2011-04-08 18:54:56 UTC --- This is a genuine bug in openSUSE; re-opening. I have two cameras that don't work (they appear in the dropdown in gstreamer-properties, but I get the "Video for Linux 2 (v4l2): Could not negotiate format" error for both of them. ID 041e:401c Creative Technology, Ltd Webcam NX [PD1110] ID 046d:08d7 Logitech, Inc. QuickCam Communicate STX -- Configure bugmail: https://bugzilla.novell.com/userprefs.cgi?tab=email ------- You are receiving this mail because: ------- You are on the CC list for the bug.
https://bugzilla.novell.com/show_bug.cgi?id=674287 https://bugzilla.novell.com/show_bug.cgi?id=674287#c3 --- Comment #3 from Gabriel Burt <gburt@novell.com> 2011-04-08 19:02:03 UTC --- `gst-launch v4l2src ! autovideosink` fails for me with that negotiation error. `gst-launch v4l2src ! jpegparse ! jpegdec ! ffmpegcolorspace ! autovideosink` sort of works though! I think the camera is only outputting JPEG video. -- Configure bugmail: https://bugzilla.novell.com/userprefs.cgi?tab=email ------- You are receiving this mail because: ------- You are on the CC list for the bug.
https://bugzilla.novell.com/show_bug.cgi?id=674287 https://bugzilla.novell.com/show_bug.cgi?id=674287#c4 --- Comment #4 from Gabriel Burt <gburt@novell.com> 2011-04-08 19:05:01 UTC --- Creative: probed caps: image/jpeg, width=(int)352, height=(int)288, interlaced=(boolean)false, framerate=(fraction)[ 0/1, 100/1 ]; image/jpeg, width=(int)176, height=(int)144, interlaced=(boolean)false, framerate=(fraction)[ 0/1, 100/1 ] Logitech: probed caps: image/jpeg, width=(int)640, height=(int)480, interlaced=(boolean)false, framerate=(fraction)[ 0/1, 100/1 ]; image/jpeg, width=(int)320, height=(int)240, interlaced=(boolean)false, framerate=(fraction)[ 0/1, 100/1 ] -- Configure bugmail: https://bugzilla.novell.com/userprefs.cgi?tab=email ------- You are receiving this mail because: ------- You are on the CC list for the bug.
https://bugzilla.novell.com/show_bug.cgi?id=674287 https://bugzilla.novell.com/show_bug.cgi?id=674287#c5 --- Comment #5 from Gabriel Burt <gburt@novell.com> 2011-04-08 19:13:03 UTC --- `gst-launch v4l2src ! decodebin2 ! autovideosink` works perfectly for both cameras. -- Configure bugmail: https://bugzilla.novell.com/userprefs.cgi?tab=email ------- You are receiving this mail because: ------- You are on the CC list for the bug.
https://bugzilla.novell.com/show_bug.cgi?id=674287 https://bugzilla.novell.com/show_bug.cgi?id=674287#c6 --- Comment #6 from Gabriel Burt <gburt@novell.com> 2011-04-08 19:43:24 UTC --- So I think this is a bug in apps' specific pipelines, and/or in GStreamer's camerabin element (which Cheese for example uses). I've filed an upstream bug against camerabin here: https://bugzilla.gnome.org/show_bug.cgi?id=647217 -- Configure bugmail: https://bugzilla.novell.com/userprefs.cgi?tab=email ------- You are receiving this mail because: ------- You are on the CC list for the bug.
https://bugzilla.novell.com/show_bug.cgi?id=674287 https://bugzilla.novell.com/show_bug.cgi?id=674287#c7 --- Comment #7 from Gabriel Burt <gburt@novell.com> 2011-04-08 20:38:08 UTC ---
"I can confirm that the solution is to build with libv4l as a dependency. zypper install libv4l-devel rebuild gst-plugins-good
ldd /usr/lib/gstreamer-0.10/libgstvideo4linux2.so | grep v4l libv4l2.so.0 => /usr/lib/libv4l2.so.0 (0xb756b000) libv4lconvert.so.0 => /usr/lib/libv4lconvert.so.0 (0xb71eb000)"
-- Configure bugmail: https://bugzilla.novell.com/userprefs.cgi?tab=email ------- You are receiving this mail because: ------- You are on the CC list for the bug.
https://bugzilla.novell.com/show_bug.cgi?id=674287 https://bugzilla.novell.com/show_bug.cgi?id=674287#c8 Gabriel Burt <gburt@novell.com> changed: What |Removed |Added ---------------------------------------------------------------------------- Status|REOPENED |NEEDINFO InfoProvider| |maintenance@opensuse.org --- Comment #8 from Gabriel Burt <gburt@novell.com> 2011-04-08 20:49:40 UTC --- Can we get a SWAMP ID to update 11.4's gst-plugins-good to build against libv4l? -- Configure bugmail: https://bugzilla.novell.com/userprefs.cgi?tab=email ------- You are receiving this mail because: ------- You are on the CC list for the bug.
https://bugzilla.novell.com/show_bug.cgi?id=674287 https://bugzilla.novell.com/show_bug.cgi?id=674287#c9 --- Comment #9 from Gabriel Burt <gburt@novell.com> 2011-04-08 21:36:54 UTC --- Submitted to multimedia:libs, sr 66558, waiting on SWAMP ID to submit to 11.4:Update:Test -- Configure bugmail: https://bugzilla.novell.com/userprefs.cgi?tab=email ------- You are receiving this mail because: ------- You are on the CC list for the bug.
https://bugzilla.novell.com/show_bug.cgi?id=674287 https://bugzilla.novell.com/show_bug.cgi?id=674287#c10 --- Comment #10 from Bernhard Wiedemann <bwiedemann@novell.com> 2011-04-09 01:55:10 CEST --- This bug (674287) was mentioned in https://build.opensuse.org/request/show/66565 -- Configure bugmail: https://bugzilla.novell.com/userprefs.cgi?tab=email ------- You are receiving this mail because: ------- You are on the CC list for the bug.
https://bugzilla.novell.com/show_bug.cgi?id=674287 https://bugzilla.novell.com/show_bug.cgi?id=674287#c11 --- Comment #11 from Marcus Meissner <meissner@novell.com> 2011-04-11 11:12:38 UTC --- yes please. +1 -- Configure bugmail: https://bugzilla.novell.com/userprefs.cgi?tab=email ------- You are receiving this mail because: ------- You are on the CC list for the bug.
https://bugzilla.novell.com/show_bug.cgi?id=674287 https://bugzilla.novell.com/show_bug.cgi?id=674287#c12 Bjørn Lie <bjorn.lie@gmail.com> changed: What |Removed |Added ---------------------------------------------------------------------------- CC| |bjorn.lie@gmail.com --- Comment #12 from Bjørn Lie <bjorn.lie@gmail.com> 2011-04-13 00:33:23 CEST --- This change makes all the "workaround" get loaded for everyone, even for cameras that do not need it -1 -- Configure bugmail: https://bugzilla.novell.com/userprefs.cgi?tab=email ------- You are receiving this mail because: ------- You are on the CC list for the bug.
https://bugzilla.novell.com/show_bug.cgi?id=674287 https://bugzilla.novell.com/show_bug.cgi?id=674287#c13 --- Comment #13 from Bjørn Lie <bjorn.lie@gmail.com> 2011-04-13 00:38:47 CEST --- Nor can the package be removed bjolie@embla:~> rpm -ql libv4lconvert0 /usr/lib64/libv4lconvert.so.0 bjolie@embla:~> sudo zypper rm libv4lconvert0 root's password: Laster pakkebrønndata... Leser installerte pakker... Kontrollerer pakkeavhengigheter... Følgende pakker vil bli FJERNET: banshee-1 banshee-1-backend-engine-gstreamer banshee-1-backend-io-gio banshee-1-backend-platform-gnome banshee-1-backend-platform-unix banshee-1-client-classic banshee-1-core banshee-1-dmp banshee-1-dmp-apple-devices banshee-1-dmp-mtp banshee-1-extensions-default banshee-1-lang brasero brasero-lang brasero-nautilus ekiga ekiga-lang f-spot f-spot-lang gnome-applets gnome-media gstreamer-0_10-plugins-good gstreamer-0_10-plugins-good-extra gstreamer-0_10-plugins-good-lang libbrasero-burn3-1 libopal3_6_8 libopencv2_2 libpt2_6_7 libv4l libv4l1-0 libv4l2-0 libv4lconvert0 libxine1 libxine1-codecs libxine1-gnome-vfs libxine1-pulse nautilus-totem totem totem-browser-plugin totem-browser-plugin-gmp totem-plugins vlc vlc-aout-pulse vlc-gnome vlc-noX vlc-qt -- Configure bugmail: https://bugzilla.novell.com/userprefs.cgi?tab=email ------- You are receiving this mail because: ------- You are on the CC list for the bug.
https://bugzilla.novell.com/show_bug.cgi?id=674287 https://bugzilla.novell.com/show_bug.cgi?id=674287#c15 Swamp Workflow Management <swamp@suse.com> changed: What |Removed |Added ---------------------------------------------------------------------------- Status Whiteboard| |maint:running:40198:low --- Comment #15 from Swamp Workflow Management <swamp@suse.com> 2011-04-13 18:19:15 UTC --- The SWAMPID for this issue is 40198. This issue was rated as low. Please submit fixed packages until 2011-05-11. Also create a patchinfo file using this link: https://swamp.suse.de/webswamp/wf/40198 -- Configure bugmail: https://bugzilla.novell.com/userprefs.cgi?tab=email ------- You are receiving this mail because: ------- You are on the CC list for the bug.
https://bugzilla.novell.com/show_bug.cgi?id=674287 https://bugzilla.novell.com/show_bug.cgi?id=674287#c16 --- Comment #16 from Gabriel Burt <gburt@novell.com> 2011-04-18 17:37:39 UTC --- I've held off on submitting this because of Bjørn's issue - I wouldn't want to introduce a crasher. Bjørn, do you have packages installed from Packman or similar, or are you using stock openSUSE packages? -- Configure bugmail: https://bugzilla.novell.com/userprefs.cgi?tab=email ------- You are receiving this mail because: ------- You are on the CC list for the bug.
https://bugzilla.novell.com/show_bug.cgi?id=674287 https://bugzilla.novell.com/show_bug.cgi?id=674287#c17 --- Comment #17 from Bjørn Lie <bjorn.lie@gmail.com> 2011-04-18 21:47:07 CEST --- Stock opensuse (factory) + binary codecs from fluendo. The crash is gone, I guess there are some issues with the cheese from gnome:next Ie it doesn't work yet, but atleast it's not taking down my x anymore. --- I do however still see the libv4lconvert: warning more framesizes then I can handle! libv4lconvert: warning more framesizes then I can handle! libv4lconvert: warning more framesizes then I can handle! libv4lconvert: warning more framesizes then I can handle! Ship it for now, and lets if there is any fallout. -- Configure bugmail: https://bugzilla.novell.com/userprefs.cgi?tab=email ------- You are receiving this mail because: ------- You are on the CC list for the bug.
https://bugzilla.novell.com/show_bug.cgi?id=674287 https://bugzilla.novell.com/show_bug.cgi?id=674287#c18 --- Comment #18 from Gabriel Burt <gburt@novell.com> 2011-04-22 18:18:40 UTC --- Thanks for the info Bjørn. I've submitted this to 11.4:Update:Test, request id 68189 -- Configure bugmail: https://bugzilla.novell.com/userprefs.cgi?tab=email ------- You are receiving this mail because: ------- You are on the CC list for the bug.
https://bugzilla.novell.com/show_bug.cgi?id=674287 https://bugzilla.novell.com/show_bug.cgi?id=674287#c19 --- Comment #19 from Bjørn Lie <bjorn.lie@gmail.com> 2011-04-22 20:25:00 CEST --- Just let me state for the record that I'm still against the change since users that don't need the compatability layer from v4l now has to build their own versions of gstreamer-plugins-good while the previous method would let those of us that need it to preload it. -- Configure bugmail: https://bugzilla.novell.com/userprefs.cgi?tab=email ------- You are receiving this mail because: ------- You are on the CC list for the bug.
https://bugzilla.novell.com/show_bug.cgi?id=674287 https://bugzilla.novell.com/show_bug.cgi?id=674287#c20 --- Comment #20 from Gabriel Burt <gburt@novell.com> 2011-04-28 01:18:14 UTC --- Bjørn, you're saying that gst-plugins-good build with this patch breaks your Cheese and other apps that use the webcam (gstreamer-properties' test button, etc)? I thought you were saying that it was crashing, now it's not, and that the brokenness was caused by something else in your setup/repos. -- Configure bugmail: https://bugzilla.novell.com/userprefs.cgi?tab=email ------- You are receiving this mail because: ------- You are on the CC list for the bug.
https://bugzilla.novell.com/show_bug.cgi?id=674287 https://bugzilla.novell.com/show_bug.cgi?id=674287#c21 --- Comment #21 from Bernhard Wiedemann <bwiedemann@novell.com> 2011-04-28 13:54:26 CEST --- This is an autogenerated message for OBS integration: This bug (674287) was mentioned in https://build.opensuse.org/request/show/68189 -- Configure bugmail: https://bugzilla.novell.com/userprefs.cgi?tab=email ------- You are receiving this mail because: ------- You are on the CC list for the bug.
https://bugzilla.novell.com/show_bug.cgi?id=674287 https://bugzilla.novell.com/show_bug.cgi?id=674287#c22 --- Comment #22 from Bjørn Lie <bjorn.lie@gmail.com> 2011-04-28 19:24:07 CEST --- Yes you are right it's not crashing anymore - crashing was probably due to xorg/kernel issues that have been sorted out in later versions - cheese just happend to trigger it. --- However - building gst-plug-good with v4l-dev dep mean that I don't get to use cheese and other webcam apps without the stream going through a wrapperlayer - nor do I get to use libv4l2 - this forces the camstream into beeing converted. This is not what the devs of v4l intended - read the /usr/share/doc/packages/libv4l/README snip wrappers -------- The functionality provided by libv4l1 for v4l1 apps and libv4l2 for v4l2 apps can also be used by existing apps without modifying them. For this purpose 2 wrapper libraries are provided which can be preloaded before starting the application using the LD_PRELOAD environment variable. These wrappers will then intercept calls to open/close/ioctl/etc. and if these calls directed towards a video device the wrapper will redirect the call to the libv4lX counterparts. The preloadable libv4l1 wrapper which adds v4l2 device compatibility to v4l1 applications is called v4l1compat.so. The preloadable libv4l2 wrapper which adds support for various pixelformats to v4l2 applications is called v4l2convert.so. Example usage (after install in default location): $ export LD_PRELOAD=/usr/local/lib/libv4l/v4l1compat.so $ camorama snip libv42l is the way forward - what we are doing here is "prolonging2" libv4l next excert Q: Why should I use libv4l2 in my app instead of direct device access combined with libv4lconvert? A: libv4l2 is mainly meant for quickly and easily adding support for more pixelformats to existing v4l2 applications. So if you feel better directly accessing the device in combination with libv4lconvert thats fine too. Notice that libv4l2 also does emulation of the read() call on devices which do not support it in the driver. In the background this uses mmap buffers (even on devices which do support the read call). This mmap gives libv4lconvert zero-copy access to the captured frame, and then it can write the converted data directly to the buffer the application provided to v4l2_read(). Thus another reason to use liv4l2 is to get the no memcpy advantage of the mmap capture method combined with the simplicity of making a simple read() call. -- Configure bugmail: https://bugzilla.novell.com/userprefs.cgi?tab=email ------- You are receiving this mail because: ------- You are on the CC list for the bug.
https://bugzilla.novell.com/show_bug.cgi?id=674287 https://bugzilla.novell.com/show_bug.cgi?id=674287#c23 --- Comment #23 from Bjørn Lie <bjorn.lie@gmail.com> 2011-04-28 19:25:30 CEST --- Oh - and I got cheese working fine now, it was the lack of sane defaults in gsettings that made the image not work before. -- Configure bugmail: https://bugzilla.novell.com/userprefs.cgi?tab=email ------- You are receiving this mail because: ------- You are on the CC list for the bug.
https://bugzilla.novell.com/show_bug.cgi?id=674287 https://bugzilla.novell.com/show_bug.cgi?id=674287#c24 Swamp Workflow Management <swamp@suse.com> changed: What |Removed |Added ---------------------------------------------------------------------------- Status Whiteboard|maint:running:40198:low |maint:running:40198:low | |maint:released:11.4:40686 --- Comment #24 from Swamp Workflow Management <swamp@suse.com> 2011-05-12 10:20:34 UTC --- Update released for: gstreamer-0_10-plugin-hal, gstreamer-0_10-plugin-hal-debuginfo, gstreamer-0_10-plugins-good, gstreamer-0_10-plugins-good-debuginfo, gstreamer-0_10-plugins-good-debugsource, gstreamer-0_10-plugins-good-doc, gstreamer-0_10-plugins-good-extra, gstreamer-0_10-plugins-good-extra-debuginfo, gstreamer-0_10-plugins-good-lang Products: openSUSE 11.4 (debug, i586, x86_64) -- Configure bugmail: https://bugzilla.novell.com/userprefs.cgi?tab=email ------- You are receiving this mail because: ------- You are on the CC list for the bug.
https://bugzilla.novell.com/show_bug.cgi?id=674287 https://bugzilla.novell.com/show_bug.cgi?id=674287#c25 Richard Brown <rdb@ccb.ac.uk> changed: What |Removed |Added ---------------------------------------------------------------------------- CC| |rdb@ccb.ac.uk --- Comment #25 from Richard Brown <rdb@ccb.ac.uk> 2011-05-13 08:57:51 UTC --- This patch is being offered to machines even when gstreamer-0_10-plugin-hal is not present, and is trying to roll plugins-good back to the version in the update repository even if you have installed plugins-good from another repository. Can this be resolved so the patch is only offered on machines that have this issue? it's a bit of a mess.. -- Configure bugmail: https://bugzilla.novell.com/userprefs.cgi?tab=email ------- You are receiving this mail because: ------- You are on the CC list for the bug.
https://bugzilla.novell.com/show_bug.cgi?id=674287 https://bugzilla.novell.com/show_bug.cgi?id=674287#c Dirk Mueller <dmueller@suse.com> changed: What |Removed |Added ---------------------------------------------------------------------------- Status Whiteboard|maint:running:40198:low |maint:released:11.4:40686 |maint:released:11.4:40686 | -- Configure bugmail: https://bugzilla.novell.com/userprefs.cgi?tab=email ------- You are receiving this mail because: ------- You are on the CC list for the bug.
https://bugzilla.novell.com/show_bug.cgi?id=674287 https://bugzilla.novell.com/show_bug.cgi?id=674287#c26 Dominique Leuenberger <dimstar@opensuse.org> changed: What |Removed |Added ---------------------------------------------------------------------------- Status|REOPENED |RESOLVED Resolution| |FIXED --- Comment #26 from Dominique Leuenberger <dimstar@opensuse.org> 2013-10-19 23:39:30 UTC --- RE-closing.. 11.4 is long EOL and the update channel recevied the actual fix back in time... -- Configure bugmail: https://bugzilla.novell.com/userprefs.cgi?tab=email ------- You are receiving this mail because: ------- You are on the CC list for the bug.
participants (1)
-
bugzilla_noreply@novell.com