-
Notifications
You must be signed in to change notification settings - Fork 4
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
Fix live view for Nikon DSLRs; Add option for inter-shot delay #98
Conversation
I added some logging and I figured out the root cause of this issue. The background to the issue is that the The issue is that in both cases, a new exposure is started inside the capture loop. This causes a pile up of exposures, since for every exposure taken, two new exposures are started. I fixed this in 3f74ab4. |
This is ready for review now! |
Wait a second. Nikon sends Now during normal scan I don't actually wait for capture complete (only at first run) Lets make sense. Maybe
I think there may be much simpler solution - just ignore |
The order is |
I've enabled changes from maintainers, so you can make changes and I can test them. I think that would be easier. |
I mean - why this only: 3f74ab4 does not fix the issue? |
2nd question - why capture delay is needed. Are both cameras canon and nikon work when delay is 0? |
The fix is 3f74ab4, as you mentioned. The capture delay is just a useful feature. When the exposure setting is 30 seconds, it's nice to have a delay to allow moving the camera in between shots. The live view still works with 0 delay. I can remove it if you want. |
@flyingbarron what do you think? Is delay useful? |
It seems like this is what was described in #64, albeit without specifying the number of photos to be taken. |
I see indeed One small thing before I merge the request: if the delay is 0 don't start the thread. |
Don't start the thread and instead trigger the capture normally? Or just don't start the thread, and don't start the capture? |
I think don't start, here is how:
This way no need to start new thread and I think somewhat more predictable than trigger starting outside. |
Okay, I've made those changes. Take a look and let me know what you think! |
Last question before I merge it. Did you test it with both Nikon and Canon? (I don't have DSLR with me any more) |
I only tested with Nikon, as that's what I have at home. But my friends mostly have Canon, so I will test it with Canon and get back to you. Good call to test both. |
I just gave it a go with a Canon T5i. It looks like this issue was only affecting non-Canon cameras, or maybe only Nikon. Anyway I tested before and after this PR with the Canon and the behaviour is unchanged. The inter-shot delay is working as well. I also tested with my Nikon and the live view now works the same as the Canon. |
Excellent. I merged it. |
Hi, can you please check this fix - apparently your patch wasn't building with android's clang++. So I did a fix but since I don't have DSLR any more please check it and tell me: It is very important since I want to release a version to Android |
I believe it should be working. Can you give me an APK to test? |
I can. Don't you have build environment? |
Take it from there: https://github.com/artyom-beilis/OpenLiveStacker/releases/tag/beta32 I published it as pre-release, if it works Ok I'll push it to Google Play and make if official release |
Sorry I wasn't home, so I figured it'd be easier for you to send an APK. I'll test it and let you know. |
Unfortunately it's crashing when I click the GPhoto button. Is there any way I can get you a crash log? I'm not very familiar with Android development. Also, what was the error it was giving you before? |
It was build error. Not runtime error. Did you download version 32? What Android version do you have? |
Does it crash on sim or android/internal camera? |
Yes I downloaded version 32. I'm on Android 14. It doesn't crash on sim, and it doesn't crash on internal camera either. |
Please check "Enable Camera Debugging" and start gphoto. There should be gphoto log in debug directory. |
It doesn't create a log, I guess it crashes before anything gets logged. |
Can you please uninstall the app and do clean install of the APK. |
Ok it looks like it isn't related to GPhoto since touptek or USB accessings apps crashing on Android 14... Thanks. I'm glad I tested it with you before uploading to Google Play. |
Clean install doesn't help, same result. Ah, good to know that it's not related to GPhoto. |
Can you please test new version 33: https://github.com/artyom-beilis/OpenLiveStacker/releases/tag/beta33 I got Android 14 and fixed the issues - just need to check that DSLR is working properly (since I don't have one anymore) before I upload to Google Play |
Sure, I'm pretty busy today. I'll try to get to it by the end of the day. If not today, then tomorrow. |
A friend of mine who owns Canon had already tested it. |
Ah okay that's good, is it working? |
yes it is. Feel free to download and use. |
Perfect, thank you so much. |
This PR fixes the issue noted in this discussion (the live view getting increasingly delayed).
This PR also adds an option to add a delay in between shots for DSLRs. The rationale behind this option is that I often have my exposures set to 30 seconds, which means that if there is no delay in between shots, I have no time to move my camera if I want to (since it'll just be a blurry mess if I do). I wasn't sure if this option would be useful for other types of cameras, nor would I be able to test it for other types of cameras, so I just left it for DSLRs.
Finally there were two tab characters I got rid of.
Thank you for this software!