Jump to content

AMLogic S905W (TX3 Mini) Hardware H.264 Encoding?


Milan Kragujevic

Recommended Posts

I'd like to do hardware-accelerated H.264 encoding on TX3 Mini. I compiled latest Armbian with kernel 5.1.0, however it is not working, when I try to use a h264_v4l2m2m encoder, I get this error:

 

[h264_v4l2m2m @ 0xaaaae3bb2a20] driver 'meson-vdec' on card 'Amlogic Video Decoder'
[h264_v4l2m2m @ 0xaaaae3bb2a20] Could not find a valid device
[h264_v4l2m2m @ 0xaaaae3bb2a20] can't configure encoder

 

On lsmod, I only see amlogic-vdec, not venc[oder]...

Link to comment
Share on other sites

On 5/31/2019 at 10:00 AM, Milan Kragujevic said:
 

I'd like to do hardware-accelerated H.264 encoding on TX3 Mini. I compiled latest Armbian with kernel 5.1.0, however it is not working, when I try to use a h264_v4l2m2m encoder, I get this error:

 

[h264_v4l2m2m @ 0xaaaae3bb2a20] driver 'meson-vdec' on card 'Amlogic Video Decoder'
[h264_v4l2m2m @ 0xaaaae3bb2a20] Could not find a valid device
[h264_v4l2m2m @ 0xaaaae3bb2a20] can't configure encoder

 

On lsmod, I only see amlogic-vdec, not venc[oder]...

 

Hi,

 

 the mainline kernel only supports hw decoding (yet). I hope it will change soon :)

Link to comment
Share on other sites

No way to hardware encoding with aml chipset :

the hack of hardware decoding use the V4L2 M2M and it use less cpu it don t use all the hardware  decoding.  ( i make lot of tests ).

the autor of the hack have stopped To work on it. ( check with google ely, french guy, and v4l2 m2m you can find a vidéo with beautifull explain  )

If nobody continue and work on the encoding the only way it to make in software.

With my test only s912 can make some encoding but i wait the new s922 To make new tests of encoding h264  with an odroid n2 or the hardware tested by balbes150.   

 

Another hope is rockchip have a roadmap for the mpp ffmpeg plugin to hardware encode  for this years ... 

Link to comment
Share on other sites

8 hours ago, martos said:

No way to hardware encoding with aml chipset :

the hack of hardware decoding use the V4L2 M2M and it use less cpu it don t use all the hardware  decoding.  ( i make lot of tests ).

the autor of the hack have stopped To work on it. ( check with google ely, french guy, and v4l2 m2m you can find a vidéo with beautifull explain  )

If nobody continue and work on the encoding the only way it to make in software.

He didn't stop the work. It now focuses on the more important decoding tasks that a much larger number of users need.

Link to comment
Share on other sites

Perfect if "elyotna"continue  and yes i see it :

https://lkml.org/lkml/2019/6/6/535

and i understand the decoding is the most important at this time.

And if amlogic help :

"We have received a redistributable license from Amlogic and the firmwares have been merged in linux-firmware"

 

So i continue to wait, because if decoding use the complete hardware , i have more cpu to encode ... ;)

 

Thank you for giving me hope !

 

my news read :

https://patchwork.kernel.org/project/linux-amlogic/list/

Link to comment
Share on other sites

If i read correctly ( http://linux-meson.com/doku.php ) , the S922x is a g12b, no yet implemeted ( i see some odroid guy dev work on it) but :

v5.3 (work in progress)

...

G12B: add support for the S922X SoC

and

G12B : Identical to GXL but with Quad Cortex-A73 + dual Cortex-A53 cores

S922X: mostly pin compatible with S905X2

And if i read correctly , lot of similarity with S905X2, so it could be quick (https://patchwork.kernel.org/cover/10964079/ ) ...

 

to come back with the subject, i wait the new kernel and i try to transcode with my amlogic ( i have s912, TX3 Mini ) and come back with result.
 

Link to comment
Share on other sites

3 hours ago, martos said:

If i read correctly ( http://linux-meson.com/doku.php ) , the S922x is a g12b, no yet implemeted ( i see some odroid guy dev work on it) but :

v5.3 (work in progress)

Libreelec at S922 been working with the new kernel 5.1 and HW. :)

 

https://yadi.sk/d/0MvYbltA8TqxUw

 

 

and Armbian for s922

 

https://yadi.sk/d/YYmDbnNv4wLJaA

Link to comment
Share on other sites

kernel request :

https://www.phoronix.com/scan.php?page=news_item&px=Linux-5.3-Media-Updates

 

- new Atmel microship ISC driver;
- coda has gained support for mpeg2 and mpeg4;
- cxusb gained support for analog TV;
- rockchip staging driver was split into two separate staging drivers;
- added a new staging driver for Allegro DVT video IP core;
- added a new staging driver for Amlogic Meson video decoder;
- lots of improvements and cleanups.

 

Must wait to make more tests ...

Link to comment
Share on other sites

  • Werner locked this topic
Guest
This topic is now closed to further replies.
×
×
  • Create New...

Important Information

Terms of Use - Privacy Policy - Guidelines