Page 1 of 1

Camera to /dev ?

Posted: Thu Jun 06, 2013 7:38 pm
by ouafnico
Hello

I've got the camera module on raspberry. Is there any way to get the camera in /dev like /dev/video ? or making a pipe of raspivid to a file ?


Thanks

Re: Camera to /dev ?

Posted: Thu Jun 06, 2013 7:43 pm
by jamesh
ouafnico wrote:Hello

I've got the camera module on raspberry. Is there any way to get the camera in /dev like /dev/video ? or making a pipe of raspivid to a file ?


Thanks
There is no /dev/video driver yet, but you can pipe the output to stdout using -o - and pipe that to wherever you want.

e.g.

raspivid -t 3000 -o -

Of course, if you just want to write a file

raspivid -t 3000 -o nameoffile.h264

Re: Camera to /dev ?

Posted: Thu Jun 06, 2013 7:50 pm
by ouafnico
Thanks,

I'm just searching how to get it working with motion program.

Re: Camera to /dev ?

Posted: Thu Jun 06, 2013 8:35 pm
by dpguest
For motion search for mmal and or dozencrows ... He has written code to make the pi camera work well with motion...

Re: Camera to /dev ?

Posted: Fri Jun 07, 2013 8:19 pm
by ouafnico