makgab
Posts: 33
Joined: Fri Oct 24, 2014 9:28 am

raspistill waiting

Thu Nov 06, 2014 8:15 pm

Hi!

If I run:

Code: Select all

~# raspistill -o test.png -e png -t 0
then it makes an image (~8MB) but wait 7-8 seconds. It is the time for making the image file?
Last edited by makgab on Sun Nov 09, 2014 8:59 pm, edited 1 time in total.
--
G.

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

Re: raspistill waiting

Thu Nov 06, 2014 8:21 pm

-t 0 means it should run forever without taking a picture, so I am not sure what is going on.

Do you have the latest camera software?
Principal Software Engineer at Raspberry Pi (Trading) Ltd.
Contrary to popular belief, humorous signatures are allowed.
I've been saying "Mucho" to my Spanish friend a lot more lately. It means a lot to him.

ethanol100
Posts: 641
Joined: Wed Oct 02, 2013 12:28 pm

Re: raspistill waiting

Thu Nov 06, 2014 10:59 pm

When requesting "-t 0" the "state->frameNextMethod" is set to "FRAME_NEXT_FOREVER" this has a hard coded sleep time of 10sec. Each ten seconds MMAL_PARAMETER_CAPTURE is set to 1.

If you want to take an image as fast as possible, you need to specify a value greater 0.
It will take a minimum of 3 seconds to record a full frame image and save it to PNG. But the timeout should not be set to a value lower than 500, else the auto exposure will not be able to adjust the parameters.

(My pull request https://github.com/raspberrypi/userland/pull/200 addresses an issue, that if -t 0 is set after the "-tl" option the value for the time lapse is ignored and each ten seconds an image is generated...)

makgab
Posts: 33
Joined: Fri Oct 24, 2014 9:28 am

Re: raspistill waiting

Sun Nov 09, 2014 9:06 pm

jamesh wrote: Do you have the latest camera software?
Yes, latest. (Rapsbian-2014-09-09 image with updates)
--
G.

makgab
Posts: 33
Joined: Fri Oct 24, 2014 9:28 am

Re: raspistill waiting

Sun Nov 09, 2014 9:09 pm

ethanol100 wrote:When requesting "-t 0" the "state->frameNextMethod" is set to "FRAME_NEXT_FOREVER" this has a hard coded sleep time of 10sec. Each ten seconds MMAL_PARAMETER_CAPTURE is set to 1.

If you want to take an image as fast as possible, you need to specify a value greater 0.
It will take a minimum of 3 seconds to record a full frame image and save it to PNG. But the timeout should not be set to a value lower than 500, else the auto exposure will not be able to adjust the parameters.
So, I need to take an image. Do I need to use it with parameter "-t 1"?
--
G.

gordon77
Posts: 5036
Joined: Sun Aug 05, 2012 3:12 pm

Re: raspistill waiting

Sun Nov 09, 2014 9:16 pm

makgab wrote:
ethanol100 wrote:When requesting "-t 0" the "state->frameNextMethod" is set to "FRAME_NEXT_FOREVER" this has a hard coded sleep time of 10sec. Each ten seconds MMAL_PARAMETER_CAPTURE is set to 1.

If you want to take an image as fast as possible, you need to specify a value greater 0.
It will take a minimum of 3 seconds to record a full frame image and save it to PNG. But the timeout should not be set to a value lower than 500, else the auto exposure will not be able to adjust the parameters.
So, I need to take an image. Do I need to use it with parameter "-t 1"?
Normally a value > 500

makgab
Posts: 33
Joined: Fri Oct 24, 2014 9:28 am

Re: raspistill waiting

Sun Nov 09, 2014 9:36 pm

gordon77 wrote: Normally a value > 500
Do you mean "-t 600"? And parameter "-tl"?
--
G.

gordon77
Posts: 5036
Joined: Sun Aug 05, 2012 3:12 pm

Re: raspistill waiting

Sun Nov 09, 2014 10:03 pm

makgab wrote:
gordon77 wrote: Normally a value > 500
Do you mean "-t 600"? And parameter "-tl"?
t sets the time the camera waits to take a picture, 500 is the minimum so 600 should work, tl is used for timelapses, see

http://www.raspberrypi-spy.co.uk/2013/0 ... pi-camera/

Return to “General discussion”