aMSN Forums
May 20, 2013, 11:05:12 pm *
Welcome, Guest. Please login or register.
Did you miss your activation email?

Login with username, password and session length
News: New forum for aMSN !!
 
   Home   Help Search Login Register  
Pages: [1]
  Print  
Author Topic: Modified webcam driver - Still no go in aMSN!  (Read 3471 times)
andefeldt
Newbie

Offline Offline

Posts: 22


View Profile
« on: January 26, 2006, 05:36:37 pm »

Hi,

I'm using a Trust 380 SpaceCam. This cam uses the ovfx2 driver (a part of the ov511 source). The only choice of resolution has been 640x320, but I contacted the developer and he's working on a new version of the driver, which allows more resolutions. He mailed me a patch that would enable multiple resolutions with the ovfx2 driver. So I installed this driver and checked with v4l-info, which gave me this:

Code:

### video4linux device info [/dev/video0] ###
general info
    VIDIOCGCAP
        name                    : "OVFX2 USB Camera"
        type                    : 0x201 [CAPTURE,SUBCAPTURE]
        channels                : 1
        audios                  : 0
        maxwidth                : 640
        maxheight               : 480
        minwidth                : 64
        minheight               : 48

channels
    VIDIOCGCHAN(0)
        channel                 : 0
        name                    : "Camera"
        tuners                  : 0
        flags                   : 0x0 []
        type                    : CAMERA
        norm                    : 0

tuner
ioctl VIDIOCGTUNER: Invalid argument

audio
ioctl VIDIOCGAUDIO: Invalid argument

picture
    VIDIOCGPICT
        brightness              : 37632
        hue                     : 32512
        colour                  : 47872
        contrast                : 32768
        whiteness               : 26880
        depth                   : 24
        palette                 : RGB24

buffer
    VIDIOCGFBUF
        base                    : (nil)
        height                  : 0
        width                   : 0
        depth                   : 0
        bytesperline            : 0

window
    VIDIOCGWIN
        x                       : 0
        y                       : 0
        width                   : 640
        height                  : 480
        chromakey               : 0
        flags                   : 30


Ok, now I was able to use other resolutions than 640x320 which doesn't work in aMSN (some MSN restriction KaKaRoto wrote). I then wanted to test with aMSN. I've compiled it with the --disable-libng option. When I hit the "configure webcam" button I get this in my x-term:

Code:

Malformed attributes:  HTML PUBLIC "-//IETF//DTD HTML 2.0//EN" found in:
 HTML PUBLIC "-//IETF//DTD HTML 2.0//EN"
Current stack: :!DOCTYPE
Video Source (0) Name : Camera
channel 0: Camera 0 tuners, has
type: CAMERA norm: 0
Video Capture Device Name : OVFX2 USB Camera
64 < width < 640 : 48 < height < 480
Can capture
Can subcapture
picture: brightness 0 hue 0 colour 0
contrast 0 whiteness 26880 depth 24
palettes: RGB24
setting palette to : RGB24
window: x 0 y 0 w 640 h 480
window: flags 30 chromakey 0
window: x 0 y 0 w 320 h 240
window: flags 30 chromakey 0
window: x 0 y 0 w 320 h 240
window: flags 30 chromakey 0
mmap buffer successfully allocated
size: 1843216 with 2 frames


I get an image. However, this is a static image. No movement. Just the same image blinking every 0,5 second or so.

I then tried compiling amsn without the --disable-libng option. Here I get this:

Code:

Malformed attributes:  HTML PUBLIC "-//IETF//DTD HTML 2.0//EN" found in:
 HTML PUBLIC "-//IETF//DTD HTML 2.0//EN"
Current stack: :!DOCTYPE
dlsym[./utils/linux/capture/libng/plugins/drv0-v4l2.so]: ./utils/linux/capture/libng/plugins/drv0-v4l2.so: undefined symbol: _ng_plugin_init
dlsym[./utils/linux/capture/libng/plugins/drv1-v4l.so]: ./utils/linux/capture/libng/plugins/drv1-v4l.so: undefined symbol: _ng_plugin_init
WARNING: no plugins found [/home/Download/AMSN/amsn-0.95]


where /home/Download/AMSN/amsn-0.95 is the location of the source and from where it's compiled. I don't get an image, just a black window.

The camera works fine in GnomeMeeting and xawtv (I still have to use the -f option for xawtv though).

Anyone? Why doens't this work in aMSN? And what does all those errors and warnings in my x-term mean?

A.
Logged
vivia
Administrator
Super Power User
*****
Offline Offline

Posts: 2464


View Profile
« Reply #1 on: January 26, 2006, 06:10:21 pm »

The "Malformed attributes" part seems to be Sourceforge's fault, forget about it.

About those undefined symbols: do you have v4l and v4l2 modules in your kernel?
Logged
andefeldt
Newbie

Offline Offline

Posts: 22


View Profile
« Reply #2 on: January 26, 2006, 06:23:17 pm »

I'm not sure.

# lsmod | grep -i v4l
v4l2_common             5888  1 ovfx2
#

when I search for v4l*.ko files in my modules directories I find

/lib/modules/2.6.12-10-386/kernel/drivers/media/video/v4l1-compat.ko
/lib/modules/2.6.12-10-386/kernel/drivers/media/video/v4l2-common.ko

Am I missing something?

A.
Logged
vivia
Administrator
Super Power User
*****
Offline Offline

Posts: 2464


View Profile
« Reply #3 on: January 26, 2006, 06:57:14 pm »

OK, seems that v4l2 is loaded. Don't know Sad
Logged
Pages: [1]
  Print  
 
Jump to:  

Powered by MySQL Powered by PHP Powered by SMF 1.1.11 | SMF © 2006-2009, Simple Machines LLC Valid XHTML 1.0! Valid CSS!