GNOME Bugzilla – Bug 553132
webcam works in ekiga, but not cheese nor gstreamer-properties
Last modified: 2009-03-04 15:04:25 UTC
There are a few people in the Ubuntu world who are having trouble with their webcams, just as described in the title. Here is the original bug report: https://bugs.launchpad.net/ubuntu/+source/gstreamer0.10/+bug/266879 Seems to me that this is an upstream bug. (On a side note: I thought I had this bug, but my webcam turned out to be working ok. But, thats why I'm the filer on these bugs.)
I have done a back trace and I hope this Information can help to solve this problem. $ G_DEBUG=fatal_warnings gdb gstreamer-properties GNU gdb 6.8-debian Copyright (C) 2008 Free Software Foundation, Inc. License GPLv3+: GNU GPL version 3 or later <http://gnu.org/licenses/gpl.html> This is free software: you are free to change and redistribute it. There is NO WARRANTY, to the extent permitted by law. Type "show copying" and "show warranty" for details. This GDB was configured as "i486-linux-gnu"... (no debugging symbols found) (gdb) run Starting program: /usr/bin/gstreamer-properties (no debugging symbols found) (no debugging symbols found) (no debugging symbols found) (no debugging symbols found) (no debugging symbols found) (no debugging symbols found) (no debugging symbols found) (no debugging symbols found) [Thread debugging using libthread_db enabled] [New Thread 0xb6cfb700 (LWP 10199)] gstreamer-properties-Message: Skipping unavailable plugin 'artsdsink' [New Thread 0xb653fb90 (LWP 10203)] [Thread 0xb653fb90 (LWP 10203) exited] [New Thread 0xb653fb90 (LWP 10204)] [Thread 0xb653fb90 (LWP 10204) exited] [New Thread 0xb653fb90 (LWP 10205)] [Thread 0xb653fb90 (LWP 10205) exited] gstreamer-properties-Message: Skipping unavailable plugin 'glimagesink' gstreamer-properties-Message: Skipping unavailable plugin 'v4lmjpegsrc' gstreamer-properties-Message: Skipping unavailable plugin 'qcamsrc' gstreamer-properties-Message: Skipping unavailable plugin 'esdmon' [New Thread 0xb653fb90 (LWP 10206)] [Thread 0xb653fb90 (LWP 10206) exited] [New Thread 0xb653fb90 (LWP 10207)] [Thread 0xb653fb90 (LWP 10207) exited] [New Thread 0xb653fb90 (LWP 10208)] [Thread 0xb653fb90 (LWP 10208) exited] [New Thread 0xb653fb90 (LWP 10213)] GStreamer-WARNING **: pad v4l2src3:src returned caps which are not a real subset of its template caps aborting... Program received signal SIGABRT, Aborted.
+ Trace 207329
Thread 3067066112 (LWP 10199)
---Type <return> to continue, or q <return> to quit---q active=0xbfb2a68Quit (gdb) quit The program is running. Exit anyway? (y or n) y Let me know if you need more information. Regards Achim
I wonder if this still happens with the gstreamer cvs. Achim which versions are you using?
(In reply to comment #2) > I wonder if this still happens with the gstreamer cvs. Achim which versions are > you using? > This are the packages that I have installed. {{{ ii gstreamer0.10-alsa 0.10.20-1 GStreamer plugin for ALSA ii gstreamer0.10-esd 0.10.10-1 GStreamer plugin for ESD ii gstreamer0.10-ffmpeg 0.10.4-3 FFmpeg plugin for GStreamer ii gstreamer0.10-fluendo-mpegdemux 0.10.15-1 GStreamer plugin for demuxing of MPEG2 strea ii gstreamer0.10-gnomevfs 0.10.20-1 GStreamer plugin for GnomeVFS ii gstreamer0.10-plugins-bad 0.10.8-1 GStreamer plugins from the "bad" set ii gstreamer0.10-plugins-bad-dbg 0.10.8-1 GStreamer plugins from the "bad" set ii gstreamer0.10-plugins-base 0.10.20-1 GStreamer plugins from the "base" set ii gstreamer0.10-plugins-base-apps 0.10.20-1 GStreamer helper programs from the "base" se ii gstreamer0.10-plugins-good 0.10.10-1 GStreamer plugins from the "good" set ii gstreamer0.10-plugins-good-dbg 0.10.10-1 GStreamer plugins from the "good" set ii gstreamer0.10-plugins-ugly 0.10.9-1 GStreamer plugins from the "ugly" set ii gstreamer0.10-plugins-ugly-dbg 0.10.9-1 GStreamer plugins from the "ugly" set ii gstreamer0.10-pulseaudio 0.10.10-1 GStreamer plugin for PulseAudio ii gstreamer0.10-sdl 0.10.8-1 GStreamer plugin for SDL output ii gstreamer0.10-tools 0.10.20-3 Tools for use with GStreamer ii gstreamer0.10-x 0.10.20-1 GStreamer plugins for X11 and Pango ii libgstreamer-plugins-base0.10-0 0.10.20-1 GStreamer libraries from the "base" set ii libgstreamer0.10-0 0.10.20-3 Core GStreamer libraries and elements ii libgstreamer0.10-0-dbg 0.10.20-3 Core GStreamer libraries and elements ii totem-gstreamer 2.24.0-0ubuntu1 A simple media player for the GNOME desktop }}} Regards Achim
The problem has been solved with this downstream update. gst-plugins-good0.10 (0.10.10-1ubuntu1) intrepid; urgency=low * Add 10_fedora-use_libv4l.patch: add libv4l support (from Fedora, LP: #260918), add libv4l-dev to Build-Deps. -- Kees Cook < kees@ubuntu.com> Fri, 10 Oct 2008 12:35:37 -0700 I think we can close this bug report. Regards Achim
yeah, the downstream bug was marked as a dupe too. Closing.
Hum, I wouldn't close it, I'm having this issue, I'm on intrepid and reinstalled all gstreamer packages, and still the same. Gstreamer is not able to use the webcam although ekiga and skype can.
Aloriel, please tell us what webcam you are using. Is it v4l2 or v4l1 (just attach the log output of v4linfo test application).
#7 it's v4l2: ### v4l2 device info [/dev/video0] ### general info VIDIOC_QUERYCAP driver : "uvcvideo" card : "Laptop Integrated Webcam" bus_info : "0000:00:1d.7" version : 0.1.0 capabilities : 0x4000001 [VIDEO_CAPTURE,STREAMING] standards inputs VIDIOC_ENUMINPUT(0) index : 0 name : "Camera 1" type : CAMERA audioset : 0 tuner : 0 std : 0x0 [] status : 0x0 [] video capture VIDIOC_ENUM_FMT(0,VIDEO_CAPTURE) index : 0 type : VIDEO_CAPTURE flags : 1 description : "MJPEG" pixelformat : 0x47504a4d [MJPG] VIDIOC_ENUM_FMT(1,VIDEO_CAPTURE) index : 1 type : VIDEO_CAPTURE flags : 0 description : "YUV 4:2:2 (YUYV)" pixelformat : 0x56595559 [YUYV] VIDIOC_G_FMT(VIDEO_CAPTURE) type : VIDEO_CAPTURE fmt.pix.width : 352 fmt.pix.height : 288 fmt.pix.pixelformat : 0x47504a4d [MJPG] fmt.pix.field : NONE fmt.pix.bytesperline : 0 fmt.pix.sizeimage : 202752 fmt.pix.colorspace : SRGB fmt.pix.priv : 0 controls VIDIOC_QUERYCTRL(BASE+0) id : 9963776 type : INTEGER name : "Brightness" minimum : 0 maximum : 200 step : 1 default_value : 90 flags : 0 VIDIOC_QUERYCTRL(BASE+1) id : 9963777 type : INTEGER name : "Contrast" minimum : 5 maximum : 50 step : 1 default_value : 30 flags : 0 VIDIOC_QUERYCTRL(BASE+2) id : 9963778 type : INTEGER name : "Saturation" minimum : 0 maximum : 100 step : 1 default_value : 64 flags : 0 VIDIOC_QUERYCTRL(BASE+3) id : 9963779 type : INTEGER name : "Hue" minimum : 0 maximum : 255 step : 1 default_value : 0 flags : 0 ### video4linux device info [/dev/video0] ### general info VIDIOCGCAP name : "Laptop Integrated Webcam" type : 0x1 [CAPTURE] channels : 1 audios : 0 maxwidth : 1600 maxheight : 1200 minwidth : 48 minheight : 32 channels ioctl VIDIOCGCHAN: Invalid argument tuner ioctl VIDIOCGTUNER: Invalid argument audio ioctl VIDIOCGAUDIO: Invalid argument picture VIDIOCGPICT brightness : 29491 hue : 0 colour : 41942 contrast : 36408 whiteness : 21845 depth : 0 palette : unknown buffer ioctl VIDIOCGFBUF: Invalid argument window VIDIOCGWIN x : 0 y : 0 width : 352 height : 288 chromakey : 0 flags : 0
This may help as well: aloriel@fobos:~$ v4l-conf v4l-conf: using X11 display :0.0 dga: version 2.0 WARNING: No DGA direct video mode for this display. mode: 1680x1050, depth=24, bpp=32, bpl=6720, base=unknown /dev/video0 [v4l2]: no overlay support Any other information needed?
Aloriel, that looks good. What about: gst-launch v4l2src ! xvimagesink gst-launch v4l2src ! decodebin2 ! xvimagesink gst-launch v4l2src ! decodebin2 ! autovideosink (Ctrl-c to stop) In case none of them work, attaching a log file like: GST_DEBUG="*:3,v4l2*:4" gst-launch 2>debug.log v4l2src ... would be good.
The three of them work, but Cheese, empathy and gstreamer properties don't.
What do you have in gstreamer properties?
For the video input I have Video for Linux 2 (v4l2). When I press the button to try the input it shows the dialog that is trying, but it hangs after a while (lets say a minute), without showing any video input from the webcam. I get an error message if I try to use v4l.
Created attachment 125073 [details] Output of GST_DEBUG="*:3,v4l2*:4" cheese 2>debug.log I also see this problem with the webcam of my Thinkpad X200. Seems like something odd happens arround line 76, 123 and 643. Unless I missinterpret the output, some caps matching code doesn't work properly. Are the missing framerate caps for 640x480 resolutions the problem?
As far as I can tell this is a common bug with uvcvideo based webcams and libv4l < 0.5.7. We've had plenty of duplicates in cheese bugzilla, it took sometime for Ubuntu to include the fix due to their package update policies but should be fixed with latest packages from intrepid-updates repository. Marking as duplicate, revert if I am wrong. *** This bug has been marked as a duplicate of 566212 ***