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

Demo custom decoder not working #56

Open 4ayo opened 4 years ago

4ayo commented 4 years ago

When trying the custom decoder, i have a black square all the time.

Using Mavic pro Nexus 5x on Android 8.1.0 Android studio 3.3.1

When calling initCoded() for the first time, width and height are 0 and don't seem to be initialized anywhere (?). If I set this : this.width = 1280; this.height = 720;

I get these warnings / errors. I don't know it it's because of these that it's not working.

Logcat

Notice that the three other buttons are working (Demo TextureView, Demo SurfaceView and YUV Screen shot).

Thanks in advance for any help.

msunshinelxl commented 4 years ago

The same to me I think it's a bug, the format is not filled with any image data: image