cancel
Showing results for 
Show  only  | Search instead for 
Did you mean: 
Highlighted
2,119 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
Highlighted
Moderator
Moderator
2,050 Views
Registered: ‎04-24-2017

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
Highlighted
2,035 Views
Registered: ‎05-08-2018

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
Highlighted
Moderator
Moderator
2,029 Views
Registered: ‎04-24-2017

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
Highlighted
1,997 Views
Registered: ‎05-08-2018

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
Highlighted
Moderator
Moderator
1,982 Views
Registered: ‎04-24-2017

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
Highlighted
1,977 Views
Registered: ‎05-08-2018

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
Highlighted
Moderator
Moderator
1,972 Views
Registered: ‎04-24-2017

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
Highlighted
1,971 Views
Registered: ‎05-08-2018

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,961 Views
Registered: ‎04-24-2017

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)
Highlighted
1,459 Views
Registered: ‎05-08-2018

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
Highlighted
Moderator
Moderator
1,444 Views
Registered: ‎04-24-2017

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