Page 1 of 1

Webcam to SD Card in C++

Posted: Thu Nov 01, 2012 12:53 pm
by howroyd
Hi all.

I have my webcam working nicely, outputting on http://localhost:8080.

I am running a cpp programme, which I would like to include some code for the webcam. I want to save the video feed to the SD card in C++.

How do I create a file (mjpg??)
Save the video in realtime
Stop saving (then I can open a new file for another video)

Any help greatly received,

Cheers

Re: Webcam to SD Card in C++

Posted: Thu Nov 01, 2012 1:22 pm
by ghans
Have a look into V4L2 (Video for Linux 2) and Linux File I/O.
Else , motion and mjpeg-streamer look like open-source to me ,
have a look into their source code.

ghans