Hello,
I am trying to get a picture with my webcamera from the Yun.
cd /mnt/sda1/
fswebcam test.jpg
And there is the error
--- Opening /dev/video0...
stat: No such file or directory
the fswebcam is trying to find the /dev/video0 there is not something like this at my /dev.
But with lsusb I can see the camera and it is /dev/bus/usb/001/003.
when I try
fswebcam 1.jpg -d /dev/bus/usb/001/003
--- Opening /dev/bus/usb/001/003...
Trying source module v4l2...
/dev/bus/usb/001/003 opened.
/dev/bus/usb/001/003: Not a V4L2 device?
Trying source module v4l1...
/dev/bus/usb/001/003 opened.
/dev/bus/usb/001/003: Not a V4L device?
VIDIOCGCAP: Inappropriate ioctl for device
/dev/bus/usb/001/003 closed.
Unable to find a source module that can read /dev/bus/usb/001/003.
what can I do?
(From my debian I can take picture with this camera with the same way)
my camera is LifeCam VX-3000
edit: I found an other camera and got a picture, but the quality is very low (2/10)
I have the same problem that I have asked and still did not find the solution:
bolatu:
Hi guys,
I have a problem about taking picture from my Logitech HD Webcam C270. I have installed everything properly. However, I have this error when I want to take a picture:
root@Arduino:~# cd /mnt/sda1
root@Arduino:/mnt/sda1# fswebcam test.png
--- Opening /dev/video0...
Trying source module v4l2...
/dev/video0 opened.
No input was specified, using the first.
Adjusting resolution from 384x288 to 352x288.
--- Capturing frame...
VIDIOC_DQBUF: No such device
No frames captured.
root@Arduino:/mnt/sda1#
root@Arduino:/mnt/sda1# cd
root@Arduino:~# fswebcam --no-banner --save photo.jpg
--- Opening /dev/video0...
Trying source module v4l2...
/dev/video0 opened.
No input was specified, using the first.
Unable to find a compatible palette format.
root@Arduino:~# fswebcam --no-banner --save photo.jpg
--- Opening /dev/video0...
Trying source module v4l2...
/dev/video0 opened.
No input was specified, using the first.
Unable to find a compatible palette format.
I have checked my systemlog and it didnt recognize my webcam:
Jul 4 00:56:16 Arduino kern.info kernel: [ 1211.550000] uvcvideo: Found UVC 1.00 device (046d:0825)
Jul 4 00:56:16 Arduino kern.info kernel: [ 1211.650000] input: UVC Camera (046d:0825) as /devices/platform/ehci-platform/usb1/1-1/1-1.1/1-1.1:1.0/input/input131
Jul 4 00:56:25 Arduino kern.info kernel: [ 1220.940000] usb 1-1.1: USB disconnect, device number 25
Jul 4 00:56:25 Arduino kern.info kernel: [ 1221.190000] usb 1-1.1: new high-speed USB device number 26 using ehci-platform
Jul 4 00:56:25 Arduino kern.info kernel: [ 1221.530000] usb 1-1.1: New USB device found, idVendor=046d, idProduct=0825
Jul 4 00:56:25 Arduino kern.info kernel: [ 1221.530000] usb 1-1.1: New USB device strings: Mfr=0, Product=0, SerialNumber=2
Jul 4 00:56:25 Arduino kern.info kernel: [ 1221.540000] usb 1-1.1: SerialNumber: F4C44090
Jul 4 00:56:26 Arduino kern.info kernel: [ 1221.550000] uvcvideo: Found UVC 1.00 device (046d:0825)
Jul 4 00:56:26 Arduino kern.info kernel: [ 1221.650000] input: UVC Camera (046d:0825) as /devices/platform/ehci-platform/usb1/1-1/1-1.1/1-1.1:1.0/input/input132
Jul 4 00:56:30 Arduino kern.info kernel: [ 1225.550000] usb 1-1.1: USB disconnect, device number 26
with the other camera I can take picture but still the 95 didn't help. Too low quality.
with ls /dev/video0 -al
I can see the driver as you say.
Sometimes I get a full black picture.
also I get the warning
--- Capturing frame...
gd-jpeg: JPEG library reports unrecoverable error: Not a JPEG file: starts with 0x16 0x81
Back to VX-3000
I tried to install kmod-video-gspca-sonixj. Sonixj is my driver always from this list
045E:00F5 kmod-video-gspca-sonixj
but I get this error
with the other camera I can take picture but still the 95 didn't help. Too low quality.
with ls /dev/video0 -al
I can see the driver as you say.
Sometimes I get a full black picture.
root@Arduino:/mnt/sda1# fswebcam -d v4l2:/dev/video0 -i 0 --list-controls
--- Opening v4l2:/dev/video0...
/dev/video0 opened.
Available Controls Current Value Range
------------------ ------------- -----
Brightness 64 (100%) -64 - 64
with the other camera I can take picture but still the 95 didn't help. Too low quality.
with ls /dev/video0 -al
I can see the driver as you say.
Sometimes I get a full black picture.
--- Opening v4l2:/dev/video0...
/dev/video0 opened.
Available Controls Current Value Range
------------------ ------------- -----
Brightness 64 (100%) -64 - 64
removed all then installed correct one again and still getting the same error after
opkg update
opkg install kmod-video-gspca-sonixj
"--save test.jpg" helped.
Increased brightness but some times all is black and some times I get the picture, maybe it is something wrong with my board? Should I reset it to the factory default?
Increased brightness but some times all is black and some times I get the picture, maybe it is something wrong with my board? Should I reset it to the factory default?
Never hurt, I reset it to the factory default every few days anyway.
I think I found the solution,
the problem was the frames.
The camera gives black because it cant take a picture with one frame.
You have to:
1)skip the first frames with the -S 10
2)or take the pictures with more frames -F 10 (range 1-255) 255 is slow
3) or give more power to camera (usb hub)