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

Re: New features for raspistill command

Tue Feb 25, 2014 7:55 pm

jamesh wrote:Think its OK now, have posted the changes to

https://github.com/JamesH65/userland/tr ... rate_fixes

so please test and comment. If OK, will submit a pull request to the main repo.
Changes are working well, have tested raspivid with

Code: Select all

raspivid -v -ISO 100 -fps 0 -ss 1000000 -o test.h264

and

Code: Select all

raspistill -v -ISO 100 -ss 1000000 -o test.jpg

both get exposure of 1s as requested(and dynamik frame rate of ~1fps for raspivid).
Thank you for the fix.

Honsolgen
Posts: 20
Joined: Mon Nov 25, 2013 8:35 am
Location: Honsolgen - Germany
Contact: Website

Re: New features for raspistill command

Tue Feb 25, 2014 9:37 pm

hmm, does not work for me, maybe I did it wrong with the installation?
I did git clone git ..... and then buildme
raspistill is a new and slightly smaller file, but same version as with the last rpi-update: 1.3.6.

But I´m still getting max 1/5s and Iso 640 :roll:

check the latest shots:
http://honsolgen.myftp.org:82/webcam/raspberry-pi/
Attachments
WinSCP_2014-02-25_22-25-13.png
WinSCP_2014-02-25_22-25-13.png (16.94 KiB) Viewed 13121 times

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

Re: New features for raspistill command

Tue Feb 25, 2014 11:59 pm

Did you checkout the right branch?
I have used:

Code: Select all

git clone https://github.com/JamesH65/userland
cd userland
git checkout framerate-fixes
./buildme
The version number has not changed.

Honsolgen
Posts: 20
Joined: Mon Nov 25, 2013 8:35 am
Location: Honsolgen - Germany
Contact: Website

Re: New features for raspistill command

Wed Feb 26, 2014 8:29 am

yes, my mistake : I was using https://github.com/JamesH65/userland.git

Now it´s working fine. Thanks!

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

Re: New features for raspistill command

Wed Feb 26, 2014 8:39 am

thanks for the version number reminder! Must fix that before I PR the change.
Principal Software Engineer at Raspberry Pi (Trading) Ltd.
Please direct all questions to the forum, I do not do support via PM.

Mark_PH
Posts: 5
Joined: Sun Mar 09, 2014 2:21 pm

Re: New features for raspistill command

Mon Mar 10, 2014 1:50 pm

Thank you for implementing 1s exposure. It works for me and it is a big step forward in my project. It is about monitoring the night sky for bright meteors and also for using the Pi as a webcam showing the cloud cover during the night and all lightning. I want to capture the whole night with 1fps and 1 sec exposure time and then combining every 20s of video (20 images) to a single image that contains the brightest pixel of all frames. The result looks similar to a 20s exposure with a photo camera (e.g. headlights of moving cars become long lines). I already do this since many years with v4l2 and also with UVC webcams under Linux, but now I want to try it with the Raspberry camera.

I made a test video ( http://www.youtube.com/watch?v=PzYGguBz4LI ) with the NoIR camera yesterday and the output shows some of the brighter stars on the night sky. The performance at night is similar or even better compared to the best USB night camera I used so far (Logitech C905). I plan to exchange the lens of the Raspberry camera with a faster lens in a later stage of the project and this will result in even brighter images at night.


Next I need access to the raw pixel of the video.

I first tried to convert the h264 video to a jpg image sequence with mplayer and then to read all jpgs. But this is too slow (about 1 frame every 2 seconds) only for creating the image sequence. Maybe it is possible to use the hardware acceleration for decoding the video. I was taking a look at hello_video.c ( https://github.com/raspberrypi/firmware ... ello_video ) but so far I don't know where I can access the image data and what is the format of the data.

The other option would be to analyze the images during the capture process. Performance should not be a problem, because I capture only with 1 fps. I downloaded the RaspiCam API from here ( http://www.uco.es/investiga/grupos/ava/node/40 ). It works on my Raspberry with and without OpenCV. The only problem is that the exposure time is limited to 0.33s and the images are much too dark (see attachment for comparison). I definitely need 1s.

If there would be easy access to the raw data in raspivid this would be a very much welcome feature. Or maybe somebody can give me a hint what to change in the source code of the RaspiCam API to have an exposure time of 1s instead of 0.33s. Or there are other projects where somebody has managed 1s exposure time and access to the raw data.

Mark
Attachments
compare.jpg
compare.jpg (44.21 KiB) Viewed 12850 times

User avatar
eried
Posts: 89
Joined: Mon Apr 15, 2013 2:11 am
Location: Chile

Re: New features for raspistill command

Thu Apr 17, 2014 3:46 am

There is a way to use the video stream in the signal/enter_key mode in raspistill?
My website: www.ried.cl

Return to “Camera board”