Hi All, I hope someone can help me resolve a niggly problem I'm having. I have 'really' cheap USB cam that I'm hoping to use as an intranet webcam. The USB drivers appear to load quite happily. (System is Redhat 7.2 with Kernel 2.4.9-21) I'm capturing the images using the following command line: /usr/bin/v4lctl -v 2 -c /dev/video snap jpeg full \ /var/www/html/cam/CAM.jpg >>/$HOME/v4lctl.out 2>> $HOME/v4lctl.out The script then sleeps for a short while and then loops. The script will capture roughly 4-10 roughly frames and then freeze (But not fatally - I can terminate it with ctrl-c). xawtv will also capture video for a few seconds and then freeze too. There are no messages in the syslog. Below is the output of lsmod and below that is the contents of v4lctl.out, (I've only provided the first succesful capture output and the last [failure]). Any information on how to extract better debugging & logging from v4l would help too. Thanks in advance Don Harvie Module Size Used by trident 27712 0 soundcore 4452 2 [trident] ide-cd 27072 0 (autoclean) cdrom 28576 0 (autoclean) [ide-cd] ac97_codec 9504 0 (autoclean) [trident] autofs 11556 0 (autoclean) eepro100 17680 1 cpia_usb 4740 0 (autoclean) (unused) parport_pc 14916 0 (autoclean) cpia_pp 3972 0 (autoclean) (unused) parport 25600 0 (autoclean) [parport_pc cpia_pp] cpia 23936 0 [cpia_usb cpia_pp] videodev 5312 1 [cpia] usb-ohci 19872 0 (unused) usbcore 51808 1 [cpia_usb usb-ohci] ext3 62592 3 jbd 41092 3 [ext3] stat /dev/.devfsd: No such file or directory Xvideo: 0 adaptors available. Xvideo: no usable video port found Xvideo: hw scaler disabled init: trying: v4l2... init: failed: v4l2 init: trying: v4l... v4l: open: /dev/video (CPiA Camera) capabilities: capture size : 48x48 => 352x288 channels: 1 ioctl: VIDIOCGCHAN(0,Camera,flags=0x0,type=2,norm=0): ok Camera: 0 camera audios : 0 ioctl: VIDIOCSCHAN(0,Camera,flags=0x0,type=2,norm=0): ok PALioctl: VIDIOCSCHAN(0,Camera,flags=0x0,type=2,norm=1): ok NTSCioctl: VIDIOCSCHAN(0,Camera,flags=0x0,type=2,norm=2): ok SECAMioctl: VIDIOCSCHAN(0,Camera,flags=0x0,type=2,norm=3): ok AUTO ioctl: VIDIOCGFBUF(base=(nil),size=0x0,depth=0,bpl=0): Invalid argument fbuffer : base=0x(nil) size=0x0 depth=0 bpl=0 ioctl: VIDIOCGPICT(params=32768/32768/32768/32768/0,depth=24,fmt=4): ok picture : brightness=32768 hue=32768 colour=32768 contrast=32768 picture : whiteness=0 depth=24 palette=rgb24 ioctl: VIDIOCGMBUF(size=811008,frames=2): ok mbuf: size=811008 frames=2 v4l: using mapped buffers for capture init: ok: v4l ioctl: VIDIOCGCHAN(0,Camera,flags=0x0,type=2,norm=0): ok ioctl: VIDIOCGPICT(params=32768/32768/32768/32768/0,depth=24,fmt=4): ok ioctl: VIDIOCGPICT(params=32768/32768/32768/32768/0,depth=24,fmt=4): ok ioctl: VIDIOCGPICT(params=32768/32768/32768/32768/0,depth=24,fmt=4): ok ioctl: VIDIOCGPICT(params=32768/32768/32768/32768/0,depth=24,fmt=4): ok cmd: "snap" "jpeg" "full" "/var/www/html/cam/CAM.jpg" "msg" "texthere" v4l: setformat ioctl: VIDIOCGCAP(CPiA Camera,type=0x1,chan=1,audio=0,size=48x48-352x288): ok v4l: capture probe 24 bit TrueColor (BE: rgb)... failed setformat: 24 bit TrueColor (BE: rgb) (352x288): failed v4l: setformat ioctl: VIDIOCGCAP(CPiA Camera,type=0x1,chan=1,audio=0,size=48x48-352x288): ok v4l: capture probe 24 bit TrueColor (LE: bgr)... ioctl: VIDIOCMCAPTURE(0,fmt=4,size=48x48): ok ioctl: VIDIOCSYNC(0): ok ok setformat: 24 bit TrueColor (LE: bgr) (352x288): ok v4l: setformat ioctl: VIDIOCGCAP(CPiA Camera,type=0x1,chan=1,audio=0,size=48x48-352x288): ok v4l: getimage ioctl: VIDIOCMCAPTURE(0,fmt=4,size=352x288): ok ioctl: VIDIOCSYNC(0): ok convert-in : 352x288 24 bit TrueColor (LE: bgr) (size=304128) convert-out: 352x288 24 bit TrueColor (BE: rgb) (size=304128) v4l: close ~ stat /dev/.devfsd: No such file or directory Xvideo: 0 adaptors available. Xvideo: no usable video port found Xvideo: hw scaler disabled init: trying: v4l2... init: failed: v4l2 init: trying: v4l... v4l: open: /dev/video (CPiA Camera) capabilities: capture size : 48x48 => 352x288 channels: 1 ioctl: VIDIOCGCHAN(0,Camera,flags=0x0,type=2,norm=0): ok Camera: 0 camera audios : 0 ioctl: VIDIOCSCHAN(0,Camera,flags=0x0,type=2,norm=0): ok PALioctl: VIDIOCSCHAN(0,Camera,flags=0x0,type=2,norm=1): ok NTSCioctl: VIDIOCSCHAN(0,Camera,flags=0x0,type=2,norm=2): ok SECAMioctl: VIDIOCSCHAN(0,Camera,flags=0x0,type=2,norm=3): ok AUTO ioctl: VIDIOCGFBUF(base=(nil),size=0x0,depth=0,bpl=0): Invalid argument fbuffer : base=0x(nil) size=0x0 depth=0 bpl=0 ioctl: VIDIOCGPICT(params=32768/32768/32768/32768/0,depth=24,fmt=4): ok picture : brightness=32768 hue=32768 colour=32768 contrast=32768 picture : whiteness=0 depth=24 palette=rgb24 ioctl: VIDIOCGMBUF(size=811008,frames=2): ok mbuf: size=811008 frames=2 v4l: using mapped buffers for capture init: ok: v4l ioctl: VIDIOCGCHAN(0,Camera,flags=0x0,type=2,norm=0): ok ioctl: VIDIOCGPICT(params=32768/32768/32768/32768/0,depth=24,fmt=4): ok ioctl: VIDIOCGPICT(params=32768/32768/32768/32768/0,depth=24,fmt=4): ok ioctl: VIDIOCGPICT(params=32768/32768/32768/32768/0,depth=24,fmt=4): ok ioctl: VIDIOCGPICT(params=32768/32768/32768/32768/0,depth=24,fmt=4): ok cmd: "snap" "jpeg" "full" "/var/www/html/cam/CAM.jpg" "msg" "texthere" v4l: setformat ioctl: VIDIOCGCAP(CPiA Camera,type=0x1,chan=1,audio=0,size=48x48-352x288): ok v4l: capture probe 24 bit TrueColor (BE: rgb)... failed setformat: 24 bit TrueColor (BE: rgb) (352x288): failed v4l: setformat ioctl: VIDIOCGCAP(CPiA Camera,type=0x1,chan=1,audio=0,size=48x48-352x288): ok v4l: capture probe 24 bit TrueColor (LE: bgr)... ioctl: VIDIOCMCAPTURE(0,fmt=4,size=48x48): ok ioctl: VIDIOCSYNC(0): ok ok setformat: 24 bit TrueColor (LE: bgr) (352x288): ok v4l: setformat ioctl: VIDIOCGCAP(CPiA Camera,type=0x1,chan=1,audio=0,size=48x48-352x288): ok v4l: getimage -- Thanks, Don Harvie Ph +61 2 9882 5963 Network & Firewall Engineer, Fax +61 2 9882 5993 Telstra Enterprise Services Pty Limited Mob +61 417 411 427 Level 3, 112 Talavera Rd Email Don_Harvie@xxxxxxxxxxxxxxxxxxxxxxxxx North Ryde NSW 2113 don.harvie@xxxxxxx (personal) Australia