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 553132 - webcam works in ekiga, but not cheese nor gstreamer-properties
webcam works in ekiga, but not cheese nor gstreamer-properties
Status: RESOLVED DUPLICATE of bug 566212
Product: GStreamer
Classification: Platform
Component: dont know
0.10.x
Other Linux
: Normal major
: git master
Assigned To: GStreamer Maintainers
GStreamer Maintainers
Depends on: 563504
Blocks:
 
 
Reported: 2008-09-21 14:37 UTC by Dan
Modified: 2009-03-04 15:04 UTC
See Also:
GNOME target: ---
GNOME version: 2.23/2.24


Attachments
Output of GST_DEBUG="*:3,v4l2*:4" cheese 2>debug.log (195.80 KB, text/plain)
2008-12-21 01:01 UTC, Mathias Hasselmann (IRC: tbf)
Details

Description Dan 2008-09-21 14:37:35 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.)
Comment 1 Achim Frase 2008-09-25 17:52:16 UTC
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.

Thread 3067066112 (LWP 10199)

  • #0 __kernel_vsyscall
  • #1 raise
    from /lib/tls/i686/cmov/libc.so.6
  • #2 abort
    from /lib/tls/i686/cmov/libc.so.6
  • #3 IA__g_logv
    at /build/buildd/glib2.0-2.18.1/glib/gmessages.c line 497
  • #4 IA__g_log
    at /build/buildd/glib2.0-2.18.1/glib/gmessages.c line 517
  • #5 gst_pad_get_caps_unlocked
    at gstpad.c line 1999
  • #6 gst_pad_get_caps
    at gstpad.c line 2061
  • #7 gst_v4l2src_negotiate
    at gstv4l2src.c line 469
  • #8 gst_base_src_start
    at gstbasesrc.c line 2339
  • #9 gst_base_src_activate_push
    at gstbasesrc.c line 2591
  • #10 gst_pad_activate_push
    at gstpad.c line 896
  • #11 gst_pad_activate_default
    at gstpad.c line 569
  • #12 gst_pad_set_active
    at gstpad.c line 658
  • #13 activate_pads
---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
Comment 2 Stefan Sauer (gstreamer, gtkdoc dev) 2008-10-01 19:41:35 UTC
I wonder if this still happens with the gstreamer cvs. Achim which versions are you using?
Comment 3 Achim Frase 2008-10-02 05:23:21 UTC
(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
Comment 4 Achim Frase 2008-10-11 08:57:25 UTC
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
Comment 5 Dan 2008-10-11 16:08:55 UTC
yeah, the downstream bug was marked as a dupe too.  Closing.
Comment 6 Jorge González 2008-11-01 09:48:12 UTC
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.
Comment 7 Stefan Sauer (gstreamer, gtkdoc dev) 2008-11-01 21:44:26 UTC
Aloriel, please tell us what webcam you are using. Is it v4l2 or v4l1 (just attach the log output of v4linfo test application).
Comment 8 Jorge González 2008-11-02 12:49:19 UTC
#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
Comment 9 Jorge González 2008-11-02 14:17:43 UTC
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?
Comment 10 Stefan Sauer (gstreamer, gtkdoc dev) 2008-11-02 16:25:47 UTC
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.
Comment 11 Jorge González 2008-11-02 20:57:36 UTC
The three of them work, but Cheese, empathy and gstreamer properties don't.
Comment 12 Stefan Sauer (gstreamer, gtkdoc dev) 2008-11-02 21:08:21 UTC
What do you have in gstreamer properties?
Comment 13 Jorge González 2008-11-02 21:22:27 UTC
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.
Comment 14 Mathias Hasselmann (IRC: tbf) 2008-12-21 01:01:12 UTC
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?
Comment 15 Filippo Argiolas 2009-03-04 15:04:25 UTC
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 ***