Public bug reported:
I am using this system.
[EMAIL PROTECTED]:~$ uname -a
Linux ivze-desktop 2.6.20-16-generic #2 SMP Sun Sep 23 18:31:23 UTC 2007
x86_64 GNU/Linux
I have Ubuntu 7.04 installed.
If camera, A4Tech PK-35N, is plugged in a usb port.
The following debug messages appear.
dmesg
[ 1962.317891] usb 6-1: new full speed USB device using ohci_hcd and address 7
[ 1962.417438] usb 6-1: configuration #1 chosen from 1 choice
[ 1962.418290] usb 6-1: ZC0301[P] Image Processor and Control Chip detected
(vid/pid 0x0AC8/0x303B)
[ 1962.465485] usb 6-1: PB-0330 image sensor detected
[ 1962.718861] usb 6-1: Initialization succeeded
[ 1962.718900] usb 6-1: V4L2 device registered as /dev/video0
ls -l /dev/video0
crw-rw---- 1 root video 81, 0 2007-10-11 16:51 /dev/video0
It seems, all ready.
However, when i try to launch "camorama" application, an error message appear
*********************
Could not connect to video device (/dev/video0).
Please check connection.
*********************
To eliminate possible troubles with permissions, i tried
sudo camorama
.
Nothing changed, the same error message appeared.
I tried some other software.
#
[EMAIL PROTECTED]:~$ camgrab
/dev/video0: no v4l device
#
[EMAIL PROTECTED]:~$ camstream
X Error: BadDevice, invalid or uninitialized input device 167
Major opcode: 144
Minor opcode: 3
Resource id: 0x0
Failed to open device
X Error: BadDevice, invalid or uninitialized input device 167
Major opcode: 144
Minor opcode: 3
Resource id: 0x0
Failed to open device
CVideoDevice::CVideoDevice() could not query capabilities; is this
really a video device?
CVideoDevice::ResetImagesRGB()
CVideoDevice::ResetImagesYUV()
-----------------------------
Apart from that, an empty gui appears.
*******
I tried some other tools, they all can not operate properly.
Trying to find out, what is wrong, i did
cat /dev/video0>>/tmp/bjaka
and stopped it after a few secconds by typing <Ctrl>+C.
I studied "bjaka" with the aid of KHexEdit.
The file has been found to consist of blocks, each of them starting from
ff d8 ff fe 00 0e.....
A block consis of 4096 octets.
I copied one block, saved it as a file. The Nautilus detected it to be a JPEG
image.
I tried to use different software to look in.
#If opened via Firefox, it shows an image with a stripe of real picture on the
top, and gray until the bottom.
The menu->properties of image tell that the image has dimensions (640x480) what
respects to the maximal resolution, PK-35N webcamera is able to work at.
#I tried to use GIMP. The GIMP displays an error message, telling
"Corrupt JPEG data: premature end of data segment", - and displays the same
stripe on the top.
I tried to copy two blocks, going one after another, into a file; then opened
it with GIMP.
The error message contained
"Invalid JPEG file structure: two SOI markers"
.
This means that there are no missing data after the end of a 4096 block, on the
contrary, it is a begining of the next picture.
To aid debugging, i have published some files, mentioned before.
http://krinol.narod.ru/bjaka.tar.gz - cat /dev/video0 output
http://krinol.narod.ru/cut.jpeg.tar.gz - one 4096 block from bjaka, put
into a file
##################################################################
This is the end of the first part of this bug report.
I am quite shure that the data, provided here, is not enough to fix the bug,
so i am ready to provide more debug information, if necessary.
ZelinskiyIS
** Affects: ubuntu
Importance: Undecided
Status: New
--
v4l usb webcamera driver gives corrupted images
https://bugs.launchpad.net/bugs/151588
You received this bug notification because you are a member of Ubuntu
Bugs, which is the bug contact for Ubuntu.
--
ubuntu-bugs mailing list
[email protected]
https://lists.ubuntu.com/mailman/listinfo/ubuntu-bugs