LinuxQuestions.org
Download your favorite Linux distribution at LQ ISO.
Home Forums Tutorials Articles Register
Go Back   LinuxQuestions.org > Forums > Linux Forums > Linux - Hardware
User Name
Password
Linux - Hardware This forum is for Hardware issues.
Having trouble installing a piece of hardware? Want to know if that peripheral is compatible with Linux?

Notices


Reply
  Search this Thread
Old 09-04-2011, 03:22 AM   #1
tadevokle
LQ Newbie
 
Registered: Sep 2011
Distribution: Debian, Fedora
Posts: 9

Rep: Reputation: Disabled
Question cat /dev/video* -> No such device found


Hi,

I would like to get some frames from my webcam however, whenever I try something like: cat /dev/video0 [the dev node of the webcam is video0], I get a message about no such device being found, even though my webcam works seamlessly with other applications such as luvcview, skype or etc.

I've googled this problem but found nothing of particular usefulness, so I'd be glad if you could help.


Some information on my system, which should help:

Code:
bla@blub /dev $ ls | grep video
video0

bla@blub /dev $ ls -l /dev/video0
crw-rw----+ 1 root video 81, 0 Sept  4 13:14 /dev/video0


bla@blub /dev $ cat /dev/video0 > vid.raw
cat: /dev/video0: No such device found

bla@blub /dev $ lsusb
Bus 001 Device 001: ID 1d6b:0002 Linux Foundation 2.0 root hub
Bus 002 Device 001: ID 1d6b:0002 Linux Foundation 2.0 root hub
Bus 003 Device 001: ID 1d6b:0001 Linux Foundation 1.1 root hub
Bus 004 Device 001: ID 1d6b:0001 Linux Foundation 1.1 root hub
Bus 002 Device 002: ID 04f2:b055 Chicony Electronics Co., Ltd 

bla@blub /dev $ uname -r
2.6.32-5-amd64

bla@blub /dev $  mplayer tv:// -tv driver=v4l2

MPlayer SVN-r33953 (C) 2000-2010 MPlayer Team
Can't open joystick device /dev/input/js0: No such file or directory
Can't init input joystick
mplayer: could not connect to socket
mplayer: No such file or directory
Failed to open LIRC support. You will not be able to use your remote control.

Playing tv://.
TV file format detected.
Selected driver: v4l2
 name: Video 4 Linux 2 input
 author: Martin Olschewski <olschewski@zpr.uni-koeln.de>
 comment: first try, more to come ;-)
v4l2: your device driver does not support VIDIOC_G_STD ioctl, VIDIOC_G_PARM was used instead.
Selected device: CNF7040
 Capabilities:  video capture  streaming
 supported norms:
 inputs: 0 = Camera 1;
 Current input: 0
 Current format: YUYV
v4l2: ioctl set format failed: Invalid argument
v4l2: ioctl set format failed: Invalid argument
v4l2: ioctl set format failed: Invalid argument
tv.c: norm_from_string(pal): Bogus norm parameter, setting default.
v4l2: ioctl enum norm failed: Invalid argument
Error: Cannot set norm!
Selected input hasn't got a tuner!
v4l2: ioctl set mute failed: Invalid argument
open: No such file or directory
[MGA] Couldn't open: /dev/mga_vid
open: No such file or directory
[MGA] Couldn't open: /dev/mga_vid
[VO_TDFXFB] Can't open /dev/fb0: No such file or directory.
s3fb: can't open /dev/fb0: No such file or directory
[vdpau] Error when calling vdp_device_create_x11: 1
==========================================================================
Opening video decoder: [raw] RAW Uncompressed Video
Movie-Aspect is undefined - no prescaling applied.
VO: [xv] 640x480 => 640x480 Packed YUY2 
Selected video codec: [rawyuy2] vfm: raw (RAW YUY2)
==========================================================================
Audio: no sound
Starting playback...
V:   0.0   1/  1 ??% ??% ??,?% 0 0 

v4l2: ioctl set mute failed: Invalid argument
v4l2: 3 frames successfully processed, 0 frames dropped.

Exiting... (End of file)
Operating System: Debian Stable
Webcam: Chicony Usb Webcam [the embedded webcam of my laptop]

[Before you ask, my user is a member of the video group and I get the same problem, even when I run the cat command as root.]

Last edited by tadevokle; 09-04-2011 at 04:06 AM.
 
Old 09-05-2011, 07:25 AM   #2
smallpond
Senior Member
 
Registered: Feb 2011
Location: Massachusetts, USA
Distribution: Fedora
Posts: 4,140

Rep: Reputation: 1263Reputation: 1263Reputation: 1263Reputation: 1263Reputation: 1263Reputation: 1263Reputation: 1263Reputation: 1263Reputation: 1263
Looks like the driver video0 does not support a simple read operation. Accessing a webcam may take something a little more complicated, like sending a command to the camera to tell it to grab a frame. I don't know. Try the programs listed here:

http://tldp.org/HOWTO/Webcam-HOWTO/f...s.html#COMMAND
 
Old 09-05-2011, 07:50 AM   #3
jdkaye
LQ Guru
 
Registered: Dec 2008
Location: Westgate-on-Sea, Kent, UK
Distribution: Debian Testing Amd64
Posts: 5,465

Rep: Reputation: Disabled
Why not try Gnome's Cheese? You don't have to be running Gnome to use it.
ciao,
jdk
 
Old 09-05-2011, 12:20 PM   #4
tadevokle
LQ Newbie
 
Registered: Sep 2011
Distribution: Debian, Fedora
Posts: 9

Original Poster
Rep: Reputation: Disabled
Quote:
Originally Posted by jdkaye View Post
Why not try Gnome's Cheese? You don't have to be running Gnome to use it.
ciao,
jdk
I'm working on a simple image processing program, which should take input from the camera and subtract the background from it. The reason why I posted that thing with cat is that, I am planning to access the camera image with stdio:: open, which essentially is what cat does. Cheese would just make things harder for me

@smallpond:

That sounds interresting, I would give those programs a try and post feedback.
 
  


Reply



Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is Off
HTML code is Off



Similar Threads
Thread Thread Starter Forum Replies Last Post
webcam not found under /dev/video or /dev/video0/.. superevilspacemonkey Linux - Hardware 1 11-14-2008 03:56 PM
Suse's Ivtv And Lirc Don't Work, cat: /dev/video: No such device lagu2653 SUSE / openSUSE 0 12-09-2005 10:09 AM
V4L: "cat /dev/video0: no such device"; to be sure not supported? jago25_98 Linux - Hardware 1 01-27-2005 04:04 PM
What is adsp0? and why cat /dev/urandom >/dev/adsp0 give me "no such device"? haimeltjnfg Linux - Hardware 2 05-09-2004 10:54 PM
/dev/video "device not found" with pwc driver kosta Linux - Hardware 0 09-14-2003 12:57 PM

LinuxQuestions.org > Forums > Linux Forums > Linux - Hardware

All times are GMT -5. The time now is 08:43 AM.

Main Menu
Advertisement
My LQ
Write for LQ
LinuxQuestions.org is looking for people interested in writing Editorials, Articles, Reviews, and more. If you'd like to contribute content, let us know.
Main Menu
Syndicate
RSS1  Latest Threads
RSS1  LQ News
Twitter: @linuxquestions
Open Source Consulting | Domain Registration