Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

datetime with milliseconds & fast capture #707

Open
sebmueller opened this issue Oct 20, 2021 · 2 comments
Open

datetime with milliseconds & fast capture #707

sebmueller opened this issue Oct 20, 2021 · 2 comments

Comments

@sebmueller
Copy link

Hi guys,

I use the Raspberry (3) together with the HQ camera in an Allsky camera setup.
I want to take long exposure pictures all the night and looking for shooting stars.

Because a shooting star has a very short time to live (1-2 seconds) I tried to bring down the time between 2 pictures in infinite mode (timeout 0, timelapse 0). Also I needed more detailed filenames, when using the datetime option. So I added another function, which creates a more detailed filename (YYYYMMDD_HHMMSS_millisecond), also the functions creates the destination folder, if not exists.

a second change was to remove the waiting time within the timelapse function.

I saw also, the the internal signal handler for USR1 Signal did not start the picture, the function was not complete implemented.

maybe you can review the changes and take it for the next raspistill release.

kind regards
Seabastian

RaspiStill.zip

@6by9
Copy link
Contributor

6by9 commented Oct 20, 2021

Please submit proposed changes as a pull request - https://github.com/raspberrypi/userland/pulls

@domtisdell
Copy link

domtisdell commented Nov 2, 2021

Hi Seabastian, 6by9

I really like the ability to have the milliseconds in the file name for the timelapse option (could do it 'manually' outside of the options list for other configs). Will come in very handy for both astro and UAV mapping. Likewise for the speed increase. Thank you.

As an example, I've trialled the code on a CM4 based platform with dual HQ (IMX477) cameras set to capture raw images with 2x2 binning called via multiprocess. This results in a circa 15ms difference in the time stamps between the two cameras and a circa 0.9 sec delay between frames saving directly to SD card.

I can't unfortunately seem to find a way to add a variable name prefix to the date-time stamp in the filename as I can with the original raspistill code e.g. cmd = 'raspistill -cs 0 -r -n -t 10000 -tl 0 -dt -md 2 -o ' + 'cam0_%d' + '.jpg' The prefix seems to now be set to "img_". Is there a way to use combined variable string + accurate date-time stamps for filenames in the updated code?

Thanks again and kind regards

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

3 participants