/dev/video0 no such device
hi, i just got myself an eeepc, and think its great.
i want to do some image recognition/AI programming with the webcam. the webcam's dev node is /dev/video0. i assume this is just a bitmap which(like everything in unix) can be read like a file. the problem is, i can't even dump a frame to a file: Code:
asus-852305267:/home/user> cat /dev/video0 > vid.raw i also tried doing it with dd, but same result. is there something i need to do to enable the webcam first? maybe something which also activates the little LED next to it to tell the user it is active. i tried this: Code:
echo 1 > /proc/acpi/asus/camera thanks for any replies. |
Quote:
This link http://gentoo-wiki.com/Asus_Eee_PC_701#Webcam gives you more info. Looks like you need the uvcvideo module loaded, so the camera will be enabled. Have you loaded this module, or checked for it? Do an "lsmod | grep uvcvideo", and see if it's there. If not, try doing a "modprobe uvcvideo" and see if it loads (need to be root to do this). If it's there, have you looked in /dev, to see if the video0 node is there? |
sorry, i should have said.
im using the stock eee Xandros. its an eeepc 900. it's not that the camera doesn't work - it does in skype etc.. i just need to write a program in C to interface it. i assumed the device node would be the easiest way. i just wanna grab a frame, why cant i? |
What does "ls -l /dev/video0" give you?
Forrest |
it gives:
Code:
crw-rw---- 1 root video 81, 0 2008-07-16 23:49 /dev/video0 Code:
echo 0 > /proc/acpi/asus/camera cat /dev/video0 says no such file or directory would it be completely wrong to say that the driver is producing that message "no such device"(it uses the word 'device')? Lee |
no I think you may be wrong, i read a post on this site which gave me the impression that you read streaming video from the file, not a frame. that could be your problem.
|
Do you have mplayer installed? If so, what happens when you do:
Code:
mplayer tv:// -tv driver=v4l |
I get:
Code:
MPlayer 1.0rc1-4.1.2-DFSG-free (C) 2000-2006 MPlayer Team EDIT: OOPS Double post |
Double Post
|
Maybe try:
Code:
mplayer tv:// -tv driver=v4l2 |
As root, try chmod 664 /dev/video0 in order to give read access to everyone and not merely members of the video group.
Either that, or add yourself to the video group. |
matthewg42:
That gives: Code:
MPlayer 1.0rc1-4.1.2-DFSG-free (C) 2000-2006 MPlayer Team jiml8, i tried it, no difference. i tried everything as root anyway, doesnt work. I tried it on my larger laptop - acer aspire 4xxx. it has a webcam in the lid, and is behaving exactly the same. |
All times are GMT -5. The time now is 07:19 AM. |