Re: [Linux-uvc-devel] Genius UVC webcam problem on ARM
Hello, there is problem patching my kernel - maybe it's too old for this patch (2.6.33.7). Any idea? Best regards, Zdenek Materna patch -Np1 --dry-run ../../../uvc_stat_jpeg_v4.diff patching file drivers/media/video/uvc/uvc_driver.c Hunk #1 succeeded at 47 with fuzz 1. Hunk #2 succeeded at 350 (offset 1 line). Hunk #3 succeeded at 2237 with fuzz 2 (offset 279 lines). patching file drivers/media/video/uvc/uvc_queue.c Hunk #1 succeeded at 336 (offset -12 lines). Hunk #2 succeeded at 360 (offset -12 lines). patching file drivers/media/video/uvc/uvc_video.c Hunk #1 succeeded at 90 (offset -29 lines). Hunk #2 FAILED at 151. Hunk #3 succeeded at 202 (offset -38 lines). Hunk #4 succeeded at 229 (offset -38 lines). Hunk #5 succeeded at 843 (offset -62 lines). Hunk #6 succeeded at 1058 (offset -63 lines). 1 out of 6 hunks FAILED -- saving rejects to file drivers/media/video/uvc/uvc_video.c.rej patching file drivers/media/video/uvc/uvcvideo.h Hunk #1 FAILED at 182. Hunk #2 succeeded at 406 (offset 3 lines). Hunk #3 succeeded at 465 with fuzz 2. Dne 15. dubna 2011 19:42 Alexey Fisher bug-tr...@fisher-privat.net napsal(a): There is new patch. With this patch you can recalculate bandwith for jpeg stream. See my post in list and try it: [patch] jpeg compression hacks. Tester are welcome!!! -- Regards, Alexey ___ Linux-uvc-devel mailing list Linux-uvc-devel@lists.berlios.de https://lists.berlios.de/mailman/listinfo/linux-uvc-devel
Re: [Linux-uvc-devel] Genius UVC webcam problem on ARM
Hello, I've applied your patch. Here is result: [ 298.25] uvc_uninit_video: Statistic for YUV 4:2:2 (YUYV) 160x120@15 [ 298.26] provided dwMaxVideoFrameBufferSize 38400, calculated bpp 16 [ 298.26] collected max_used_size 38400, calculated bpp 16 [ 298.28] provided dwMaxPayloadTransferSize 626 [ 298.29] calculated dwMaxPayloadTransferSize 626 It's only for YUV and 160x120, because I can't set higher resolution (they are available only in jpeg mode). I will try it also on my notebook later, where it's possible to use webcam in jpeg mode. Best regards, Zdenek Materna Dne 13. dubna 2011 21:42 Alexey Fisher bug-tr...@fisher-privat.net napsal(a): I just send patch to the list, can you pleas test it: [patch] gather compression statistic for MJPEG (and other formats) ___ Linux-uvc-devel mailing list Linux-uvc-devel@lists.berlios.de https://lists.berlios.de/mailman/listinfo/linux-uvc-devel
Re: [Linux-uvc-devel] Genius UVC webcam problem on ARM
There is new patch. With this patch you can recalculate bandwith for jpeg stream. See my post in list and try it: [patch] jpeg compression hacks. Tester are welcome!!! -- Regards, Alexey ___ Linux-uvc-devel mailing list Linux-uvc-devel@lists.berlios.de https://lists.berlios.de/mailman/listinfo/linux-uvc-devel
Re: [Linux-uvc-devel] Genius UVC webcam problem on ARM
Hello, output of lsusb and uvcvideo traces are attached. Output from lsusb is from PC, because lsusb on ARM kit doesn't support verbose parameter. Best regards, Zdenek Materna Dne 13. dubna 2011 9:46 Alexey Fisher bug-tr...@fisher-privat.net napsal(a): Hallo, On Di, 2011-04-12 at 19:52 +0200, Zdeněk Materna wrote: Sorry for another mail. It works with quirks 128 and uncompressed YUV format. Is there any way how to use compressed MJPEG? Should I try compile never uvcvideo driver? please attach the output of lsusb -vd : : - is the usb id number of your webcam and please attach complete trace of uvcvideo. You can enable it with: sudo rmmod uvcvideo sudo modprobe uvcvideo trace=0x -- Regards, Alexey uvcvideo-logs.tar.bz2 Description: BZip2 compressed data ___ Linux-uvc-devel mailing list Linux-uvc-devel@lists.berlios.de https://lists.berlios.de/mailman/listinfo/linux-uvc-devel
Re: [Linux-uvc-devel] Genius UVC webcam problem on ARM
Hallo, Firs of all, your raw stream is working because it use smaller frame size. Raw stream is 160x120, jpeg is 640x480. I'm sure if you will test same size for jpeg it will work too. Second, your cam provide correct data for raw stream (bitrate, urb size). But also provide same settings for jpeg. It mean even if jpeg consume lesser than raw, we do what webcam request us. The quirk=128 make recalculation only for raw stream. We still need quirk for jpeg stream. Am Mittwoch, den 13.04.2011, 17:13 +0200 schrieb Zdeněk Materna: Hello, output of lsusb and uvcvideo traces are attached. Output from lsusb is from PC, because lsusb on ARM kit doesn't support verbose parameter. Best regards, Zdenek Materna Dne 13. dubna 2011 9:46 Alexey Fisher bug-tr...@fisher-privat.net napsal(a): Hallo, On Di, 2011-04-12 at 19:52 +0200, Zdeněk Materna wrote: Sorry for another mail. It works with quirks 128 and uncompressed YUV format. Is there any way how to use compressed MJPEG? Should I try compile never uvcvideo driver? please attach the output of lsusb -vd : : - is the usb id number of your webcam and please attach complete trace of uvcvideo. You can enable it with: sudo rmmod uvcvideo sudo modprobe uvcvideo trace=0x -- Regards, Alexey ___ Linux-uvc-devel mailing list Linux-uvc-devel@lists.berlios.de https://lists.berlios.de/mailman/listinfo/linux-uvc-devel ___ Linux-uvc-devel mailing list Linux-uvc-devel@lists.berlios.de https://lists.berlios.de/mailman/listinfo/linux-uvc-devel
Re: [Linux-uvc-devel] Genius UVC webcam problem on ARM
Hello, thanks for making it clear. However lowest resolution supported by camera in JPEG mode is 640x480, so it seems that I have to use YUV mode. There is no quirk option for compressed mode? Even in some development tree of uvc video driver? Any path? Regards, Zdenek Materna ___ Linux-uvc-devel mailing list Linux-uvc-devel@lists.berlios.de https://lists.berlios.de/mailman/listinfo/linux-uvc-devel
Re: [Linux-uvc-devel] Genius UVC webcam problem on ARM
Hello again, now I discovered, that it's possible to change module parameters even if they are compiled in kernel... So I did: echo 2 /sys/module/uvcvideo/parameters/quirks And v4l example now ends like this: VIDIOC_S_FMT error 28, No space left on device Error No space left indicates problem with USB bandwidth? How can I solve it? I tried to change resolution in v4l example from 640x480 to 160x120 but it didn't help. Dne 12. dubna 2011 18:00 Zdeněk Materna zdenek.mate...@gmail.com napsal(a): Hello, I have problem with UVC webcam. It's Genius Facecam 1000. I would like to use it with mjpg-streamer. Before this model, I had Facecam 1320, but it wasn't mjpeg capable, so mjpg-streamer had to do jpeg compresion and it was quite slow. Facecam 1000 can provide mjpg stream by itself and it works great on x86, but it doesn't work on ARM. To exclude problem in mjpg-streamer I compiled v4l capture example (http://v4l2spec.bytesex.org/spec-single/v4l2.html#CAPTURE-EXAMPLE) and it's same - works on x86 a not on ARM. On embedded platform I'm using AT91SAM9260 (Olimex kit L9260) which has USB2.0, but only full-speed - is it problem? I don't think so - previous webcam works great. On x86 I use kernel 2.6.35 and glibc. On ARM there is kernel 2.6.33.7.2-rt30 and uClibc. v4l example fails with this error: VIDIOC_STREAMON error 5, Input/output error webcam is detected correctly: [ 2042.10] usb 1-1: new full speed USB device using at91_ohci and address 3 [ 2042.29] usb 1-1: New USB device found, idVendor=0458, idProduct=707e [ 2042.29] usb 1-1: New USB device strings: Mfr=1, Product=2, SerialNumber=0 [ 2042.31] usb 1-1: Product: FaceCam 1000 [ 2042.32] usb 1-1: Manufacturer: KYE SYSTEMS CORP. [ 2042.40] uvcvideo: Found UVC 1.00 device FaceCam 1000 (0458:707e) [ 2042.46] input: FaceCam 1000 as /devices/platform/at91_ohci/usb1/1-1/1-1:1.0/input/input1 Thanks for any advice! Best regards Zdenek Materna ___ Linux-uvc-devel mailing list Linux-uvc-devel@lists.berlios.de https://lists.berlios.de/mailman/listinfo/linux-uvc-devel
Re: [Linux-uvc-devel] Genius UVC webcam problem on ARM
Sorry for another mail. It works with quirks 128 and uncompressed YUV format. Is there any way how to use compressed MJPEG? Should I try compile never uvcvideo driver? Dne 12. dubna 2011 18:55 Zdeněk Materna zdenek.mate...@gmail.com napsal(a): Hello again, now I discovered, that it's possible to change module parameters even if they are compiled in kernel... So I did: echo 2 /sys/module/uvcvideo/parameters/quirks And v4l example now ends like this: VIDIOC_S_FMT error 28, No space left on device Error No space left indicates problem with USB bandwidth? How can I solve it? I tried to change resolution in v4l example from 640x480 to 160x120 but it didn't help. Dne 12. dubna 2011 18:00 Zdeněk Materna zdenek.mate...@gmail.com napsal(a): Hello, I have problem with UVC webcam. It's Genius Facecam 1000. I would like to use it with mjpg-streamer. Before this model, I had Facecam 1320, but it wasn't mjpeg capable, so mjpg-streamer had to do jpeg compresion and it was quite slow. Facecam 1000 can provide mjpg stream by itself and it works great on x86, but it doesn't work on ARM. To exclude problem in mjpg-streamer I compiled v4l capture example (http://v4l2spec.bytesex.org/spec-single/v4l2.html#CAPTURE-EXAMPLE) and it's same - works on x86 a not on ARM. On embedded platform I'm using AT91SAM9260 (Olimex kit L9260) which has USB2.0, but only full-speed - is it problem? I don't think so - previous webcam works great. On x86 I use kernel 2.6.35 and glibc. On ARM there is kernel 2.6.33.7.2-rt30 and uClibc. v4l example fails with this error: VIDIOC_STREAMON error 5, Input/output error webcam is detected correctly: [ 2042.10] usb 1-1: new full speed USB device using at91_ohci and address 3 [ 2042.29] usb 1-1: New USB device found, idVendor=0458, idProduct=707e [ 2042.29] usb 1-1: New USB device strings: Mfr=1, Product=2, SerialNumber=0 [ 2042.31] usb 1-1: Product: FaceCam 1000 [ 2042.32] usb 1-1: Manufacturer: KYE SYSTEMS CORP. [ 2042.40] uvcvideo: Found UVC 1.00 device FaceCam 1000 (0458:707e) [ 2042.46] input: FaceCam 1000 as /devices/platform/at91_ohci/usb1/1-1/1-1:1.0/input/input1 Thanks for any advice! Best regards Zdenek Materna ___ Linux-uvc-devel mailing list Linux-uvc-devel@lists.berlios.de https://lists.berlios.de/mailman/listinfo/linux-uvc-devel