How's this thing work?


10 posts
by FleaBit » Sun May 19, 2013 1:33 pm
After fighting memory card brand related issues to get this camera working, once I have it working, I'm stuck. I can type the commands and get a flash of a preview on the screen, but what's actually happening? Is it actually capturing video or jpegs and storing them somewhere? If so, where? Or, are raspivid and raspistill just tools to be used by something else to actually capture it, meaning you have to write code to make something actually capture? Or do those commands capture it. If so, where's the magic storage place (I can't see any directories listed in that area where those commands are)?

I got to this party late, so forgive me. I have exactly 1 day of exposure to it. I've searched a searched but haven't found anything that actually shows you taking stills. Lots of streaming instructions, but I can't find much on stills.

Is there a guide for taking stills, where they are stored, how it all works, or am I completely missing something obvious (which is HIGHLY possible).

Thanks for putting up with my basic questions!

Oh, let's just add a scenario in case that helps- I'd like to capture stills at will.
Posts: 16
Joined: Thu Jan 17, 2013 1:31 pm
by fbutler » Sun May 19, 2013 1:39 pm
FleaBit wrote:After fighting memory card brand related issues to get this camera working, once I have it working, I'm stuck. I can type the commands and get a flash of a preview on the screen, but what's actually happening? Is it actually capturing video or jpegs and storing them somewhere? If so, where? Or, are raspivid and raspistill just tools to be used by something else to actually capture it, meaning you have to write code to make something actually capture? Or do those commands capture it. If so, where's the magic storage place (I can't see any directories listed in that area where those commands are)?

I got to this party late, so forgive me. I have exactly 1 day of exposure to it. I've searched a searched but haven't found anything that actually shows you taking stills. Lots of streaming instructions, but I can't find much on stills.

Is there a guide for taking stills, where they are stored, how it all works, or am I completely missing something obvious (which is HIGHLY possible).

Thanks for putting up with my basic questions!

Oh, let's just add a scenario in case that helps- I'd like to capture stills at will.

The basic instructions are in this post:
http://www.raspberrypi.org/archives/3890
To see a full list of options for the raspistill program use the command:
Code: Select all
raspistill | less
User avatar
Posts: 299
Joined: Thu Mar 15, 2012 4:09 pm
Location: Surrey, England
by FleaBit » Sun May 19, 2013 2:07 pm
Thanks, I'd seen all of that and was still missing something. In rereading it, I think I had the lightbulb moment finally. Some days the light comes on quicker than others!

Thanks!
Posts: 16
Joined: Thu Jan 17, 2013 1:31 pm
by FleaBit » Sun May 19, 2013 8:45 pm
Okay, apparently the lightbulb that came on burned out quickly.

When I type the following in :

Code: Select all
raspistill -o image.jpg


I get the following error message :

"mmal: main: Error opening output file: image.jpg
No output file will be generated"

I'm not sure how I'm capable of taking something so simple and making it so complicated, but apparently I have a talent for it :)
Posts: 16
Joined: Thu Jan 17, 2013 1:31 pm
by DirkS » Sun May 19, 2013 9:00 pm
"mmal: main: Error opening output file: image.jpg
No output file will be generated"

Do you have write permission for the location the file is written to?

Gr.
Dirk.
Posts: 952
Joined: Tue Jun 19, 2012 9:46 pm
Location: Staffordshire, UK
by FleaBit » Sun May 19, 2013 10:47 pm
That's a good question and part of my original question. Where's it writing to?

It's a bone stock, fresh install of the OS, with nothing else done other than installing the camera. I've followed the exact examples in the documentation and that's the errors I'm running into. I'm surprised I'm the only one to see it, since I've modified nothing.
Posts: 16
Joined: Thu Jan 17, 2013 1:31 pm
by DirkS » Sun May 19, 2013 11:10 pm
That's a good question and part of my original question. Where's it writing to?

Current working directory. If you've just logged in with user Pi that will be /home/pi and if you issue the raspistill command from there it should not give any permission problems.

Gr.
Dirk.
Posts: 952
Joined: Tue Jun 19, 2012 9:46 pm
Location: Staffordshire, UK
by FleaBit » Mon May 20, 2013 12:18 am
I did that and got the same error. I chmod'ed it and now it all seems to work fine.

Thanks for the help. Hopefully my questioning on this part is over, as it looks like I have taken several photos and confirmed their location and quality.

Thanks for the help, I appreciate it!
Posts: 16
Joined: Thu Jan 17, 2013 1:31 pm
by GardenSteamer » Mon May 20, 2013 4:36 am
I had the same problem and solved it with

sudo raspistill -o image.jpg
Posts: 1
Joined: Wed Aug 22, 2012 3:44 pm
by fbutler » Mon May 20, 2013 7:17 am
GardenSteamer wrote:I had the same problem and solved it with

sudo raspistill -o image.jpg

You shouldn't need to run the camera commands as root. It looks like there are permission errors due to where you are in the directory structure when you run the command. You must have write permissions to the directory where you are creating the image.jpg file.
User avatar
Posts: 299
Joined: Thu Mar 15, 2012 4:09 pm
Location: Surrey, England