Ask Ubuntu is a question and answer site for Ubuntu users and developers. Join them; it only takes a minute:

Sign up
Here's how it works:
  1. Anybody can ask a question
  2. Anybody can answer
  3. The best answers are voted up and rise to the top

Hello I have read that all entries in /dev are set up to work as if they were regular files. After plugging in my webcam, the OS creates /dev/video0 automatically. I then do:

maxtor@lounge:~$ sudo cat /dev/video0 > vyd 
[sudo] password for maxtor: 
cat:/dev/video0: 
No such devicemaxtor@lounge:~$

I was hoping that it would put a frame of video in 'vyd'. So why wont it?

Starting Cheese, next, works; so everything seems to be in order.

share|improve this question

Basically, that's not how the /dev/videoX interface works; you can't cat the device node to get a frame of video out.

There are a number of utilities to do this though, their suitability depending on what you're looking to do. For example, the webcam package can take a snapshot from a video device and upload it to the web.

share|improve this answer

Your Answer

 
discard

By posting your answer, you agree to the privacy policy and terms of service.