Keywords: PSDK liveview stream, IDR frame,decode,GDR,H264
The video stream format obtained by OSDK/PSDK is H264 GDR, which does not contain independent IDR frames, which may cause problems that some decoders cannot decode the stream. PSDK 3.4 has added an API for obtaining IDR frames. When the decoder cannot support decoding GDR format, it can be used to requesting IDR frames.
Support cameras:
M300 + H20/T,H20N
M30/T
M3E/T
API:
/**
* @brief Request the intraframe Frame of Camera H264 Stream by selected position.
* @param position: point out which camera to output the H264 stream
* @param source: point out which sub camera to output the H264 stream
* @return Execution result.
*/
T_DjiReturnCode DjiLiveview_RequestIntraframeFrameData(E_DjiLiveViewCameraPosition position,
E_DjiLiveViewCameraSource source);
Calling the API and the IDR frame will be thrown in the callback registered in DjiLiveview_StartH264Stream,
Add code in the callback to determine whether it is an IDR frame
Comments
0 comments
Please sign in to leave a comment.