LibVLC android no hardware acceleration

Tommy Tran ducprosoft at yahoo.com
Tue Mar 14 02:34:48 CET 2017


Hi everyone,
I have an android app that uses libvlc. I compiled the latest source (master branch) from https://code.videolan.org/videolan/vlc-android.git <https://code.videolan.org/videolan/vlc-android.git> back in December 2016 and everything works fine. I recently pull the latest source (hoping to get some bug fixes) from the same git repository (master branch) and it compiled fine but when running using the updated libvlc, I get choppy video playback. The condition is worst when a 4K video, which tells me that it’s related to GPU acceleration is not being used. Simply swapping out to use the older libvlc works fine again.

I don’t pass any option into the LibVLC instance and I believed the default should already be “--avcodec-hw=any”.  I’m not seeing anything suspicious in the log cat. Any idea?

Here is the log:
E/VLC: [b8aa1418/3916] android_audiotrack audio output: GetMethodID(AudioTrack.writeV23) failed
E/VLC: [b8aa1418/3916] android_audiotrack audio output: GetMethodID(AudioTrack.writeShortV23) failed
E/VLC: [b8aa1418/3916] android_audiotrack audio output: GetStaticFieldID(AudioFormat.ENCODING_DTS) failed
E/VLC: [b8aa1418/3916] android_audiotrack audio output: GetStaticFieldID(AudioFormat.ENCODING_DTS_HD) failed
E/VLC: [b8aa1418/3916] android_audiotrack audio output: GetStaticFieldID(AudioFormat.ENCODING_DOLBY_TRUEHD) failed
E/VLC: [b87d4208/3cc3] filesystem stream: cannot open file /vendor/etc/fallback_fonts.xml (No such file or directory)
E/VLC: [b87d4208/3cc3] core stream: File reading failed
E/VLC: [b87d4208/3cc3] core stream: VLC could not open the file "/vendor/etc/fallback_fonts.xml" (No such file or directory).
E/VLC: [b8203e38/3cc3] core spu text: no suitable access module for `file:///vendor/etc/fallback_fonts.xml'
E/VLC: [b83a6198/3cce] android_window window: request 1 not implemented
E/VLC: [b83a6198/3cce] android_window window: request 1 not implemented
E/VLC: [b83a6198/3cce] android_window window: request 0 not implemented
E/VLC: [b83a6198/3cce] android_window window: request 0 not implemented
E/VLC: [b83a6198/3cce] android_window window: request 1 not implemented
E/VLC: [b8b0cfc8/3cc3] filesystem stream: cannot open file /vendor/etc/fallback_fonts.xml (No such file or directory)
E/VLC: [b8b0cfc8/3cc3] core stream: File reading failed
E/VLC: [b8b0cfc8/3cc3] core stream: VLC could not open the file "/vendor/etc/fallback_fonts.xml" (No such file or directory).
E/VLC: [b8203e38/3cc3] core spu text: no suitable access module for `file:///vendor/etc/fallback_fonts.xml'
E/ACodec: [OMX.MTK.VIDEO.DECODER.HEVC] storeMetaDataInBuffers failed w/ err -1010
E/VLC: [b81f5370/3ce0] mediacodec decoder: output: 259 unknown, 3840x2160 stride 3840 2160, crop 0 0 0 0
E/VLC: [b87648f8/3cc3] core decoder: buffer deadlock prevented
E/VLC: [b83a6198/3cce] android_window window: request 3 not implemented
E/VLC: [b8b09138/3cc3] core input: ES_OUT_SET_(GROUP_)PCR  is called too late (pts_delay increased to 1500 ms)
E/NdkMediaCodec: sf error code: -38
E/VLC: [b81f5370/3cc3] core decoder: buffer deadlock prevented
E/NdkMediaCodec: sf error code: -38
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://mailman.videolan.org/pipermail/vlc-devel/attachments/20170313/b4d3b60a/attachment.html>


More information about the vlc-devel mailing list