I compiled VLC for android from source and use the AAR file in my own android project. When updated to use the latest source (as of today from https://code.videolan.org/videolan/vlc-android.git), video playback is choppy and I see very high cpu usage when playing a 4K file. I did the same w/ the above code from git in September 2016 and the compiled AAR works fine w/o no choppy video. The logcat doesn't suggest anything that might have went wrong.
I tried w/ and w/o the --avcodec-hw option w/ no luck:
options.add("--audio-time-stretch"); // time stretching
options.add("--avcodec-hw=dxva2"); //also tried any, dxva
options.add("-vvv"); // verbosity
options.add("--network-caching=20000");
I tried compiling w/ NDK13 and NDK14 (stable), same choppy video result.
I tried installing the compiled VLC APK and the VLC app plays the 4K video smoothly. This suggests that the latest code from the git above is working correctly and maybe my --avcodec-hw option is incorrect or I might be missing some other options?
Appreciate any help on this issue.