This sample code demonstrates how to use FFmpeg for video frame parsing and to use the MediaCodec
for hardware decoding. It will help to parse video frames and decode the raw video stream data from DJI Camera and output the YUV data.
- Android Studio 2.0+
- Android System 4.2+
- DJI Android SDK 4.2
This repository uses Git Large File Storage (git lfs
) for JNI lib storage. Please install git lfs
from here.
After git lfs
installation, you can clone or pull just like normal repository.
Click here for more information on git lfs
.
NOTE: You CANNOT use DOWNLOAD feature because it does not automatically pull from
git lfs
. Please usegit clone
. If you want to clone only latest commit, you can use--depth 1
option ofgit clone
.
For this sample code's explanation, please refer to https://developer.dji.com/mobile-sdk/documentation/sample-code/index.html.
We’d love to hear your feedback on this demo and tutorial.
Please use Github Issue or email oliver.ou@dji.com when you meet any problems of using this demo. At a minimum please let us know:
- Which DJI Product you are using?
- Which Android Device and Android system version you are using?
- Which Android Studio version you are using?
- A short description of your problem includes debugging logs or screenshots.
- Any bugs or typos you come across.
Android-VideoStreamDecodingSample is available under the MIT license. Please see the LICENSE file for more info.