using the VDEC on SAMA5D4

Discussion around products based on ARM Cortex-A5 core.

Moderator: nferre

CortexAlex
Posts: 17
Joined: Thu Jan 26, 2017 12:48 pm

using the VDEC on SAMA5D4

Tue Nov 27, 2018 11:22 am

hello,

Documentation states that the SAMA5D4 has a hardware video decoder that can decode MPEG4, JPEG, H263 ,H264 and more. Yet, the documentation does not lay out the user interface of that component. How do I get started with the hardware decoder if I wanted to decode say JPEGs for starters ? I have Linux running with no UI/X11 and want to stay as low level as possible. I took a look at this page linux4sam/bin/view/Linux4SAM/SAM9M10Gstreamer but does it still apply to the SAMA5D4 ?

Regards
Alex
blue_z
Location: USA
Posts: 1960
Joined: Thu Apr 19, 2007 10:15 pm

Re: using the VDEC on SAMA5D4

Wed Nov 28, 2018 1:32 am

Support for the Hantro video decoder has been spotty in the past.
IIRC the conversion from fbdev to DRM (Direct Rendering Manager) caused vdec support to lapse.
The Linux4SAM 5.7 demo claims (restored) support for various video streams using the vdec, and subsequent versions of the demo claim retention of all previous features.

Besides drivers in the kernel for the vdec, you need userspace code which I've only seen as a GStreamer plugin and a library.

CortexAlex wrote: I have Linux running with no UI/X11 and want to stay as low level as possible.
No problem, X11 or any windowing system is not required to render/display graphics.

Regards
CortexAlex
Posts: 17
Joined: Thu Jan 26, 2017 12:48 pm

Re: using the VDEC on SAMA5D4

Wed Nov 28, 2018 12:01 pm

thanks for looking into this,
Besides drivers in the kernel for the vdec
besides the AT91_VDEC_G1 driver, is there anything else I need to enable in the kernel ?

Regards
Alex
blue_z
Location: USA
Posts: 1960
Joined: Thu Apr 19, 2007 10:15 pm

Re: using the VDEC on SAMA5D4

Thu Nov 29, 2018 3:17 am

In the arch/arm/mach-at91/Makefile CONFIG_AT91_VDEC_G1 will build both memalloc.c and vdec_g1.c drivers.
You'll also need to enable the display-related drivers (e.g. DRM/LCD, backlight, HDMI), but if you use the kernel config file from the Linux4SAM demo (e.g. linux4sam/meta-atmel/blob/sumo/recipes-kernel/linux/linux-at91-4.14/sama5d4/defconfig), the salient config parameters will be enabled.

Regards

Return to “SAMA5D Cortex-A5 MPU”

Who is online

Users browsing this forum: No registered users and 4 guests