UPGRADE YOUR BROWSER

We have detected your current browser version is not the latest one. Xilinx.com uses the latest web technologies to bring you the best online experience possible. Please upgrade to a Xilinx.com supported browser:Chrome, Firefox, Internet Explorer 11, Safari. Thank you!

cancel
Showing results for 
Search instead for 
Did you mean: 
1,360 Views
Registered: ‎05-08-2018

gstreamer applicaiton on zcu104

I have a apptest.c based on gstreamer appsink example . On my ubuntu 16.04, I built it and run it successfully. It could print "*"all the time. But when I did it on zcu104 linux created by petalinux, bulit successfully , when I run it , it just print one "*", I don't know why.

0 Kudos
11 Replies
Moderator
Moderator
1,293 Views
Registered: ‎04-24-2017

Re: gstreamer applicaiton on zcu104

Hi hebo@sensetime.com,

 

Can you share your recipe which you used for gstreamer application?

Thanks,
Sandeep
PetaLinux Yocto | Embedded SW Support

---------------------------------------------------------------------------
Don’t forget to Reply, Kudo, and Accept as Solution.
---------------------------------------------------------------------------
0 Kudos
1,278 Views
Registered: ‎05-08-2018

Re: gstreamer applicaiton on zcu104

hi, thank you for your reply . what do you mean"recipes"? I just compiled my application on board. I don't know how to compile the application (with Gstreamer supported) by petalinux.

0 Kudos
Moderator
Moderator
1,272 Views
Registered: ‎04-24-2017

Re: gstreamer applicaiton on zcu104

Hi hebo@sensetime.com,

 

Refer UG1144 petalinux docs.

 

In Yocto(https://www.yoctoproject.org/) a recipe is a metadata file containing directives for Bitbake on how to build a particular software package or application or libraries.

 

I have created a yocto recipe using your application take a look and follow below instruction to add your application to rootfs image.

 

Note: I haven't verified your application code.

 

$ mkdir -p <plnx-proj-root>/project-spec/meta-user/recipes-multimedia
$ cp -r gst-stream-app <plnx-proj-root>/project-spec/meta-user/recipes-multimedia
$ vim <plnx-proj-root>/project-spec/meta-user/recipes-core/images/petalinux-image.bbappend 

#Note: Mention Each package in individual line
#      cascaded representation with line breaks are not valid in this file.
IMAGE_INSTALL_append = " peekpoke"
IMAGE_INSTALL_append = " gpio-demo"
IMAGE_INSTALL_append = " gst-stream-app"

$ petalinux-config -c rootfs
     apps ---> [*] gst-stream-app

$ petalinux-build
Thanks,
Sandeep
PetaLinux Yocto | Embedded SW Support

---------------------------------------------------------------------------
Don’t forget to Reply, Kudo, and Accept as Solution.
---------------------------------------------------------------------------
0 Kudos
1,240 Views
Registered: ‎05-08-2018

Re: gstreamer applicaiton on zcu104

hi, thanks a lot.

1、how to create a recipe by yocto?

2、is this same with the recipes in $PETALINUX/component/yocto/source/aarch64/layers/ ?

0 Kudos
Moderator
Moderator
1,225 Views
Registered: ‎04-24-2017

Re: gstreamer applicaiton on zcu104

Hi hebo@sensetime.com,

 

Are you using petalinux or yocto. If you are using yocto then use recipetool command.

 

I created recipes using the command below which will create a template recipe. Refer UG1144 for more details. 

$ petalinux-create -t apps --name <recipe_name>

 

Thanks,
Sandeep
PetaLinux Yocto | Embedded SW Support

---------------------------------------------------------------------------
Don’t forget to Reply, Kudo, and Accept as Solution.
---------------------------------------------------------------------------
0 Kudos
1,220 Views
Registered: ‎05-08-2018

Re: gstreamer applicaiton on zcu104

hi, thanks for your reply

1、I use the petalinux tool

2、According the ug1144, I have tried the command

$petalinux-create -t apps -n myapp

I just got file structure in the <plnx_proj_root>/project-spec/meta-user/recipes-app/myapp 

myapp.bb

files   /  Makefile  myapp.c

 

But the the zip file you offered to me have so many other file.

 

How to generate these files?

 

thanks a lot 

0 Kudos
Moderator
Moderator
1,215 Views
Registered: ‎04-24-2017

Re: gstreamer applicaiton on zcu104

Hi hebo@sensetime.com,

 

PetaLinux generates generic C/C++ template default is C.

 

GStreamer requires additional plumbing or else it doesn't build. 

Thanks,
Sandeep
PetaLinux Yocto | Embedded SW Support

---------------------------------------------------------------------------
Don’t forget to Reply, Kudo, and Accept as Solution.
---------------------------------------------------------------------------
0 Kudos
1,214 Views
Registered: ‎05-08-2018

Re: gstreamer applicaiton on zcu104

hi, sandeepg
you're right. if I just replace the content in myapp.c, it doesn't build
what additional plumbing ?how to do it ?
0 Kudos
Highlighted
Moderator
Moderator
1,204 Views
Registered: ‎04-24-2017

Re: gstreamer applicaiton on zcu104

Hi hebo@sensetime.com,

 

It's hard to find good examples. Refer this AJA examples https://gitlab.aja.com/ntv2/gst/tree/master/gst-plugin to build gst application manually 

Thanks,
Sandeep
PetaLinux Yocto | Embedded SW Support

---------------------------------------------------------------------------
Don’t forget to Reply, Kudo, and Accept as Solution.
---------------------------------------------------------------------------
Tags (1)
702 Views
Registered: ‎05-08-2018

Re: gstreamer applicaiton on zcu104

hi, sandeepg
thanks for your great help . Can you tell me how to build the demo you offered by the aarch64-linux-gnu manually?
0 Kudos
Moderator
Moderator
687 Views
Registered: ‎04-24-2017

Re: gstreamer applicaiton on zcu104

The examples I provide is just for your reference how the files and directory structure you need to have before you build using recipes.

 

We don't have any docs to build gstreamer manually for ZCU104. You can use the recipes which I provided.

Thanks,
Sandeep
PetaLinux Yocto | Embedded SW Support

---------------------------------------------------------------------------
Don’t forget to Reply, Kudo, and Accept as Solution.
---------------------------------------------------------------------------
0 Kudos