Beetroot is here and so is VideoCore IV

News and information about Ultibo.
pjde
Posts: 400
Joined: Tue Feb 09, 2016 6:21 am
Location: Sydney, Australia

Re: Beetroot is here and so is VideoCore IV

Postby pjde » Wed Sep 20, 2017 7:57 am

Needed to add Threads to the uses clause in Tunnel.
pik33
Posts: 742
Joined: Fri Sep 30, 2016 6:30 pm
Location: Poland
Contact:

Re: Beetroot is here and so is VideoCore IV

Postby pik33 » Wed Sep 20, 2017 12:49 pm

Ultibo wrote:make sure that variants.o and variants.ppu exist in the folder:

Code: Select all

/home/pi/ultibo/core/fpc/units/armv7-ultibo/packages



I have these files in this folder.

Next step: config file check...

Edit: I made new config files, copied from the updated wiki. Then the project compiled without variants.pp in the project folder. It seems that the problem is solved. Something was wrong in rpi3.cfg.

Edit2: another glitch. I compiled HelloVG. It compiles without errors, but Lazarus cannot find VGShapes (CodeTools generates error messages) . I found the file vgshapes.pas in /home/pi/ultibo/core/fpc/source/packages/ultibounits/src/vgshapes.pas - it seems I have to tell Lazarus where it has to search for Ultibo related units. (... done - added path in project options - works)

After I lost my previous HD with all configured stuff I have now repair all these glitches on the new one...
User avatar
Ultibo
Site Admin
Posts: 2003
Joined: Sat Dec 19, 2015 3:49 am
Location: Australia

Re: Beetroot is here and so is VideoCore IV

Postby Ultibo » Thu Sep 21, 2017 12:39 am

pik33 wrote:I compiled HelloVG. It compiles without errors, but Lazarus cannot find VGShapes (CodeTools generates error messages) .

If the application compiles without error but Lazarus and CodeTools complain they cannot find the VGShapes file to show you the source then you probably need to do:

Tools, Rescan FPC Source Directory

from the Lazarus menu.
Ultibo.org | Make something amazing
https://ultibo.org
pik33
Posts: 742
Joined: Fri Sep 30, 2016 6:30 pm
Location: Poland
Contact:

Re: Beetroot is here and so is VideoCore IV

Postby pik33 » Thu Sep 21, 2017 4:42 am

Tools, Rescan FPC Source Directory


This solved the problem.
User avatar
Ultibo
Site Admin
Posts: 2003
Joined: Sat Dec 19, 2015 3:49 am
Location: Australia

Re: Beetroot is here and so is VideoCore IV

Postby Ultibo » Thu Sep 21, 2017 11:44 pm

pjde wrote:Needed to add Threads to the uses clause in Tunnel.

Thanks Paul, updated and committed.
Ultibo.org | Make something amazing
https://ultibo.org
Gavinmc42
Posts: 1387
Joined: Sun Jun 05, 2016 12:38 pm
Location: Brisbane, Australia

Re: Beetroot is here and so is VideoCore IV

Postby Gavinmc42 » Sun Sep 24, 2017 5:50 am

Now that camera works :D I started researching CV.
It seems yuv is preferred over jpg and this seems to use raspiyuv instead of raspistill.
Likewise there is the uncompress raspividyuv for the video.

There looks to only be libraspistill.a and libraspivid.a in the examples.
Are there yuv versions somewhere?
User avatar
Ultibo
Site Admin
Posts: 2003
Joined: Sat Dec 19, 2015 3:49 am
Location: Australia

Re: Beetroot is here and so is VideoCore IV

Postby Ultibo » Mon Sep 25, 2017 1:10 am

Gavinmc42 wrote:Are there yuv versions somewhere?

We've just pushed an update to the Examples which adds the missing YUV versions of RaspiStill and RaspiVid.

Obviously including them into a project only requires a slight change from the standard versions, the linklib directives are as follows:

Code: Select all

{$linklib raspiyuv}
{$linklib raspividyuv}

and the definitions of the "main" functions look like this:

Code: Select all

function vcraspistillyuv(argc: int; argv: PPChar): int; cdecl; external 'raspiyuv' name 'vcraspistillyuv';
function vcraspividyuv(argc: int; argv: PPChar): int; cdecl; external 'raspividyuv' name 'vcraspividyuv';

Because these (like RaspiStill and RaspiVid) are just the app recompiled as a static library then all of the command line parameters work as per the official documentation.
Ultibo.org | Make something amazing
https://ultibo.org
Gavinmc42
Posts: 1387
Joined: Sun Jun 05, 2016 12:38 pm
Location: Brisbane, Australia

Re: Beetroot is here and so is VideoCore IV

Postby Gavinmc42 » Mon Sep 25, 2017 1:40 am

Thanks Garry, going to be useful for things like this
viewtopic.php?f=13&t=835
pjde
Posts: 400
Joined: Tue Feb 09, 2016 6:21 am
Location: Sydney, Australia

Re: Beetroot is here and so is VideoCore IV

Postby pjde » Mon Sep 25, 2017 5:26 am

Hi Garry

Where is the C source code for these examples kept?

Regards

Paul
User avatar
Ultibo
Site Admin
Posts: 2003
Joined: Sat Dec 19, 2015 3:49 am
Location: Australia

Re: Beetroot is here and so is VideoCore IV

Postby Ultibo » Mon Sep 25, 2017 5:30 am

pjde wrote:Where is the C source code for these examples kept?

All of the Ultibo modified examples and apps are in the Userland port, see:

https://github.com/ultibohub/Userland/t ... ltibo/apps
Ultibo.org | Make something amazing
https://ultibo.org

Return to “News”

Who is online

Users browsing this forum: No registered users and 1 guest