DJI-Mobile-SDK-Tutorials / iOS-FPVDemo

A demo to introduce how to implement the FPV view, take photo and record video using DJI Mobile SDK.
MIT License
37 stars 24 forks source link

H264 Hardware Decoding #12

Open oarnold opened 6 years ago

oarnold commented 6 years ago

I am trying to enable hardware decoding for the H264 video frames, sent from a drone. Unfortunately this does not seem to work. I added the line "[[VideoPreviewer instance] setEnableHardwareDecode:YES];" before "[[VideoPreviewer instance] start];", in the file "DJICameraViewController.m" . But this will only show the following log message: "FPVDemo[579:506030] can not find idr path func". The application then falls back to the software decoder.

I also posted a topic on the DJI forum, a while ago: http://forum.dev.dji.com/forum.php?mod=viewthread&tid=32401

Steps to reproduce the bug or crash issues

Set enableHardwareDecode to "YES". Start app and wait until preview is shown.

DJI iOS SDK version you are using (Like iOS SDK 3.4, etc)

DJI iOS SDK 4.2.2

DJI Product you are using (Like Phantom 4, Mavic Pro, etc)

DJI Spark and DJI Osmo

iOS system version you are using (Like iOS 8.3, iOS 9, etc)

iOS 10.3.2

iOS device type you are using (Like iPhone5s, iPhone 6, iPad Air Wifi, iPad mini 3 LTE, etc)

iPhone 7/6

Xcode version you are using (Like Xcode 7.0)

Version 8.3.3 (8E3004b)

Ramshandilya commented 6 years ago

Any updates on this? I still see the app falling back to the software decoder.

zzz2016 commented 5 years ago

same issue... Is there any demo?