Hi Florian, On Monday 08 October 2012 07:46:35 Florian Neuhaus wrote: > Hi Laurent > > I am working on a demo-application for displaying a videostream on a > beagleboard. Now I have seen that you have done something similar, > but if I run your "live" application out of the omap3-isp-live repo, > then I get the following error: > > root@beagleboard:~# modprobe omap_vout video1_numbuffers=3 > video2_numbuffers=3 video1_bufsize=771200 video2_bufsize=771200 > vid1_static_vrfb_alloc=n vid2_static_vrfb_alloc=n > root@beagleboard:~# ./live > fb size is 800x480 > Device /dev/video6 opened: OMAP3 ISP resizer output (media). > viewfinder configured for 2011 800x482 This is your problem. The viewfinder resolution is larger than the framebuffer resolution, so the buffers allocated from the framebuffer are too small for the ISP. The OMAP3 ISP resizer can't scale down 1944 pixels (the native sensor height) to exactly 480 pixels as that would exceed the resizer limits. You will thus have to crop the sensor image slightly. Cropping is supported by libomap3isp and by the snapshot application but not by the live application. Ideally the live application or the libomap3isp library should realize that the ISP limits are exceeded and configure cropping on the sensor accordingly. As an interim solution you could add manual crop support to the live application using the snapshot application crop support code as an example. > AEWB: #win 10x7 start 16x74 size 256x256 inc 30x30 > trying to allocate 800x480 > Device /dev/video7 opened: omap_vout (). > 3 buffers requested. > Buffer 0 mapped at address 0xb6d68000. > Buffer 1 mapped at address 0xb6cac000. > Buffer 2 mapped at address 0xb6bf0000. > 3 buffers requested. > Buffer 0 too small (771200 bytes required, 770048 bytes available). > error: unable to allocate buffers for viewfinder. > error: unable to set buffers pool > > This seems to happen in the v4l2_alloc_buffers function of v4l2.c > when memtype is V4L2_MEMORY_USERPTR. Has it been broken in the > newer kernel versions? Do you have hint where I should start fixing? > > I am using the following config: > beagleboard-xm > linux-omap branch, tag v3.5 > leopard imaging li-5m03 with mt9p031 -- Regards, Laurent Pinchart -- To unsubscribe from this list: send the line "unsubscribe linux-media" in the body of a message to majordomo@xxxxxxxxxxxxxxx More majordomo info at http://vger.kernel.org/majordomo-info.html