Setting USB webcam parameters (FPS, size, codec)

Euphrasius
Hello:

I own a micro2440 + 7" Innolux LCD board. Kernel 2.6.32.2-FriendlyARM. V4L
enabled (both GSPCA and UVC USB webcams).

I'm writting a C++ program (OpenCV based) which uses a USB webcam.

Here the problem:
Many modern webcams perform poorly when plugged to the board: they send raw
data (YUV fomart) thus  USB 1.1 bandwidth is overloaded. If JPEG pixel
format were used instead of YUV, it would perform significantly better.

mjpeg-streamer is able to select pixel format. Indeed, I have successfully
tested those modern webcam with mjpeg-streamer. But I'm NOT using
mjpeg-streamer. OpenCV deals directly with V4L subsystem.

Is there any way to tell the V4L driver to set pixel format?

Regards

Euphrasius
It's worth to say that there is a way to set pixel format in V4L, but it
only works in host PC with Ubuntu:

1st - Install v4l-utils. This could be done through "sudo apt-get
v4l-utils"

2nd - run in a terminal (for example): v4l2-ctl
--set-fmt-video=width=640,height=480,pixelformat=0


OK, now I have successfully cross-compiled v4l-utils for the mini2440.
However, when I invoke v4l2-ctl command, I get the following error:
libv4l2.so.0 not found.

Euphrasius
My advice: don't waste your time with mini2440 boards. They are worthless
rubbish and nobody will help you.