Relationship between VideoChannel and VideoDecoder
CompletedHello DJI Developer Support!
I'm looking at the following articles:
- Chapter 5: Video decode: Specifically getting the standard H.265 video stream data via call to addStreamDataListener
- How to solve the video stream decoding failure obtained by StreamDataListener?: Mentions issue with addStreamDataListener due to missing I-frames if not simultaneously using the VideoDecoder
Now we have two video decoders specified, one is for outputting to the Surface mode and the other is for YUV Mode where we attach a listener:
videoDecoderOutputSurface = VideoDecoder(
context,
videoChannelType,
DecoderOutputMode.SURFACE_MODE,
fpvSurfaceView.holder,
fpvSurfaceView.width,
fpvSurfaceView.height,
false
)
videoDecoderYuvData = VideoDecoder(
context,
videoChannelType,
DecoderOutputMode.YUV_MODE,
fpvSurfaceView.holder,
fpvSurfaceView.width,
fpvSurfaceView.height,
false
)
(videoDecoderYuvData as VideoDecoder).addYuvDataListener(yuvDataListener)
Does that mean if attaching addStreamDataListener to get the standard H265 via the VideoStreamManager:
MediaDataCenter.getInstance().videoStreamManager.getAvailableVideoChannel(videoChannelType).addStreamDataListener {}
The YUV or Surface Mode VideoDecoder will automatically request I-frames during the decoding process?
Please sign in to leave a comment.
Comments
1 comment