Bug 186080 - Kopete doesn't support SPCA561 camera
Summary: Kopete doesn't support SPCA561 camera
Status: RESOLVED FIXED
Alias: None
Product: kopete
Classification: Unmaintained
Component: Audio/Video Plugin (show other bugs)
Version: unspecified
Platform: Compiled Sources Linux
: NOR normal
Target Milestone: ---
Assignee: Kopete Developers
URL:
Keywords:
Depends on:
Blocks:
 
Reported: 2009-03-03 23:16 UTC by Keith Rusler
Modified: 2010-03-06 15:31 UTC (History)
3 users (show)

See Also:
Latest Commit:
Version Fixed In:
Sentry Crash Report:


Attachments

Note You need to log in before you can comment on or make changes to this bug.
Description Keith Rusler 2009-03-03 23:16:57 UTC
Version:            (using Devel)
Compiler:          GCC-4.3.3  --march=native -ggdb -O2
OS:                Linux
Installed from:    Compiled sources

comawhite@Narf ~ $ v4l-info               
 
### v4l2 device info [/dev/video0] ###
general info                          
    VIDIOC_QUERYCAP                   
        driver                  : "spca561"
        card                    : "Camera" 
        bus_info                : "0000:00:0b.0"
        version                 : 2.3.0         
        capabilities            : 0x5000001 [VIDEO_CAPTURE,READWRITE,STREAMING]
 
standards
 
inputs
    VIDIOC_ENUMINPUT(0)
        index                   : 0
        name                    : "spca561"
        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             : "S561"       
        pixelformat             : 0x31363553 [S561]
    VIDIOC_ENUM_FMT(1,VIDEO_CAPTURE)               
        index                   : 1                
        type                    : VIDEO_CAPTURE    
        flags                   : 0                
        description             : "GBRG"           
        pixelformat             : 0x47524247 [GBRG]
    VIDIOC_G_FMT(VIDEO_CAPTURE)                    
        type                    : VIDEO_CAPTURE    
        fmt.pix.width           : 352              
        fmt.pix.height          : 288              
        fmt.pix.pixelformat     : 0x31363553 [S561]
        fmt.pix.field           : NONE             
        fmt.pix.bytesperline    : 352              
        fmt.pix.sizeimage       : 50688            
        fmt.pix.colorspace      : SRGB             
        fmt.pix.priv            : 0                
 
controls
 
### video4linux device info [/dev/video0] ###
general info                                 
    VIDIOCGCAP                               
        name                    : "Camera"   
        type                    : 0x1 [CAPTURE]
        channels                : 1            
        audios                  : 0            
        maxwidth                : 352          
        maxheight               : 288          
        minwidth                : 48
        minheight               : 32
 
channels
    VIDIOCGCHAN(0)
        channel                 : 0
        name                    : "spca561"
        tuners                  : 0
        flags                   : 0x0 []
        type                    : CAMERA
        norm                    : 0
 
tuner
ioctl VIDIOCGTUNER: Invalid argument
 
audio
ioctl VIDIOCGAUDIO: Invalid argument
 
picture
    VIDIOCGPICT
        brightness              : 0
        hue                     : 0
        colour                  : 0
        contrast                : 0
        whiteness               : 0
        depth                   : 8
        palette                 : unknown
 
buffer
ioctl VIDIOCGFBUF: Invalid argument
 
window
    VIDIOCGWIN
        x                       : 0
        y                       : 0
        width                   : 352
        height                  : 288
        chromakey               : 0
        flags                   : 0
Comment 1 Jaroslav Reznik 2009-03-10 09:42:44 UTC
Hi Keith,
could you try to build Kopete with my libv4l patch (and libv4l itself :)? It should help, I need some response because actually I don't have affected webcam.

Patch review: http://reviewboard.kde.org/r/266/
Libv4l: http://freshmeat.net/projects/libv4l/?branch_id=76006&release_id=286931
Hans'es Blog: http://hansdegoede.livejournal.com/3636.html

Thanks
Comment 2 Keith Rusler 2009-03-10 20:39:43 UTC
Yay I can see myself now ^_^. But the only problem I am having is none of the brightness, etc controls are working. The image is too dark. And if I enabled the brightness thing. It makes the picture um weird like a little better bug flickers sorta.
Comment 3 Jaroslav Reznik 2009-03-11 10:39:56 UTC
Ok, thanks for report.

Adding Hans de Goede to CC (if he doesn't mind). I think he could help as libv4l author and Linux webcam guru.
Comment 4 Hans de Goede 2009-03-11 11:03:39 UTC
Keith, try installing v4l2ucp and using that to change the controls, most
applications do not handle v4l2 controls properly (they assume a fixed set
of controls instead of enumerating them).

Also what kernel are you using?
Comment 5 Keith Rusler 2009-03-11 19:53:06 UTC
I'm using Gentoo's kerenl 2.6.28, How btw where can I get v4l2ucp?
Comment 6 Hans de Goede 2009-03-11 20:58:05 UTC
(In reply to comment #5)
> I'm using Gentoo's kerenl 2.6.28, How btw where can I get v4l2ucp?

http://v4l2ucp.sourceforge.net/

(first hit for v4l2ucp in google)
Comment 7 Keith Rusler 2009-03-11 21:16:59 UTC
it requires qt3 from what I gather. I managed to change the exposure (why it was like that). And got VLC to save the sets now it works perfectly. Waiting for my friend to get online to see if she can view it now. I'll post back if that works
Comment 8 Keith Rusler 2009-03-11 22:08:27 UTC
hmm apparently I can't send the invite :S
Comment 9 Frank Schaefer 2010-03-06 15:31:05 UTC
Libv4l is mandatory for Kopete since KDE SC 4.4.1. So according to comment #2, this bug is fixed.

Concerning picture quality adjustment:
Video controls have been reworked for KDE SC 4.5.
All (and only) controls that are supported by the device/driver are now adjustable and you can reset them to default values with a single click.

Concerning comment #8:
Please open a separate bug report for this issue (after searching for duplicates !).