dji-sdk / Mobile-SDK-iOS

DJI Mobile SDK for iOS: http://developer.dji.com/mobile-sdk/
Other
578 stars 255 forks source link

Inconsistency in the list of supported resolution and frame rate values for different video standards #387

Open india2sarthak opened 4 years ago

india2sarthak commented 4 years ago

We have found an inconsistency in the list of supported resolution and frame rate values for NTSC/PAL analog television standards mentioned under the setVideoResolutionAndFrameRate method.
The reference list does not contain any decimal FPS values.

However, from the list of supported FPS values, we can clearly see that decimal FPS values are supported.

For eg, the Zenmuse X5S camera is known to support setting resolution with decimal frame rates like 23.976, 29.29, etc.

Is there someplace we can refer to get the list of supported resolution & frame rate pairs for all the drones?

Or should we round-off the decimal FPS values before setting them?

Thanks a lot for helping :)

zyphs21 commented 4 years ago

Hi, @india2sarthak, I think you can use the DJICameraCapabilities to get the supported resolution & frame rate pairs

DJISDKManager.product()?.camera.capabilities.videoResolutionAndFrameRateRange()