You are not logged in.

1

Wednesday, March 29th 2006, 2:08pm

[kopete] webcam

My webcam works almost fine in Kopete. There is just one problem. The webcam has a resolution of 640x480, but I think Kopete i trying to access it at 320x240. So Kopete does not grab the whole image, but only the middle of the image, at a resolution of 320x240 (?). Above is the ouput when accessing the webcam configuration dialogue.

Source code

1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
75
76
77
78
79
80
81
82
83
84
85
kopete: kopete:config (avdevice): KopeteAVDeviceConfigFactory::instance() called.
kopete: [int Kopete::AV::VideoDevice::open()] called
kopete: [int Kopete::AV::VideoDevice::open()] File /dev/video0 was opened successfuly
kopete: [int Kopete::AV::VideoDevice::checkDevice()] checkDevice() called.
kopete: [int Kopete::AV::VideoDevice::checkDevice()] checkDevice(): /dev/video0 is a V4L2 device.
kopete: [Kopete::AV::VideoInput::VideoInput()] Executing Video Input's constructor!!!
kopete: [Kopete::AV::VideoInput::VideoInput()] Executing Video Input's constructor!!!
kopete: [int Kopete::AV::VideoDevice::checkDevice()] Input 0: Camera (tuner: false)
kopete: [int Kopete::AV::VideoDevice::checkDevice()] checkDevice(): Supported pixel formats:
kopete: [int Kopete::AV::VideoDevice::checkDevice()] checkDevice(): Planar YUV 4:2:0
kopete: [int Kopete::AV::VideoDevice::checkDevice()] checkDevice() exited successfuly.
kopete: [int Kopete::AV::VideoDevice::initDevice()] initDevice() started
kopete: [int Kopete::AV::VideoDevice::initDevice()]     Read/Write interface
kopete: [int Kopete::AV::VideoDevice::showDeviceCapabilities()] showDeviceCapabilities() called.
kopete: [int Kopete::AV::VideoDevice::showDeviceCapabilities()] Card model: OV518+/OV7620 (cid=0)
kopete: [int Kopete::AV::VideoDevice::showDeviceCapabilities()] Card name : OV518+/OV7620 (cid=0)
kopete: [int Kopete::AV::VideoDevice::showDeviceCapabilities()] Capabilities:
kopete: [int Kopete::AV::VideoDevice::showDeviceCapabilities()]     Video capture
kopete: [int Kopete::AV::VideoDevice::showDeviceCapabilities()]         Read
kopete: [int Kopete::AV::VideoDevice::showDeviceCapabilities()]     Max res: 32767 x 32767
kopete: [int Kopete::AV::VideoDevice::showDeviceCapabilities()]     Min res: 1 x 1
kopete: [int Kopete::AV::VideoDevice::showDeviceCapabilities()]     Inputs : 1
kopete: [int Kopete::AV::VideoDevice::showDeviceCapabilities()] Input 0: Camera (tuner: 0)
kopete: [int Kopete::AV::VideoDevice::showDeviceCapabilities()] showDeviceCapabilities() exited successfuly.
kopete: [int Kopete::AV::VideoDevice::initDevice()] initDevice() exited successfuly
kopete: [int Kopete::AV::VideoDevice::selectInput(int)] Selected input 0 (Camera)
kopete: [float Kopete::AV::VideoDevice::setBrightness(float)]  called.
kopete: [float Kopete::AV::VideoDevice::setContrast(float)]  called.
kopete: [float Kopete::AV::VideoDevice::setSaturation(float)]  called.
kopete: [float Kopete::AV::VideoDevice::setWhiteness(float)]  called.
kopete: [float Kopete::AV::VideoDevice::setHue(float)]  called.
kopete: [int Kopete::AV::VideoDevice::open()] exited successfuly
kopete: [void Kopete::AV::VideoDevicePool::loadConfig()] called
kopete: [void Kopete::AV::VideoDevicePool::loadConfig()] Current device: Model OV518+/OV7620 (cid=0) Device 0
kopete: [void Kopete::AV::VideoDevicePool::loadConfig()] Device name: OV518+/OV7620 (cid=0)
kopete: [void Kopete::AV::VideoDevicePool::loadConfig()] Device current input: 0
kopete: [bool Kopete::AV::VideoDevice::setWorkaroundBrokenDriver(bool)] VideoDevice::setWorkaroundBrokenDriver(false) called.
kopete: [int Kopete::AV::VideoDevice::selectInput(int)] Selected input 0 (Camera)
kopete: [float Kopete::AV::VideoDevice::setBrightness(float)]  called.
kopete: [float Kopete::AV::VideoDevice::setContrast(float)]  called.
kopete: [float Kopete::AV::VideoDevice::setSaturation(float)]  called.
kopete: [float Kopete::AV::VideoDevice::setWhiteness(float)]  called.
kopete: [float Kopete::AV::VideoDevice::setHue(float)]  called.
kopete: [float Kopete::AV::VideoDevice::setBrightness(float)]  called.
kopete: [float Kopete::AV::VideoDevice::setContrast(float)]  called.
kopete: [float Kopete::AV::VideoDevice::setSaturation(float)]  called.
kopete: [float Kopete::AV::VideoDevice::setHue(float)]  called.
kopete: [bool Kopete::AV::VideoDevice::setAutoBrightnessContrast(bool)] VideoDevice::setAutoBrightnessContrast(false) called.
kopete: [bool Kopete::AV::VideoDevice::setAutoColorCorrection(bool)] VideoDevice::setAutoColorCorrection(false) called.
kopete: [bool Kopete::AV::VideoDevice::setImageAsMirror(bool)] VideoDevice::setImageAsMirror(false) called.
kopete: [void Kopete::AV::VideoDevicePool::loadConfig()] Brightness:0.5
kopete: [void Kopete::AV::VideoDevicePool::loadConfig()] Contrast  :0.5
kopete: [void Kopete::AV::VideoDevicePool::loadConfig()] Saturation:0.5
kopete: [void Kopete::AV::VideoDevicePool::loadConfig()] Whiteness :0.5
kopete: [void Kopete::AV::VideoDevicePool::loadConfig()] Hue       :0.5
kopete: [void Kopete::AV::VideoDevicePool::loadConfig()] AutoBrightnessContrast:false
kopete: [void Kopete::AV::VideoDevicePool::loadConfig()] AutoColorCorrection   :false
kopete: [void Kopete::AV::VideoDevicePool::loadConfig()] ImageAsMirror         :false
kopete: [int Kopete::AV::VideoDevicePool::open()] Number of clients: 139182001
kopete: [int Kopete::AV::VideoDevice::setSize(int, int)] setSize(320, 240) called.
kopete: [int Kopete::AV::VideoDevice::setSize(int, int)] VIDIOC_S_FMT worked (22).Returned width: Planar YUV 4:2:0 320x240
kopete: ------------------------- ------- -- m_buffer_size: 153600 !!! -- ------- -----------------------------------------
kopete: [int Kopete::AV::VideoDevice::initRead()] called.
kopete: [int Kopete::AV::VideoDevice::initRead()] m_buffer_size: 153600
kopete: [int Kopete::AV::VideoDevice::initRead()] exited successfuly.
kopete: [int Kopete::AV::VideoDevice::setSize(int, int)] setSize(320, 240) exited successfuly.
kopete: [int Kopete::AV::VideoDevicePool::fillDeviceKComboBox(KComboBox*)] fillInputKComboBox: Called.
kopete: [int Kopete::AV::VideoDevicePool::fillDeviceKComboBox(KComboBox*)] DeviceKCombobox: Added device 0: OV518+/OV7620 (cid=0)
kopete: [int Kopete::AV::VideoDevicePool::fillInputKComboBox(KComboBox*)] fillInputKComboBox: Called.
kopete: [int Kopete::AV::VideoDevicePool::fillInputKComboBox(KComboBox*)] InputKCombobox: Added input 0: Camera (tuner: 0)
kopete: [int Kopete::AV::VideoDevicePool::fillStandardKComboBox(KComboBox*)] fillInputKComboBox: Called.
kopete: kopete:config (avdevice): slotBrightnessSliderChanged(int) called. 0.499992
kopete: [float Kopete::AV::VideoDevice::setBrightness(float)]  called.
kopete: kopete:config (avdevice): slotContrastSliderChanged(int) called. 0.499992
kopete: [float Kopete::AV::VideoDevice::setContrast(float)]  called.
kopete: kopete:config (avdevice): slotSaturationSliderChanged(int) called. 0.499992
kopete: [float Kopete::AV::VideoDevice::setSaturation(float)]  called.
kopete: kopete:config (avdevice): slotHueSliderChanged(int) called. 0.499992
kopete: [float Kopete::AV::VideoDevice::setHue(float)]  called.
kopete: kopete:config (avdevice): slotDeviceDisableMMapChanged(true) called.
kopete: [bool Kopete::AV::VideoDevicePool::setDisableMMap(bool)] VideoDevicePool::setDisableMMap(true) called.
kopete: [bool Kopete::AV::VideoDevice::setDisableMMap(bool)] VideoDevice::setDisableMMap(true) called.
kopete: [int Kopete::AV::VideoDevicePool::startCapturing()] startCapturing() called.
kopete: [int Kopete::AV::VideoDevice::startCapturing()] called.
kopete: [int Kopete::AV::VideoDevice::startCapturing()] exited successfuly.


Is there any possibility to tell kopete that a resolution of 640x480 should be used?

Thank you in advance.

2

Wednesday, March 29th 2006, 2:15pm

Here are two pictures, just in order to show what I mean.
The first picture shows the configuration dialogue, the second picture is a snapshot from a short clip I recorded with mplayer, using the full resolution of 640x480.

Just added a third picture, showing the image that Kopete is sending to a contact.
bauerfichtner has attached the following images:
  • webcam_01.png
  • webcam_02.png
  • webcam_03.png

This post has been edited 2 times, last edit by "bauerfichtner" (Mar 29th 2006, 2:19pm)


mattr

Trainee

Posts: 105

Location: US

Occupation: Software Engineer

  • Send private message

3

Wednesday, March 29th 2006, 10:03pm

this is a bug. can you file it to kde's bugzilla please?
--Matt

4

Wednesday, March 29th 2006, 10:35pm

Sure, I will file this bug. And hope it gets fixed.

But somehow, I do not believe this is a bug in Kopete. Don't you think this is a problem with the driver? I mean, when you look at the ouput:

Source code

1
2
3
4
5
6
7
kopete: [int Kopete::AV::VideoDevice::showDeviceCapabilities()] Card model: OV518+/OV7620 (cid=0)
kopete: [int Kopete::AV::VideoDevice::showDeviceCapabilities()] Card name : OV518+/OV7620 (cid=0)
kopete: [int Kopete::AV::VideoDevice::showDeviceCapabilities()] Capabilities:
kopete: [int Kopete::AV::VideoDevice::showDeviceCapabilities()]     Video capture
kopete: [int Kopete::AV::VideoDevice::showDeviceCapabilities()]         Read
kopete: [int Kopete::AV::VideoDevice::showDeviceCapabilities()]     Max res: 32767 x 32767
kopete: [int Kopete::AV::VideoDevice::showDeviceCapabilities()]     Min res: 1 x 1


I mean, the resolution values are completely insane.
But as I said, I'm going to file the bug, so one can start working.

This post has been edited 1 times, last edit by "bauerfichtner" (Mar 29th 2006, 10:38pm)