Skip to content

DJI SDK 5.13 - Mini 4 Pro – Unexpected values from CameraKey.KeyVideoResolutionFrameRate #532

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

Open
mitchrsm opened this issue Mar 21, 2025 · 4 comments

Comments

@mitchrsm
Copy link

mitchrsm commented Mar 21, 2025

I'm using the CameraKey.KeyVideoResolutionFrameRate key to retrieve the supported video resolutions and frame rates on the DJI Mini 4 Pro.
The call returns successfully, but the data seems incorrect or incomplete:
[
{"resolution":22,"frameRate":1},
{"resolution":16,"frameRate":1},
{"resolution":10,"frameRate":1},
{"resolution":4,"frameRate":1},
{"resolution":22,"frameRate":2},
{"resolution":16,"frameRate":2},
{"resolution":10,"frameRate":2},
{"resolution":4,"frameRate":2},
{"resolution":10,"frameRate":4},
{"resolution":4,"frameRate":4},
{"resolution":10,"frameRate":5},
{"resolution":4,"frameRate":5}
]

Mapping these enum values, it corresponds to something like:
Resolution | Frame Rate (fps)
4096x2160 | 24, 25
3840x2160 | 24, 25
1920x1080 | 24, 25, 48, 50
1280x720 | 24, 25, 48, 50

This does not reflect the full list of supported combinations available on the Mini 4 Pro, which should include options like:

4K @ 60fps
1080p @ 60fps
And more

I get the same result both programmatically (via SDK) and using the official SDK Sample App (see screenshot below for confirmation).
Is this a bug or I'm doing something wrong ?

Image

@dji-dev
Copy link
Contributor

dji-dev commented Mar 24, 2025

Agent comment from YIGUI LIU in Zendesk ticket #136022:

Dear Developer,
Hello and thank you for reaching out to DJI Innovations.

I'm sorry I can't see the picture you provided. It seems to be truncated.
You can obtain the range of video resolutions and frame rates supported by the camera lens through KeyVideoResolutionFrameRateRange.

KeyVideoResolutionFrameRateRangehttps://developer.dji.com/api-reference-v5/android-api/Components/IKeyManager/Key_Camera_CameraKey.html?search=keyvideoresolutionframeraterange&i=0&#key_camera_videoresolutionframeraterange_inline

We appreciate your email and wish you a wonderful day!
Best Regards,
DJI Innovations SDK Technical Support Team

°°°

@mitchrsm
Copy link
Author

Dear Yigui Liu,

Thank you very much for your reply.

Yes, I'm already using the KeyCameraVideoResolutionFrameRateRange key as suggested. However, as mentioned in my previous message, the values it returns do not seem to be accurate or complete.

Here is the array of results I'm getting:
[
{"resolution":22,"frameRate":1},
{"resolution":16,"frameRate":1},
{"resolution":10,"frameRate":1},
{"resolution":4,"frameRate":1},
{"resolution":22,"frameRate":2},
{"resolution":16,"frameRate":2},
{"resolution":10,"frameRate":2},
{"resolution":4,"frameRate":2},
{"resolution":10,"frameRate":4},
{"resolution":4,"frameRate":4},
{"resolution":10,"frameRate":5},
{"resolution":4,"frameRate":5}
]
Some expected combinations are missing, and a few listed combinations seem unsupported by the camera. For instance, resolution "22" corresponds to "4096x2160", which is not supported on the Mini 4 Pro as far as I know.

I'm attaching the screenshot again, hoping it comes through properly this time.

Thank you again for your support and have a great day!

Image

@dji-dev
Copy link
Contributor

dji-dev commented Mar 24, 2025

Agent comment from YIGUI LIU in Zendesk ticket #136022:

Dear Developer,

We have found the model of Mini 4 Pro and reproduced your problem. Currently, we have already reported the problem to the MSDK R&D team and are waiting for them to evaluate whether to fix it. I will keep you updated if there is any progress.

Best Regards,
DJI Innovations SDK Technical Support Team

°°°

@dji-dev
Copy link
Contributor

dji-dev commented Mar 25, 2025

Agent comment from YIGUI LIU in Zendesk ticket #136022:

Dear Developer,

Regarding the inaccurate acquisition of the camera lens video resolution and frame rate range by using KeyCameraVideoResolutionFrameRateRange on the Mini 4 Pro model, the MSDK R&D team has also confirmed that this is a bug, which is expected to be fixed in the MSDK v5.15.0 version.

Best Regards,
DJI Innovations SDK Technical Support Team

°°°

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

2 participants