cheese displays green screen

Bug #292313 reported by Valerio De Carolis on 2008-11-01
16
This bug affects 3 people
Affects Status Importance Assigned to Milestone
cheese (Ubuntu)
Undecided
Unassigned
Nominated for Intrepid by Valerio De Carolis

Bug Description

Binary package hint: cheese

When I launch Cheese the program starts up with a full green screen as webcam output.

Runngin cheese -v produces this output:
(cheese:9926): GStreamer-WARNING **: pad source:src returned caps which are not a real subset of its template caps

The webcam (Quickcam Pro 4000, using pwc driver) is correctly plugged and it works with VLC.

I also tried to run gstreamer via command line:
gst-launch v4lsrc ! ffmpegcolorspace ! ximagesink

The webcam output will display even if under dmesg I have some errors like this:
[ 6842.399872] pwc: Failed to set video mode QSIF@60 fps; return code = -22
[ 6842.559873] pwc: Failed to set video mode QSIF@61 fps; return code = -22
[ 6842.715869] pwc: Failed to set video mode QSIF@62 fps; return code = -22
(and so on...)

However running the previous command with v4l2src I can reproduce the problem:
gst-launch v4l2src ! ffmpegcolorspace ! ximagesink (this command will display a small window with the green screen)

Searching the Cheese bug tracker I found:
http://bugzilla.gnome.org/show_bug.cgi?id=556083

I tried to switch the default gstreamer config to v4lsrc but Cheese seems to using directly the v4l2src version! :(

This happens every time.

Some general infos about the environment, Ubuntu Intrepid Ibex 8.10 x86_64,
[uname -a]
Linux orion 2.6.27-7-generic #1 SMP Thu Oct 30 04:12:22 UTC 2008 x86_64 GNU/Linux

[/proc/version_signature]
Ubuntu 2.6.27-7.15-generic

[lspci]
Bus 008 Device 001: ID 1d6b:0002 Linux Foundation 2.0 root hub
Bus 004 Device 003: ID 0aec:3260 Neodio Technologies Corp. 7-in-1 Card Reader
Bus 004 Device 002: ID 0bda:8187 Realtek Semiconductor Corp. RTL8187 Wireless Adapter
Bus 004 Device 001: ID 1d6b:0002 Linux Foundation 2.0 root hub
Bus 003 Device 002: ID 046d:c510 Logitech, Inc. Cordless Mouse
Bus 003 Device 001: ID 1d6b:0001 Linux Foundation 1.1 root hub
Bus 007 Device 002: ID 056a:0065 Wacom Co., Ltd
Bus 007 Device 001: ID 1d6b:0001 Linux Foundation 1.1 root hub
Bus 006 Device 003: ID 046d:08b2 Logitech, Inc. QuickCam Pro 4000
Bus 006 Device 002: ID 051d:0002 American Power Conversion Uninterruptible Power Supply
Bus 006 Device 001: ID 1d6b:0001 Linux Foundation 1.1 root hub
Bus 005 Device 005: ID 046d:c50b Logitech, Inc. Cordless Desktop Optical
Bus 005 Device 004: ID 04a9:1073 Canon, Inc. I550 Printer
Bus 005 Device 001: ID 1d6b:0001 Linux Foundation 1.1 root hub
Bus 002 Device 001: ID 1d6b:0001 Linux Foundation 1.1 root hub
Bus 001 Device 001: ID 1d6b:0001 Linux Foundation 1.1 root hub

(plus the lspci -vvnn as attachment)

Valerio De Carolis (vdecarolis) wrote :
Andres Mujica (andres.mujica) wrote :

Hi!

This is most probably a dup from bug #290506

Could you confirm to us if changing the resolution within cheese properties menu to 176x144would give you video?

thanks!

Changed in cheese:
status: New → Incomplete
Valerio De Carolis (vdecarolis) wrote :

Changing the resolution within cheese to 160x120 will produce the same green screen and the same GStreamer error in the console.

I can only choose among 640x480, 320x240 and 160x120, none of them works!

In the bug #290506 the driver is the uvc while the Quickcam Pro 4000 is running under the default pwc.
Skype doesn't work displaying the same green screen but VLC and camorama works well!

I also tried to unload/load the pwc module but nothing changes!

*** Running this:
gst-launch "v4l2src name=video_source device=/dev/video0 ! capsfilter name=capsfilter caps=video/x-raw-rgb,width=640,height=480,framerate=30/1;video/x-raw-yuv,width=640,height=480,framerate=30/1 ! identity"

*** Will produces this output:
Impostazione della pipeline a PAUSED ...

(gst-launch-0.10:9462): GStreamer-WARNING **: pad v4l2src0:src returned caps which are not a real subset of its template caps
La pipeline è viva e non necessita il PREROLL ...
AVVERTIMENTO: dall'elemento /GstPipeline:pipeline0/GstV4l2Src:v4l2src0: Impossibile ottenere i parametri sul device «/dev/video0»
Informazioni di debug aggiuntive:
v4l2src_calls.c(1232): gst_v4l2src_set_capture (): /GstPipeline:pipeline0/GstV4l2Src:v4l2src0:
system error: Argomento non valido
Impostazione della pipeline a PLAYING ...
New clock: GstSystemClock
ERRORE: dall'elemento /GstPipeline:pipeline0/GstV4l2Src:v4l2src0: Errore interno nel flusso di dati.
Informazioni di debug aggiuntive:
gstbasesrc.c(2234): gst_base_src_loop (): /GstPipeline:pipeline0/GstV4l2Src:v4l2src0:
streaming task paused, reason not-linked (-1)
Execution ended after 753864769 ns.
Impostazione della pipeline a PAUSED ...
Impostazione della pipeline a READY ...
Impostazione della pipeline a NULL ...
Esecuzione FREE su pipeline ...

*** While running this:
gst-launch "v4lsrc name=video_source device=/dev/video0 ! capsfilter name=capsfilter caps=video/x-raw-rgb,width=640,height=480,framerate=30/1;video/x-raw-yuv,width=640,height=480,framerate=30/1 ! identity"

*** Will produce this output:
Impostazione della pipeline a PAUSED ...
La pipeline è viva e non necessita il PREROLL ...
Impostazione della pipeline a PLAYING ...
New clock: GstSystemClock
ERRORE: dall'elemento /GstPipeline:pipeline0/GstV4lSrc:v4lsrc0: Errore interno nel flusso di dati.
Informazioni di debug aggiuntive:
gstbasesrc.c(2234): gst_base_src_loop (): /GstPipeline:pipeline0/GstV4lSrc:v4lsrc0:
streaming task paused, reason not-linked (-1)
Execution ended after 839238 ns.
Impostazione della pipeline a PAUSED ...
Impostazione della pipeline a READY ...
Impostazione della pipeline a NULL ...
Esecuzione FREE su pipeline ...

Probably the matter is "how" cheese invoke gstreamer (cheese didn't follow gstreamer-proprieties, so it won't call gs with v4lsrc) and "why" gstreamer didn't "work" with v4l2src (i tried to use the cam with v4l2 under VLC and all works fine!).

Thanks!

Andres Mujica (andres.mujica) wrote :

Ok, to me it seems that the problem lies in gstreamer/cheese, because you can get video with VLC but no with cheese, this would be the same bug as bug #290506 but with a different backend driver, maybe this is why changing resolutions didn't worked for you.

I'll mark this as a dupe from that bug and wait for further notices there.

Thanks a lot for your input

Andres Mujica (andres.mujica) wrote :

hmm, sorry for the noise, i'm reassigning this one as dupe from bug #282473 as that one shows the exact same symptoms and is already linked to upstream.

thanks

Filippo Argiolas (fargiolas) wrote :

Andres please notice that bug is not really linked to upstream.. it is linked to a cheese bugzilla bug that I didn't close yet as NOTGNOME just because I want it to still stay there as a reference for other reporters.

The bug is a pwc driver regression or a more general v4l/kernel regression so the right upstream for that bug is bugzilla.kernel.org.
Please could you guys report it to the kernel bugzilla?

To post a comment you must log in.
This report contains Public information  Edit
Everyone can see this information.

Other bug subscribers