Brian Johnson schrieb:
Um, do you mean VIDIOC_G_FMT/VIDIOC_S_FMT? There is no VIDIOC_S_CAP
ioctl. Even so libv4l does indeed use the VIDIOC_S_FMT ioctl to set
the cameras format to what it will be using. Also libv4l does not
always use  the jpeg format. Its just that for larger resolutions it
will decided to use a compressed format if supported by your webcam.
Try using 160x120 resolution and it should go with uncompressed bayer
format. At least it does for mine.

On Mon, Dec 1, 2008 at 4:05 AM, GWater <[EMAIL PROTECTED]> wrote:
OrionFyre schrieb:
I just acquired this camera from a friend. and have followed the
instructions. I am getting a green output as well

bash-3.2# lsusb
Bus 007 Device 007: ID 0c45:6282 Microdia

bash-3.2# dmesg | tail
usb 7-2: new high speed USB device using ehci_hcd and address 7
usb 7-2: configuration #1 chosen from 1 choice
microdia: Microdia USB 2.0 Webcam - 0C45:6282 plugged-in.
microdia: Detected SN9C20X Bridge
microdia: Detected MT9M111 Sensor
microdia: Microdia USB 2.0 Webcam is now controlling video device /dev/
video0
7:2:1: cannot get freq at ep 0x84


I too have only a green screen which is divided in two horizontally in
Skype and aMSN where the bottom half has random horizontal noise and
the top half is divided in two vertically where the right and left
appear to be much like an alpha channel for two separate colors.

On Nov 26, 2:08 pm, "Dave Neuer" <[EMAIL PROTECTED]> wrote:
On Tue, Nov 25, 2008 at 10:50 PM, Dave <[EMAIL PROTECTED]> wrote:

Sorry, I don't really follow... what am I trying now?  lol
git clonehttp://repo.or.cz/r/microdia.git
cd microdia
make
modprobe videodev
modprobe compat-ioctl32
insmod microdia.ko exposure=23000



Thanks again!
Don't thank me yet ;-)

Dave
I think I know what the problem here is:

libv4l supports EVERYTHING. Therefore it uses VIDIOC_G_CAP instead fo
VIDIOC_S_CAP. The difference is that only VIDIOC_S_CAP applies the encoding
setting on the sensor and the bridge. We have been lucky so far since
sn9c20x_initialize() contains the JPEG setting by default and libv4l always
chose that.

But if libv4l is choosing another encoding the sensor and bridge are
currently not prepared for that.

(No, I didn't just make that up. I investigated this the whole weekend
because I always wondered why bayer never worked.)

GWater



--~--~---------~--~----~------------~-------~--~----~
Lets make microdia webcams plug'n play, (currently plug'n pray)
To post to this group, send email to [email protected]
Visit us online https://groups.google.com/group/microdia
-~----------~----~----~----~------~----~------~--~---


OK,
I mixed the names up, you're right - anyway I made the respective functions output something in case they were called and it never happened. So I concluded my hypothesis - if you can explain to me how vidioc_s_fmt can be used without the function please tell me.

GWater

Attachment: signature.asc
Description: OpenPGP digital signature

Reply via email to