SAMA5D4 Xplained Ultra - GStreamer

For SAMA5D2 Xplained, SAMA5D3 Xplained and SAMA5D4 Xplained

Moderator: nferre

brian_
Posts: 15
Joined: Mon Jan 09, 2017 11:59 am

SAMA5D4 Xplained Ultra - GStreamer

Tue Apr 25, 2017 3:00 pm

I am using a SAMA5D4 Xplained Ultra board.

I am accessing the demo images via the following link: http://www.at91.com/linux4sam/bin/view/Linux4SAM/

When I flash the image contained in the "linux4sam-poky-sama5d4_xplained_hdmi-5.3.zip" download I am able to run /opt/VideoPlayer/Atmel-Video-Player.sh and see a video on a monitor hooked up via HDMI.


Now under the section Linux4SAM 5.5 demo directory there is a note:
Please note:
SAMA5D4 Video Decoder not supported. Use Linux4SAM 5.3 for HW video decoding feature.
Sure enough, if I try to flash the image contained in "linux4sam-poky-sama5d4_xplained_hdmi-5.5.zip" and run the same /opt/VideoPlayer/Atmel-Video-Player.sh I get the following error:
root@sama5d4-xplained:/opt/VideoPlayer# ./Atmel-Video-Player.sh
Setting pipeline to PAUSED ...
ERROR: Pipeline doesn't want to pause.
ERROR: from element /GstPipeline:pipeline0/GstG1H264Dec:g1h264dec0: Could not initialize suppo
rting library.
Additional debug info:
../../../../gst-plugins-base-1.6.3/gst-libs/gst/video/gstvideodecoder.c(2571): gst_video_decod
er_change_state (): /GstPipeline:pipeline0/GstG1H264Dec:g1h264dec0:
Failed to open decoder
Setting pipeline to NULL ...
Freeing pipeline ...

Now, my issue is that I am trying to build a Yocto image using the instructions here http://www.at91.com/linux4sam/bin/view/ ... /PokyBuild... however when I do that, I get the same error as above.

As I understand it, to get hardware accelerated video on the atmel platform you need to use GStreamer, but as we can see it does not seem to work on the later Yocto builds.

Any ideas?

Thanks,

Brian.
blue_z
Location: USA
Posts: 1550
Joined: Thu Apr 19, 2007 10:15 pm

Re: SAMA5D4 Xplained Ultra - GStreamer

Tue Apr 25, 2017 10:35 pm

brian_ wrote:Now, my issue is that I am trying to build a Yocto image using the instructions here http://www.at91.com/linux4sam/bin/view/ ... /PokyBuild... however when I do that, I get the same error as above.
You claim to be aware the Linux4SAM 5.3 supports HW video decoding and Linux4SAM 5.5 does not.
You demonstrated to yourself that Linux4SAM 5.5 does not support HW video decoding by installing and executing the already-built demo from the Atmel site.
Then you follow instructions for building the current Linux4SAM demo, which is Linux4SAM 5.5, yourself, and then complain that what you built behaves like the downloaded binaries of the latest demo.
Ordinarily you would hope that what you build performs identical to what is pre-built, yet you seem to expect something different/better?

If you want Linux4SAM 5.3 functionality, then you either try to forward port the required functionality yourself, or you have to build Linux4SAM 5.3 instead of "the later Yocto builds" that you insist on using.

Regards
brian_
Posts: 15
Joined: Mon Jan 09, 2017 11:59 am

Re: SAMA5D4 Xplained Ultra - GStreamer

Wed Apr 26, 2017 10:39 am

blue_z wrote: If you want Linux4SAM 5.3 functionality, then you either try to forward port the required functionality yourself, or you have to build Linux4SAM 5.3 instead of "the later Yocto builds" that you insist on using.
Thank you for this part of your reply, this is what I feared. We are either locked in to an older kernel or we (and every customer) will have to individually port the parts needed.

It's a shame that the poky build instructions are not more clear about the limitations for the SAMA5D4 Xplained.

For others wondering how to find the instructions to build 5.3: Direct link: https://github.com/linux4sam/meta-atmel ... 5.3/README

Return to “SAMA5 Xplained”

Who is online

Users browsing this forum: No registered users and 0 guests