Hardware acceleration is not work on Android

This forum is about all development around libVLC.
Yourname
New Cone
New Cone
Posts: 6
Joined: 15 Oct 2016 00:42

Hardware acceleration is not work on Android

Postby Yourname » 31 Oct 2016 04:16

Hello. I need help. I use latest libVLC on Android 4.1.2 and it does not use hardware acceleration. Setting option --avcodec-hw=any and setHWDecoderEnabled(true, true) does nothing, but device support acceleration.
Some strings from logcat:

Code: Select all

core decoder: looking for decoder module matching "all": 40 candidates avcodec decoder: CPU flags: 0x0000003f avcodec decoder: allowing 4 thread(s) for decoding avcodec decoder: codec (mpeg2video) started core decoder: using decoder module "avcodec" ts demux: Default program is 1 ts demux: enabling pid 611 from program 1 ts demux: enabling pcr pid 611 from program 1 ts demux: * pid=102 type=0x4 ISO/IEC 13818-3 Audio ts demux: - ES descriptor tag 0xa ts demux: found language: rus ts demux: => pid 102 has now es fcc=mpga core packetizer: looking for packetizer module matching "any": 24 candidates core packetizer: using packetizer module "mpeg_audio" core decoder: looking for decoder module matching "all": 40 candidates mpg123 decoder: mpg123 error: Invalid sample rate specified. (code 3) avcodec decoder: CPU flags: 0x0000003f avcodec decoder: codec (mp2) started
Video is playing, but slowly and splitted to green squares and libVLC send to logcat messages like ts demux: discontinuity received 0xd instead of 0xf (pid=611)
Is it possible to make libVLC show available hardware decoders? Please help me.

Rémi Denis-Courmont
Developer
Developer
Posts: 15228
Joined: 07 Jun 2004 16:01
VLC version: master
Operating System: Linux
Contact:

Re: Hardware acceleration is not work on Android

Postby Rémi Denis-Courmont » 31 Oct 2016 07:45

libavcodec is not used for hardware acceleration on Android.
Rémi Denis-Courmont
https://www.remlab.net/
Private messages soliciting support will be systematically discarded

Yourname
New Cone
New Cone
Posts: 6
Joined: 15 Oct 2016 00:42

Re: Hardware acceleration is not work on Android

Postby Yourname » 31 Oct 2016 14:52

How to enable hardware acceleration?

Jean-Baptiste Kempf
Site Administrator
Site Administrator
Posts: 37523
Joined: 22 Jul 2005 15:29
VLC version: 4.0.0-git
Operating System: Linux, Windows, Mac
Location: Cone, France
Contact:

Re: Hardware acceleration is not work on Android

Postby Jean-Baptiste Kempf » 07 Dec 2016 00:37

Look at the VLC/Android code.
Jean-Baptiste Kempf
http://www.jbkempf.com/ - http://www.jbkempf.com/blog/category/Videolan
VLC media player developer, VideoLAN President and Sites administrator
If you want an answer to your question, just be specific and precise. Don't use Private Messages.


Return to “Development around libVLC”

Who is online

Users browsing this forum: No registered users and 11 guests