Hardware Acceleration seems broken

VLC for Android and Chrome OS specific usage questions
MidnightCoder
Blank Cone
Blank Cone
Posts: 82
Joined: 08 Aug 2008 06:04

Hardware Acceleration seems broken

Postby MidnightCoder » 06 Mar 2017 00:46

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.

SaundersB
Blank Cone
Blank Cone
Posts: 16
Joined: 30 Dec 2016 15:44

Re: Hardware Acceleration seems broken

Postby SaundersB » 08 Mar 2017 16:24

What version if libVLC and git hash are you pulling from?

MidnightCoder
Blank Cone
Blank Cone
Posts: 82
Joined: 08 Aug 2008 06:04

Re: Hardware Acceleration seems broken

Postby MidnightCoder » 08 Mar 2017 19:34

Thanks so much for replying. I pulled the latest (master branch) from git (linked above). How do I tell which libvlc version and git hash now that I have the sources pulled down on a folder on my machine?

SaundersB
Blank Cone
Blank Cone
Posts: 16
Joined: 30 Dec 2016 15:44

Re: Hardware Acceleration seems broken

Postby SaundersB » 16 Mar 2017 19:55

Go back to the command line and run the commands: "git tag" and "git log". When you run git tag it'll provide you with the most up to date tagged release version. Since you've pulled down the most recent master branch, you should have the latest release build. When you run git log, look for the most recent git hash. Use the date to find it. It will be a string of letters and numbers. Also, what device are you running this on? Do you have the supported .so (shared object) files for your device's processor architecture?


Return to “VLC for Android and Chrome OS”

Who is online

Users browsing this forum: No registered users and 18 guests