camera_test display show green screen with Sunplus webcam [1bcf:2985]

Bug #1218830 reported by Po-Hsu Lin
6
This bug affects 1 person
Affects Status Importance Assigned to Milestone
Checkbox
Won't Fix
High
Unassigned

Bug Description

CID: 201304-13407 Dell Latitude E7240

camera_test display does not work with this webcam, Sunplus [1bcf:2985], on this system.
The window that meant to show video capture was totally green.

However, "camera_test still" works fine (it's using fswebcam though)

I've also verified with cheese, live video capture looks good. But it cannot be save as a new file.
It will be a 1-second black screen file.

Tags: scripts
Revision history for this message
Daniel Manrique (roadmr) wrote :

Ugh, this would mean that this camera is somehow incompatible with gstreamer?

Could you please

1- Run this command and paste the output here in the bug:

/usr/share/checkbox/scripts/camera_test
(this will output camera information, what I want to check is whether the resolution we will use in the next step is valid)

2- Run this command to test exactly what the camera_test test will do:

gst-launch-1.0 v4l2src device=/dev/video0 ! video/x-raw,width=640,height=480 ! videoconvert ! autovideosink
(this should pop up a video window and you should see video from the camera. You can kill it with ctrl-c at any time).

If command #2 fails, then it would mean that somehow the camera doesn't work with our default parameters. But I'm pretty sure that e.g. cheese uses gstreamer internally, so we may be able to tweak this into working.

THanks!

Changed in checkbox:
status: New → Incomplete
tags: added: scripts
Revision history for this message
Po-Hsu Lin (cypressyew) wrote :

Here is the result:

1. /usr/share/checkbox/scripts/camera_test detect
/dev/video0: OK
    name : Laptop_Integrated_Webcam_HD
    driver : uvcvideo
    version: 3.8.13
    flags : 0x84000001 [ CAPTURE STREAMING ]
    Format: YUYV (YUV 4:2:2 (YUYV)) Resolutions: 640x480,160x120,176x144,320x240,424x240,352x288,640x360,1280x720 Format: MJPG (MJPEG) Resolutions: 960x540,1280x720

2. gst-launch-1.0 v4l2src device=/dev/video0 ! video/x-raw,width=640,height=480 ! videoconvert ! autovideosink
Camera LED activated, but the video window was filled with green (same situation in Checkbox), screenshot attached.

I tried with 960x540 resolution, the following error message pop-out and the video window closed immediately:
Setting pipeline to PAUSED ...
Pipeline is live and does not need PREROLL ...
Setting pipeline to PLAYING ...
New clock: GstSystemClock
Execution ended after 478243123 ns.
Setting pipeline to PAUSED ...
Setting pipeline to READY ...
Setting pipeline to NULL ...
Freeing pipeline ...

With 1280x720, the green video window pop-out like in 2.

Changed in checkbox:
status: Incomplete → Confirmed
Revision history for this message
Po-Hsu Lin (cypressyew) wrote :

Also, on this system, the "green screen" video window happens again while running graphics/display test.

Therefore I think this issue is not just the compatibility issue between the camera and gstreamer.

Revision history for this message
Yung Shen (kaxing) wrote :

Sight same problems on another two 12.04.3 systems with Microdia [0c45:64af] and [064e:812c],
and also tried with cheese, receiving exactly the same issue that @cypressyew mentioned.

Revision history for this message
Daniel Manrique (roadmr) wrote :

OK, if you have some time, could you try the GST pipeline with some of the YUYV supported resolutions? let me know if any of them work.

160x120,176x144,320x240,424x240,352x288,640x360

Cheese is also gstreamer-based, so what I'd like to do for this bug is figure out how cheese determines a workable format and resolution, and copy that mechanism in our camera test.

We could always start depending on cheese, but I'd prefer not to add unnecessary dependencies.

I'll let you know once I have a way of trying cheese's algorithm on your troublesome systems.

Changed in checkbox:
importance: Undecided → High
milestone: none → 2013-oct-11
Revision history for this message
Yung Shen (kaxing) wrote :

for 160x120,176x144,320x240,352x288, they are showing the same green screen,

but for 424x240 and 64 0x360 shows other errors:

Setting pipeline to PAUSED ...
Pipeline is live and does not need PREROLL ...
Setting pipeline to PLAYING ...
New clock: GstSystemClock
ERROR: from element /GstPipeline:pipeline0/GstV4l2Src:v4l2src0: Internal data flow error.
Additional debug info:
gstbasesrc.c(2809): gst_base_src_loop (): /GstPipeline:pipeline0/GstV4l2Src:v4l2src0:
streaming task paused, reason not-negotiated (-4)
Execution ended after 357466 ns.
Setting pipeline to PAUSED ...
Setting pipeline to READY ...
Setting pipeline to NULL ...
Freeing pipeline ...

there is some other findings, tried those system with 12.04.2, where there is no such issue, webcam display correctly,
but when we trying to downgrade kernel from 3.8 to 3.5 for systems with 12.04.3, the green screen probelm remains.

Revision history for this message
Yung Shen (kaxing) wrote :

Additional note to 12.04.2,
when upgrading from 12.04.2 to 12.04.3 , there is no way to reproduced green screen issue,
both with and without hardware-certification ppa installed can display correctly.
it had became more confusing, because it does happen to 12.04.3 when install from live usb,
green screen issue seems to be only happen on fresh install and live usb session.

let me break down this into simpler diagram:
12.04.2 -> 12.04.3 + upgrade kernel to 3.8 : camera display works fine
12.04.3 -> shows camera display green screen
12.04.3 + downgrade kernel to 3.5 -> green still

Revision history for this message
Yung Shen (kaxing) wrote :

After discussed with Ara, I've figured this is caused by the X Stack from raring LTS Enablement Stack.
By downgrade to quanta l stack can solved this issue:
$sudo apt-get install xserver-xorg-lts-quantal

which contains many packages, also it took too much time to breakdown on each one,
I will report this issue to xorg-lts-raring instead.

Revision history for this message
Yung Shen (kaxing) wrote : Re: [Bug 1218830] Re: camera_test display show green screen with Sunplus webcam [1bcf:2985]

please refer to Bug 1220645
and kindly update anything if needed.
On Sep 4, 2013 7:21 PM, "Yung Shen" <email address hidden> wrote:

> After discussed with Ara, I've figured this is caused by the X Stack from
> raring LTS Enablement Stack.
> By downgrade to quanta l stack can solved this issue:
> $sudo apt-get install xserver-xorg-lts-quantal
>
> which contains many packages, also it took too much time to breakdown on
> each one,
> I will report this issue to xorg-lts-raring instead.
>
> --
> You received this bug notification because you are a member of Checkbox
> Bug Wranglers, which is subscribed to checkbox.
> https://bugs.launchpad.net/bugs/1218830
>
> Title:
> camera_test display show green screen with Sunplus webcam [1bcf:2985]
>
> Status in Checkbox System Testing:
> Confirmed
>
> Bug description:
> CID: 201304-13407 Dell Latitude E7240
>
> camera_test display does not work with this webcam, Sunplus [1bcf:2985],
> on this system.
> The window that meant to show video capture was totally green.
>
> However, "camera_test still" works fine (it's using fswebcam though)
>
> I've also verified with cheese, live video capture looks good. But it
> cannot be save as a new file.
> It will be a 1-second black screen file.
>
> To manage notifications about this bug go to:
> https://bugs.launchpad.net/checkbox/+bug/1218830/+subscriptions
>

Revision history for this message
Yung Shen (kaxing) wrote :

It's been confirmed as a issue of Intel Driver on Haswell platform.
I've also figured some ways to avoid green display issue,
but in my opinion, we should keep camera_test use the same output method as totem (default movie player).

Changed in checkbox:
status: Confirmed → Won't Fix
To post a comment you must log in.
This report contains Public information  
Everyone can see this information.

Other bug subscribers

Remote bug watches

Bug watches keep track of this bug in other bug trackers.