Hi, Do you know if in the ARM board you are using a usb1.1 port? Some devices only support MJPG on slow usb ports, in this case on usb2 ports both formats should be available.
Best regards, Paulo 2010/3/29 Gallon Fr <[email protected]>: > Hi,all: > > I got a problem while I was trying to capture a frame through a webcam > on a dev-board.I just followed the example provided by V4L2 specs and > made a little change in the process_image() function.The code runs > > well on my PC,and I can exactly get a converted BMP file after setting > the image format to "YUYV". > But when port it to ARM, I just got the "Invalid Argument" error > returned by VIDIOC_S_FMT.I tried with the G_FMT ioctl both on PC and > > ARM and the result confused me.While on ARM the returned supported > format is "MJPG",rather than "YUYV" on PC and that's why the S_FMT > complained. > > Maybe this's a noob question cuz I'm new to linux,but if anyone happen > > to know some resolution or give me a hint,it'd be a great help. > > Thanks and Regards > Fei > > Here is some info about my environment. > -------------------------------------- > host-pc: Fedora 12( kernel 2.6.31.5) > > target-arm: mini2440 (kernel 2.6.32.2) EABI enabled/V4L enabled/gspca > enabled/uvc enabled > -------------------------------------- > Terminal message when I plug the cam into the BOARD > > usb 1-1: new full speed USB device using s3c2410-ohci and address 5 > > usb 1-1: New USB device found, idVendor=0c45, idProduct=62f0 > usb 1-1: New USB device strings: Mfr=2, Product=1, SerialNumber=0 > usb 1-1: Product: USB 2.0 Camera > usb 1-1: Manufacturer: Sonix Technology Co., Ltd. > > usb 1-1: configuration #1 chosen from 1 choice > uvcvideo: Found UVC 1.00 device USB 2.0 Camera (0c45:62f0) > -------------------------------------- > Luvcview message on PC > > luvcview 0.2.6 > > SDL information: > Video driver: x11 > A window manager is available > Device information: > Device path: /dev/video0 > /dev/video0 does not support read i/o > { pixelformat = 'YUYV', description = 'YUV 4:2:2 (YUYV)' } > > { discrete: width = 640, height = 480 } > Time interval between frame: 1/30, 1/25, 1/20, 1/15, 1/10, 1/5, > { discrete: width = 320, height = 240 } > Time interval between frame: 1/30, 1/25, 1/20, 1/15, 1/10, 1/5, > > { discrete: width = 160, height = 120 } > Time interval between frame: 1/30, 1/25, 1/20, 1/15, 1/10, 1/5, > --------------------------------------- > ENUM_FMT returned value on the BOARD > > fmt=0x47504a4d ('MJPG') > > > _______________________________________________ > Linux-uvc-devel mailing list > [email protected] > https://lists.berlios.de/mailman/listinfo/linux-uvc-devel > > _______________________________________________ Linux-uvc-devel mailing list [email protected] https://lists.berlios.de/mailman/listinfo/linux-uvc-devel
