Support Amlogic S802-H Mali-450...

VLC for Android and Chrome OS specific usage questions
wcoder
Blank Cone
Blank Cone
Posts: 26
Joined: 30 Mar 2014 12:56

Support Amlogic S802-H Mali-450...

Postby wcoder » 19 Oct 2014 20:20

Hi,

I test VLC from googleplay and a recompiled one from repository and hardware acceleration don't seems to work...

After some research it seems that VLC don't support Amlogic hardware decoding because it don't expose hardware acceleration interface using MediaCodec...

After some research, it's seems that theres a version of ffmpeg for AMLogic : amffmpeg but the only version i found is 2 year old... So i suppose that Amlogic S802-H, Mali-450 is not supported...

Is there some one that work on the subject or is someone plan to do the job ?

Some one do the job for XBMC and it's work on my target, so it's possible to do the job and i can test it on my device...

I already successfully write 2 out-of-tree modules for my training : audio\video that allow me to extract raw data and inject it on my own renderer engine :
- OS : Debian, Win7, Android 4.4.2
- Audio : XAudio2 \ Alsa \ OpenSL ES
- Video : OpenGL \ OpenGLES - Same code different header for vertex\pixel shader.
- Audio is now sync why video...

If no one work on the subject, is there's some one that can drive\help me to do the job (VLC in-tree-module same license than LibVLC) ?
I would like to try to do\participate to the job, i know that it's a hard job, i have the motivation, but no clue for the moment to start...


WCdr

edwardw
Big Cone-huna
Big Cone-huna
Posts: 2346
Joined: 24 Jun 2012 23:36
VLC version: 3.0.0-git

Re: Support Amlogic S802-H Mali-450...

Postby edwardw » 21 Oct 2014 04:23

I tried to do one earlier this year, although they have virtually no documentation...

cat_baxter
Blank Cone
Blank Cone
Posts: 24
Joined: 07 Sep 2014 19:00

Re: Support Amlogic S802-H Mali-450...

Postby cat_baxter » 22 Oct 2014 11:40

The only solution that I've found it to disable HW acceleration for amlogic devices - so now I have smooth video and audio on most HD streams (not on all). In order to fix VLC sources you need to patch HWDecoderUtil.java:

Code: Select all

new DecoderBySOC ("ro.hardware", Decoder.NONE, new String[] { "amlogic", // amlogic }),
The fixed HWDecoderUtil.java

edwardw
Big Cone-huna
Big Cone-huna
Posts: 2346
Joined: 24 Jun 2012 23:36
VLC version: 3.0.0-git

Re: Support Amlogic S802-H Mali-450...

Postby edwardw » 22 Oct 2014 16:22

Which just means using software decoding.

cat_baxter
Blank Cone
Blank Cone
Posts: 24
Joined: 07 Sep 2014 19:00

Re: Support Amlogic S802-H Mali-450...

Postby cat_baxter » 23 Oct 2014 14:53

You're right - it's the only way to get any video output usin VLC on amlogic SoC at the moment - and it's way better than the blck screen :) By the way - have you tried to report amlogics devs about the problem (MediaCodec interface)?

edwardw
Big Cone-huna
Big Cone-huna
Posts: 2346
Joined: 24 Jun 2012 23:36
VLC version: 3.0.0-git

Re: Support Amlogic S802-H Mali-450...

Postby edwardw » 24 Oct 2014 00:41

Well, if SW decoding works, then I suppose there's no reason not to use it :)

AMLogic doesn't support MediaCodec for their chipset, the last time I tried it.

cat_baxter
Blank Cone
Blank Cone
Posts: 24
Joined: 07 Sep 2014 19:00

Re: Support Amlogic S802-H Mali-450...

Postby cat_baxter » 24 Oct 2014 11:17

The problem that you can't switch VLC to SW decoding in VLC application (and the user gets the sound only because VLC changes HW_ACCELERATION_AUTOMATIC -> HW_ACCELERATION_FULL automatically and not to HW_ACCELERATION_DISABLED as before).


Return to “VLC for Android and Chrome OS”

Who is online

Users browsing this forum: No registered users and 25 guests