video capture through webcam
#include <>
main()
{
fd=open("/dev/dsp",O_RDONLY);
fd2=open("/dev/dsp",O_WRONLY);
while(1)
{
nread= read(fd,buf,500);
write(fd2,buf,nread);
}
}
it is the program for reading from microphone and to listen to it through speakers.
i would like to know whether we can capture the video from a webcam in a similar manner.
What may be the file format of that image?
What may be the file format of the sound captured by the above program?
we are terribly in need of these information since we have to go forward with our project "video conferencing".
if you know something, please don't forget to leave a remark and reply
awaiting your reply,
vishak
|