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
170 stars 81 forks source link

Save the buffered data into a JPG image file will delay #22

Open jamesxienctu opened 6 years ago

jamesxienctu commented 6 years ago

Hi, all: When I press "Screen Shot" button, it will save buffered data into a JPG image file steadily. The frequency is about one JPG file per second. Does MainActivity.screenShot() method have code to limit the freqeuncy? Or my Android device causes this delay problem?

DJI Android SDK version is 3.5.1. My DJI product is Phantom 3 Professional. My Android system version is Android 6.0. My Android device is Nexus 7. My Android Studio version is 2.2.3. 3 screen shot

oliverou commented 6 years ago

Hi @jamesxienctu, we help to fix some bugs in the sample, please get the latest code and check if the issues still exist.

Djacob502 commented 6 years ago

Using the latest version, I'm getting around 30 frames per second. I'm wondering if other folks are getting the same frame rate.

jamesxienctu commented 6 years ago

Okay, I will try. Thank you.