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

Video works intermittently (rarely) with M600 pro with Zenmuse z3 camera #74

Closed andrewdittmer closed 3 years ago

andrewdittmer commented 3 years ago

The video stream renders reliably for other drones and cameras, however, it only works occasionally with Matrice 600 pro with Zenmuse z30. Could you please help us understand how we can make this work reliably? Thanks very much for any help.

andrewdittmer commented 3 years ago

It turns out setting the lightbridgelink bandwidth allocation for lb video input port make it work reliably.

// If M600 Pro, do this
lightbridgeLink.setEXTVideoInputPortEnabled(true) {
    baseProduct.airLink.lightbridgeLink.setBandwidthAllocationForLBVideoInputPort(0.8f) {
           // Do stuff
    }
}