Page 1 of 1

how to enable videotoolbox?

Posted: 28 Jan 2016 17:38
by lintw
Using xcode7.2 iPhone 6s/iOS 9.2
on OS X Yosemite 10.10.5
src used downloaded from git (https://code.videolan.org/videolan/VLCKit.git)

how to enable videotoolbox? (turn on h.264 hardware acceleration)

i've already remove videotoolbox and cvpx_i420 from build.sh ([source code path]/MobileVLCKit/ImportedSources/vlc/extras/package/ios/build.sh)
and use compile command: ./sh -x buildMobileVLCKit.sh -f -n

but, still can't playback mov file smoothly (mov file is recorded from iphone 6s)
any idea? (How to check whether enable hardware acceleration?)

Thanks

Re: how to enable videotoolbox?

Posted: 28 Jan 2016 18:44
by fkuehne
VideoToolbox is enabled by default on the master branch and requires both modules you mentioned. It is not enabled on the 2.7-iOS branch and won't be.

You can check whether HW acceleration is enabled or not through VLCKit's debug log, which you can enable on the respective VLCLibrary instance.