-
-
Notifications
You must be signed in to change notification settings - Fork 19
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
"-max-resolution" not workig with some models #56
Comments
In fact I found out what the problem is :) On the Z6, the datatype is u8: payload := struct {
Resolution uint8
}{
Resolution: uint8(3),
} |
POC: 2f455e1 |
Many thanks for the report and POC 👍 |
Are you sure this is a quirk? With which Nikons did you test the 64bit value? |
D500, D850, and D7500 want 64bit value and I confirmed it works. (Extra story: I confirmed the max resolution feature in a camera store with permission from a clerk and I found that it doesn't work with Z6 and similar models. I didn't have a courage to ask clerk for a permission to debug my code in the store so I left there 😅) |
Haha, nice! Do you know that you can get the documentation from nikon for all cameras? :) Im not sure whether one is allowed to use them though. |
That's what I'm negotiating with Nikon for. Here is the story. I'm asking a Nikon guy to re-release the SDK under an OSI-approved license.
|
Sorry for being inactive, |
No worries :) thank you for your project! Will test next week |
Thanks for the report fedegratti-san, |
Thank you everyone, now I identified the bug in changing the resolution and it is due to my untested change (Sorry for that! I have no new DSLRs capable of higher resolutions), so I fixed it now in #59 after a brief test in near camera shop. Interestingly, the internal model name is different from what I expected e.g. Z7 II returns |
Hi @puhitaku, thank you so much for your support! I've just tested and it still not working on D3500: I hope the above image helps. Also, if you need me to do some testing on my camera, we can do chat about it. Lastly, do you have a place for donations? I love your work and I would like to give you something! Cheers. |
That's because the resolution value type is "falling back" (as you see in the log) to uint64 I guess and I added a tweak to use uint8 by default. @fedegratti Could you pull the branch
Thank you very much! Donation is very appreciated. The top page of mtplvcap and my GitHub profile page have a link to GitHub Sponsors and Patreon. |
@puhitaku same issue. Is there a way to log more info? Maybe I can add more logs in the core. |
Argh, I temporarily can't think of what to do next ... I should borrow a D3500 (or other model that causes the "closing connection"). |
We could also take a look at the specification. Im pretty sure thats legal. |
According to some other project the D3500 is not capable of higher resolutions: https://github.com/dognotdog/ptpwebcam/blob/9f138716eaf1d14a3505f57b71480ab8577150e5/CAMERAS.md#aps-c--dx |
Hi @puhitaku, were you able to find a workaround for this issue? |
If its max is 640x480, it actually is. But they described the resolution pair with parens. I'm not sure what it means. @fedegratti Unfortunately, no :P
mtplvcap is not so verbose even when all logging options are enabled because I preferred to debug it with an interactive debugger. I think I should improve and increase the log... |
Sorry for neglecting here. And thanks for kind donations. |
@maxammann It's been a while, Z6 is confirmed to accept high resolutions according to a comment in #59 . The fixed version v1.5.1 is released. Thanks for providing me a POC! |
Despite the issue being closed I assume this is the best topic to give resolution feedback for untested models, is that correct? I just tried this out for my |
@JobLeonard Hi Job, I appreciate your feedback. So glad to see that Z fc supports high-res!
Yes, commenting here and creating a new issue are the choices, and "it worked" things will come here since no further discussion is needed in general.
It should be possible to transmit high-res frames like 1920x1080 at 30fps, but Nikon seems not to give LV more than a preview purpose. |
Ah, so they distinguish the live view from their own "webcam" support? That explains it :) Luckily 1024x680 is more than enough for my purposes, the image is so clean it's probably better than most people's HD webcams anyway ;) And as a Linux user, thanks for writing this amazing piece of software! |
Hello, I confirm Nikon Z 8 is working with high resolution, with
|
@evanslify Thank you for reporting it! |
Related: #44
Switching to XGA does not work with mtplvcap. I also tested this with ptpwebcam on a Mac which actually worked.
I uploaded the camera info from ptpwebcam as
camera.txt
:camera.txt
This is from the log of mtplvcap
The text was updated successfully, but these errors were encountered: