On Fri, 10 Jul 2009, Parag Shah wrote:
> Dear Saifi,
>
> Thanks for your reply. I think I missed one point in the
> original mail. I was trying to get my integrated webcam to
> work, whereas perhaps the original mail was intended for an
> external webcam.
>
> Can I try the command on an integrated webcam as well?
>
> ffmpeg -f oss -i /dev/dsp -f video4linux2 -s 320x240 -i
> /dev/video0 parag.mpg
>
> Do I still need to refer to /dev/video0 or is another file
> associated with the integrated webcam? Is there any way to
> find out which file is associated with my integrated webcam?
>
> BTW, my Webcam works with Skype. I am just trying to get it
> work on the command line.
>
> Thaks & Regards Parag Shah
>
Hi Parag:
The device entry '/dev/video*' is a virtual device node entry.
You can do a visual inspection of the /dev directory to check
for this entry.
Another approach would be to 'strace' the application that you
run to access the webcam. You'd see a 'open' sys call for the
device node, what is used to read the video frames.
As you mention, webcam works Skype, take a look at the /dev
entry. Next startup skype and try to use webcam. Now, just
run the command 'ls -ltr /dev' should show the entry at the
bottom of the listing.
Hope this helps.
thanks
Saifi.