Web lists-archives.com

Re: [Spca50x-devs] odd video corruption issue




Le Mercredi 13 Décembre 2006 05:44, Chris Weiss a écrit :
> got an odd issue using the gspcav1-01.00.10.tar.gz driver on ubuntu
> dapper, kernel 2.6.15-27-k7.  the image looks great until it captures
> some fast movement, no matter what app is used to capture.  I tried
> spcaview, spcacat, and camorama and all show the issue the same way.
>
> I used spcacat to capture these 2 images:
> http://flatline.free-source.com/files/spca/SpcaPict-start.jpg
> http://flatline.free-source.com/files/spca/SpcaPict-end.jpg
>
> the second image was after I was moving my arm in front of fthe camera
> while it captured a frame.  once it does this, it stays that way till
> I unplug the camera.  interesting thing is that I can wave my arm all
> I want as long as I stop before it captures, but using spcaview or
> camorama it only takes a couple frames of motion to make this happen.
> After this, the right side of the picture, where the color is good,
> stays static and the left side will still show what's going on,
> however only half a frame and way off color.
>
> to install gspca, I deleted the spca5xx driver that came with ubuntu
> and compiled the gspca one against the ubuntu kernel headers.
>
> device info:
> lsusb for the bus it is on:
> Bus 002 Device 021: ID 08ca:0103 Aiptek International, Inc. Pocket DV
> Digital Camera
> Bus 002 Device 002: ID 051d:0002 American Power Conversion Back-UPS
> Pro 500/1000/1500
> Bus 002 Device 001: ID 0000:0000
>
> dmesg on plug-in:
> [17272177.016000] usb 2-3: new full speed USB device using ohci_hcd
> and address 23
> [17272177.224000] /usr/src/src/gspcav1-01.00.10/gspca_core.c: USB
> SPCA5XX camera found.(SPCA500+unknown CCD)
> [17272177.224000] /usr/src/src/gspcav1-01.00.10/gspca_core.c:
> [spca5xx_probe:3930] Camera type JPEG
> [17272177.228000] /usr/src/src/gspcav1-01.00.10/gspca_core.c:
> [spca5xx_getcapability:1170] maxw 640 maxh 480 minw 176 minh 144
>
>
> spcacat output:
> $ spcacat -p 10000 -N 2 -f jpg -s 640x480 -o
>  size width: 640 height: 480
>  Spcaview version: 1.1.6 date: 28:08:2006 (C) mxhaard@xxxxxxxx
> video /dev/video0
> Camera found: Aiptek PocketDV
> VIDIOCGPICT brightnes=32768 hue=0 color=32768 contrast=32768
> whiteness=0depth=24 palette=4
> Bridge found: SPCA500
> is_spca SPCA505
> is_spca SPCA506
> is_spca SPCA501
> is_spca SPCA508
> is_spca SPCA504
> is_spca SPCA500
> wrong spca5xx device
> StreamId: 0  Camera
> try palette 21 depth 8
> Available  palette 21
> try palette 15 depth 12
> Available  palette 15
> try palette 4 depth 24
> Available  palette 4
> try palette 3 depth 16
> Available  palette 3
> try palette 5 depth 32
> Available  palette 5
> probe size in
> Available Resolutions width 640  heigth 480
> Available Resolutions width 384  heigth 288
> Available Resolutions width 352  heigth 288
> Available Resolutions width 320  heigth 240
> Available Resolutions width 192  heigth 144
> Available Resolutions width 176  heigth 144
>  Format asked 21 check 1
> VIDIOCSPICT brightnes=32768 hue=0 color=32768 contrast=32768
> whiteness=0depth=8 palette=21
> VIDIOCGPICT brightnes=32768 hue=0 color=32768 contrast=32768
> whiteness=0depth=8 palette=21
>  grabbing method default MMAP asked
> VIDIOCGMBUF size 2457616  frames 2  offets[0]=0 offsets[1]=1228808
> Waiting .... for Incoming Events. CTrl_c to stop !!!!
>  picture jpeg SpcaPict.jpg
>  picture jpeg SpcaPict.jpg
>
> dmesg on spcacat:
> [17272256.628000] /usr/src/src/gspcav1-01.00.10/gspca_core.c:
> [spca5xx_set_light_freq:1840] Sensor currently not support light
> frequency banding filters.
> [17272256.628000] /usr/src/src/gspcav1-01.00.10/gspca_core.c:
> [gspca_init_transfert:938] get iso nbalt 7
> [17272256.628000] /usr/src/src/gspcav1-01.00.10/gspca_core.c:
> [gspca_set_isoc_ep:847] enter get iso ep
> [17272256.628000] /usr/src/src/gspcav1-01.00.10/gspca_core.c:
> [gspca_set_isoc_ep:854] test ISO EndPoint  129
> [17272256.628000] /usr/src/src/gspcav1-01.00.10/gspca_core.c:
> [gspca_set_isoc_ep:862] ISO EndPoint found 0x81 AlternateSet 7
> [17272256.632000] /usr/src/src/gspcav1-01.00.10/gspca_core.c:
> [gspca_init_transfert:945] packet size 1023
> [17272256.636000]
> /usr/src/src/gspcav1-01.00.10/Sunplus-jpeg/spca500_init.h:
> [spca500_start:337] Spca500 Sensor Address  0xBA
> [17272256.636000]
> /usr/src/src/gspcav1-01.00.10/Sunplus-jpeg/spca500_init.h:
> [spca500_start:338] Spca500 mode 1 ,Xmult 0x28,  Ymult  0x1E
> [17272259.520000] /usr/src/src/gspcav1-01.00.10/gspca_core.c: init
> isoc: usb_submit_urb(0) ret -28
> [17272259.520000] /usr/src/src/gspcav1-01.00.10/gspca_core.c:
> [gspca_set_isoc_ep:847] enter get iso ep
> [17272259.520000] /usr/src/src/gspcav1-01.00.10/gspca_core.c:
> [gspca_set_isoc_ep:854] test ISO EndPoint  129
> [17272259.520000] /usr/src/src/gspcav1-01.00.10/gspca_core.c:
> [gspca_set_isoc_ep:862] ISO EndPoint found 0x81 AlternateSet 6
> [17272259.520000] ohci_hcd 0000:00:02.0: leak ed dfb80dc0 (#81) state 2
> [17272259.520000] /usr/src/src/gspcav1-01.00.10/gspca_core.c:
> [gspca_init_transfert:945] packet size 896
> [17272259.524000]
> /usr/src/src/gspcav1-01.00.10/Sunplus-jpeg/spca500_init.h:
> [spca500_start:337] Spca500 Sensor Address  0xBA
> [17272259.524000]
> /usr/src/src/gspcav1-01.00.10/Sunplus-jpeg/spca500_init.h:
> [spca500_start:338] Spca500 mode 1 ,Xmult 0x28,  Ymult  0x1E
> [17272262.488000]
> /usr/src/src/gspcav1-01.00.10/Sunplus-jpeg/spca500_init.h:
> [spca500_start:337] Spca500 Sensor Address  0xBA
> [17272262.488000]
> /usr/src/src/gspcav1-01.00.10/Sunplus-jpeg/spca500_init.h:
> [spca500_start:338] Spca500 mode 0 ,Xmult 0x28,  Ymult  0x1E
> [17272265.432000]
> /usr/src/src/gspcav1-01.00.10/Sunplus-jpeg/spca500_init.h:
> [spca500_start:337] Spca500 Sensor Address  0xBA
> [17272265.432000]
> /usr/src/src/gspcav1-01.00.10/Sunplus-jpeg/spca500_init.h:
> [spca500_start:338] Spca500 mode 0 ,Xmult 0x28,  Ymult  0x1E
> [17272268.312000]
> /usr/src/src/gspcav1-01.00.10/Sunplus-jpeg/spca500_init.h:
> [spca500_start:337] Spca500 Sensor Address  0xBA
> [17272268.312000]
> /usr/src/src/gspcav1-01.00.10/Sunplus-jpeg/spca500_init.h:
> [spca500_start:338] Spca500 mode 0 ,Xmult 0x28,  Ymult  0x1E
> [17272271.192000]
> /usr/src/src/gspcav1-01.00.10/Sunplus-jpeg/spca500_init.h:
> [spca500_start:337] Spca500 Sensor Address  0xBA
> [17272271.192000]
> /usr/src/src/gspcav1-01.00.10/Sunplus-jpeg/spca500_init.h:
> [spca500_start:338] Spca500 mode 1 ,Xmult 0x28,  Ymult  0x1E
> [17272274.052000]
> /usr/src/src/gspcav1-01.00.10/Sunplus-jpeg/spca500_init.h:
> [spca500_start:337] Spca500 Sensor Address  0xBA
> [17272274.052000]
> /usr/src/src/gspcav1-01.00.10/Sunplus-jpeg/spca500_init.h:
> [spca500_start:338] Spca500 mode 1 ,Xmult 0x28,  Ymult  0x1E
> [17272276.904000]
> /usr/src/src/gspcav1-01.00.10/Sunplus-jpeg/spca500_init.h:
> [spca500_start:337] Spca500 Sensor Address  0xBA
> [17272276.904000]
> /usr/src/src/gspcav1-01.00.10/Sunplus-jpeg/spca500_init.h:
> [spca500_start:338] Spca500 mode 1 ,Xmult 0x28,  Ymult  0x1E
> [17272279.760000]
> /usr/src/src/gspcav1-01.00.10/Sunplus-jpeg/spca500_init.h:
> [spca500_start:337] Spca500 Sensor Address  0xBA
> [17272279.760000]
> /usr/src/src/gspcav1-01.00.10/Sunplus-jpeg/spca500_init.h:
> [spca500_start:338] Spca500 mode 0 ,Xmult 0x28,  Ymult  0x1E
> [17272305.124000]
> /usr/src/src/gspcav1-01.00.10/Sunplus-jpeg/spca500_init.h:
> [spca500_stopN:112] Stop  SPCA500 finished reg8000 = 0x44
>
>
> spcaview output:
> $ spcaview -s 640x480
>  Spcaview version: 1.1.6 date: 28:08:2006 (C) mxhaard@xxxxxxxx
>  size width: 640 height: 480
> Initializing SDL.
> SDL initialized.
> bpp 3 format 15
> Using video device /dev/video0.
> Initializing v4l.
> **************** PROBING CAMERA *********************
> Camera found: Aiptek PocketDV
> Bridge found: SPCA500
> Bridge find SPCA500 number 5
> StreamId: JPEG Camera
> quality 5 autoexpo 1 Timeframe 0 lightfreq 50
> Bridge find SPCA500 number 5
> Available Resolutions width 640  heigth 480 native *
> Available Resolutions width 352  heigth 288 native
> Available Resolutions width 320  heigth 240 native
> Available Resolutions width 176  heigth 144 native
> *****************************************************
>  grabbing method default MMAP asked
> VIDIOCGMBUF size 2457616  frames 2  offets[0]=0 offsets[1]=1228808
> VIDIOCGPICT
> brightnes=32768 hue=0 color=32768 contrast=32768 whiteness=0
> depth=12 palette=15
> VIDIOCSPICT
> brightness=32768 hue=0 color=32768 contrast=32768 whiteness=0
> depth=24 palette=15
>
>
> Stop asked
>
> Used 20469ms for 254 images => 80ms/image 12fps.
> Quiting SDL.
> Decoded frames:254 Average decode time: 6.000000
> unmapping
> closing
> closed
> Destroy Picture thread ...
> Quiting....
>
> -------------------------------------------------------------------------
> Take Surveys. Earn Cash. Influence the Future of IT
> Join SourceForge.net's Techsay panel and you'll get the chance to share
> your opinions on IT & business topics through brief surveys - and earn cash
> http://www.techsay.com/default.php?page=join.php&p=sourceforge&CID=DEVDEV
> _______________________________________________
> Spca50x-devs mailing list
> Spca50x-devs@xxxxxxxxxxxxxxxxxxxxx
> https://lists.sourceforge.net/lists/listinfo/spca50x-devs
Hmm, a rolling shutter effect ?
-- 
Michel Xhaard
http://mxhaard.free.fr

-------------------------------------------------------------------------
Take Surveys. Earn Cash. Influence the Future of IT
Join SourceForge.net's Techsay panel and you'll get the chance to share your
opinions on IT & business topics through brief surveys - and earn cash
http://www.techsay.com/default.php?page=join.php&p=sourceforge&CID=DEVDEV
_______________________________________________
Spca50x-devs mailing list
Spca50x-devs@xxxxxxxxxxxxxxxxxxxxx
https://lists.sourceforge.net/lists/listinfo/spca50x-devs