User avatar
ouafnico
Posts: 67
Joined: Wed Jan 23, 2013 7:35 am

Camera to /dev ?

Thu Jun 06, 2013 7:38 pm

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

jamesh
Raspberry Pi Engineer & Forum Moderator
Raspberry Pi Engineer & Forum Moderator
Posts: 26106
Joined: Sat Jul 30, 2011 7:41 pm

Re: Camera to /dev ?

Thu Jun 06, 2013 7:43 pm

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
Principal Software Engineer at Raspberry Pi (Trading) Ltd.
Contrary to popular belief, humorous signatures are allowed. Here's an example...
I've been saying "Mucho" to my Spanish friend a lot more lately. It means a lot to him.

User avatar
ouafnico
Posts: 67
Joined: Wed Jan 23, 2013 7:35 am

Re: Camera to /dev ?

Thu Jun 06, 2013 7:50 pm

Thanks,

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

dpguest
Posts: 28
Joined: Wed Feb 06, 2013 4:17 pm

Re: Camera to /dev ?

Thu Jun 06, 2013 8:35 pm

For motion search for mmal and or dozencrows ... He has written code to make the pi camera work well with motion...

User avatar
ouafnico
Posts: 67
Joined: Wed Jan 23, 2013 7:35 am

Re: Camera to /dev ?

Fri Jun 07, 2013 8:19 pm


Return to “General discussion”