Hardware acceleration is not work on Android
Posted: 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:
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.
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
Is it possible to make libVLC show available hardware decoders? Please help me.