Amlogic Open Source Video Decoder Driver Coming Soon for S905, S905X and S912 Processors


#1

Following on from the article posted at cnx-software, as some of you may already know BayLibre has been working on adding support for Amlogic SoC’s to the mainline linux kernel.

Whilst this is still some way off from being usable in our releases, there is great progress being made by BayLibre and Maxim Jourdan who has recently submitted a patch set to add support for hardware video decoding.

To date support has been added for MPEG 1/2/4, H.263, H.264, MJPEG, HEVC 8-bit (partial) hardware video decoding with HEVC 10-bit, VP9, VC1 in the to-do list.

The future is certainly looking bright for Amlogic based devices.


#4

So this means that CE will be able to jump to the new kernel mainline 4.X instead of 3.X and we won’t have to stick with the old one with tons of patches? :smiley:


#5

Eventually, yes. We’ll be forced to make the switch down the line anyway, when we get to Kodi 19.


#6

Yah, just wanted to confirm this. I know that if this driver wouldn’t happen, then some users using ie. S912 (like me), would be forced to stick to Kodi 18. Now this shouldn’t be a problem, which makes me happy (although I’m pretty sure that my chinese box will be dead 3 times before Kodi 19 happens) :wink:


#7

Will Netflix then be decode in gpu (1080p / 4K)?


#8

Would this also enable playback of full 3D MVC?


#9

I would guess that at least initially there would be a loss of functionality with the move to mainline, so I would expect a period of many months before the Kodi experience matched that achieved with the 3.14 kernel.

Progress to a stable experience is likely to be painfully slow, and for most people sticking with the 3.14 kernel would be the best thing.

Shoog


#10

To be honest right now I don’t care about kernel 4.X, however I do care about possibility of porting this new driver to existing kernel 3.14 so we could have hardware accelleration in CE :slight_smile: I’m not sure if this would be even possible.


#11

Don’t we already have hardware acceleration for video?

I’m just hoping for better UI performance. Otherwise, CE is great as it is.


#12

3.14 will not have the V4L infrastructure for the driver and no one is going to go to the trouble of backporting it when the focus will be on getting AML mainline kernel stable. When the driver is mature it will force a migration to mainline, it is all the other subsystems (such as power management) which may need tweaking before that matches the functionality of 3.14 kernel. However a lot of that work should be already done by the people at Ubuntu Canonical.

The experience of other opensource video drivers, such as the Nouveau driver, shows that it took years for it to approach the performance of the closed source drivers from Nvidea, so moving to mainline might not be what people expect.

It is only the fact that the Kodi team is going to force everyones hand that will make the transition inevitable, many would prefer to stick to what works.

Shoog


#13

Does this mean that on S912 boxes like the Minix U9 we’ll be able to watch Netflix from the Netflix addon in Kodi?


#14

No, it doesn’t.


#15

Concretely, in the long term, what can it bring for the user?


#16

The ability to switch to mainline kernel, and have Kodi 19 work on it.
It would also get rid of a bunch of other issues we have with the ancient 3.14 kernel.


#17

what the hell is needed for the S912 SoC to perform like S905 for streaming?
Thought with this driver it is solved…


#18

Cool ! Thanks.


#19

The VPU based acceleration with V4L is only one part of the mainline game, and the simplest one also.
We need GLES 2.0 mainline DRM, Lima project is working on it, but the status is quite far from being usable is general deployment, at least as far as I know.
Also, the Mali in the S912 is supported by Panfrost project that is even behind the Lima status


#20

Looks like things are getting pretty neat for V4L :slight_smile:

Also, it seem Linux DRM is almost there: https://twitter.com/librecomputer/status/1047991238266441729