DJI-Mobile-SDK-Tutorials / Android-VideoStreamDecodingSample

This sample project demonstrates how to use FFmpeg for video frame parsing and to use MediaCodec for hardware decoding on DJI Products.
MIT License
169 stars 80 forks source link

Yuvdatacallback makes video freeze #83

Closed gab933 closed 2 years ago

gab933 commented 2 years ago

Hi, in USE_TEXTURE_VIEW demo, when I click on yuv button, therefore activating yuvdatacallback, the video freezes. How this can be avoided? Actually I could draw a bitmap on textureview with video content, but I noticed it could be expensive in terms of processing. Thank you,

Gabriele

DJI-William commented 2 years ago

This is the design, the video stream cannot be displayed while Yuv data is receiving. This cannot be avoided.