Kodi Community Forum
Android how to add hardware video decoding support - Printable Version

+- Kodi Community Forum (https://forum.kodi.tv)
+-- Forum: Support (https://forum.kodi.tv/forumdisplay.php?fid=33)
+--- Forum: General Support (https://forum.kodi.tv/forumdisplay.php?fid=111)
+---- Forum: Android (https://forum.kodi.tv/forumdisplay.php?fid=164)
+---- Thread: Android how to add hardware video decoding support (/showthread.php?tid=143640)

Pages: 1 2 3 4


how to add hardware video decoding support - adolph - 2012-10-26

It's really a good news that XBMC for android can run on our device. But it seems that our device has to use software decoding. I want to add hardware video decoding support, but I don't know how to begin this work. I found lots of guys make xbmc for android to use external player in android, I want to know whether it is a good method. Or there are some standard methods for me to follow?

Any help will be appreciated.


RE: how to add hardware video decoding support - Ned Scott - 2012-10-26

Hardware decoding support is still being worked on.


RE: how to add hardware video decoding support - adolph - 2012-10-26

Thank you, Ned. But I think we have to add hardware video decoding support ourselves for various hardware platforms. So I don't know what you mean by "Hardware decoding support is still being worked on".


RE: how to add hardware video decoding support - Ned Scott - 2012-10-26

The only way to add hardware decoding support for various hardware platforms is to code new hardware decoding players in XBMC. It's not something a normal user can do.

Currently only some AMLogic ARM chipsets are supported. IIRC, the hope is to cover most of the rest using an OpenMax implementation.

This is why some users are using eternal players (a less-than-elegant work around) for the time being.

That is, unless you are a coder and you are asking how to help with making the additional hardware decoding players.


RE: how to add hardware video decoding support - adolph - 2012-10-26

I know OpenMax, and android also try to use Openmax to adapt to various hardware platforms. But as far as I know, not so many devices have OpenMax interfaces just like our device.

I want to write new hardware decoding player for our hardware device. I just don't know how to start this. And I So any references I can follow?

And by the way, I know XBMC team use Pivos XIOS for their xbmc-android work. But I didn't find the detail about that, especially about the hardware player's source code.


RE: how to add hardware video decoding support - Montellese - 2012-10-26

The XIOS-specific player in XBMC is located in xbmc/cores/amlplayer so that's probably where you want to look if you are interested in the solution used for the Pivos XIOS. But it is highly AMLogic and XIOS specific but it might give you an idea of how to write your own player for your hardware.


RE: how to add hardware video decoding support - adolph - 2012-10-26

Montellese, thank you. So I will have a look at amlplayer.


RE: how to add hardware video decoding support - davilla - 2012-10-26

https://github.com/xbmc/xbmc/tree/master/tools/android/depends/android-sys




RE: how to add hardware video decoding support - sonach - 2012-10-27

I have the same issue with adolph, since our device doesn't provide OpenMAX interfaces either. So the solution maybe just like AMLPlayer.
But I still have one question:
Is there any possibility to enable XBMC hardware decoding with stagefright instread of OpenMAX? AFAIK, stagefright is more common than OpenMAX these days(If I am wrong, correct me please).



RE: how to add hardware video decoding support - Memphiz - 2012-10-27

We tried to enable stagefright support in ffmpeg already but didn't get it to work (missing symbols during runtime).


RE: how to add hardware video decoding support - sonach - 2012-10-28

(2012-10-27, 18:47)Memphiz Wrote: We tried to enable stagefright support in ffmpeg already but didn't get it to work (missing symbols during runtime).
Good job!
Is it already in github xbmc source tree?
Maybe we will try to evalute this solution, at least on our device.



RE: how to add hardware video decoding support - adolph - 2012-10-29

hi, Memphiz, any other details about your work I can follow?


By the way, you say you use stagefright to support ffmpeg, so I want to know whether the interfaces which stagefright offers is enough for the essential functions?


AW: how to add hardware video decoding support - Montellese - 2012-10-29

Did you guys actually read Memphiz' post? He clearly stated that we tried to get libstagefright working for ffmpeg but that it didn't work out. Actually 3 of our devs (including myself) tried it independently and we all failed. Obviously none of that work made it into master as it doesn't work.


RE: AW: how to add hardware video decoding support - sonach - 2012-10-29

(2012-10-29, 09:38)Montellese Wrote: Did you guys actually read Memphiz' post? He clearly stated that we tried to get libstagefright working for ffmpeg but that it didn't work out. Actually 3 of our devs (including myself) tried it independently and we all failed. Obviously none of that work made it into master as it doesn't work.
Thank you three for the hard work!
I am very interested in this solution so are eager to know some details about it. If this solution is suitable to us, we will spend more time to dig into it. Wish we could share the work with the community instead of just waiting for community...

That is the reason for the questions Smile




RE: how to add hardware video decoding support - adolph - 2012-10-29

ok, Montellese. Now I know you use libstagefright for ffmepg and it doesn't work, but why you use ffmpeg? Can I only use libstagefright to make to code new hardware decoding players in XBMC?