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

Allwinner processors aren’t the only ones getting an open source hardware video decoding / encoding support in Linux, as Maxim Jourdan recently submitted a patchset to Amlogic Linux mailing list adding a video decoder driver to some Amlogic processors.

Amlogic Open Source Video DecoderThe driver is written around the V4L2 M2M framework and currently supports MPEG 1/2/4, H.263, H.264, MJPEG, and (partially) HEVC 8-bit codecs. The driver has been tested with FFmpeg, GStreamer, and Kodi, and currently works on S905 (Meson GXBB), S905X/W/D (Meson GXL), and S912 (Meson GXM) processors.

Those processors also support HEVC 10-bit, VP9, and VC1 codecs, and while those are implemented yet, they should be in the future.

A separate commit adds support for “Overlay plane for video rendering” which support various YUV layouts and a non-alpha RGB32 layout, and will be useful for Kodi and LibreELEC ports.

I came to learn about those two patchsets thanks to Neil Armtrong (Bay Libre) who also mentioned he will talk about Amlogic open source video decoder and Kodi/LibreELEC ports during a session at Embedded Recipes 2018 taking place on September 24-25 in Paris, France.

Support CNX Software - Donate via PayPal or become a Patron on Patreon

13
Leave a Reply

avatar
3 Comment threads
10 Thread replies
1 Followers
 
Most reacted comment
Hottest comment thread
11 Comment authors
JerrychelobakaSKdvl36DurandA Recent comment authors
  Subscribe  
newest oldest most voted
Notify of
m][sko
Guest
m][sko
Joe
Guest
Joe

I think most there chip manufacturer noted open source can make money for now

Cyk
Guest
Cyk

This code wasn’t released by Amlogic, Maxime Jourdan wrote it by using trial and error.
There’s no publicly available documentation of the video decoding unit.

bombino
Guest
bombino

U might clear things up for me . Now the video decoding unit is separate from thee Mali GPU correct ? what is this chip exactly called and what is the pros of opensourcing it

kkk
Guest
kkk

Video decoding was never done by Mali. So-called GPU Video Decoding applies only to PCs! In ARM SoCs there is a separate part of SoC which task is to decode and encode videos.

dvl36
Guest
dvl36

> Video decoding was never done by Mali.

How about Mali-Vnnn VPUs?

chelobaka
Guest
chelobaka

There’s virtually no info about Mali Vxxx in real SoCs. It seems that ARM asks too much for this IP so vendors like Amlogic and Allwinner prefer to design their own VPU solutions.

dvl36
Guest
dvl36

> There’s virtually no info about Mali Vxxx in real SoCs.

On Actions S500 at least Mali “vde driver” probed and loaded successfully:

[ 2.964416] #### insmod vde driver!
[ 2.968232] mali0 b0280000.vde: Probe vde device
[ 2.972851] info ic_type 0x5206
[ 2.976115] vde->irq =52
[ 2.978710] cputherm_register_notifier list 0
[ 2.986207] mali0 b0280000.vde: resource: iomem: [mem 0xb0280000-0xb0280107]2

(source: https://www.cnx-software.com/2015/10/14/linux-quick-start-guide-for-roseapple-pi-board-based-on-actions-semi-s500-processor/)

And it seems that “vde” in this case mean “video decoder”.

DurandA
Guest

What competitive advantage do manufacturers get in keeping the video decoder closed source?

SK
Guest
SK

Cheaper for them – less effort, less support, etc – just the bare minimum to actually claim their hardware has capability X (and only on the platforms they care about – Android)

Cyk
Guest
Cyk

They often buy third party IP, and are not allowed to distribute it’s details.
Also, they may have unintentionally violated someone else’s IP (happens all the time), but without available documentation, it’ll be hard to prove.