Firefly Open Source Community

   Login   |   Register   |
New_Topic
Print Previous Topic Next Topic

firefly+fireprime: machybris for developers: exposing rockchip video and graphic

844

Credits

42

Prestige

48

Contribution

advanced

Rank: 4

Credits
844

firefly+fireprime: machybris for developers: exposing rockchip video and graphic

Posted at 11/4/2015 20:25:41      View:7804 | Replies:8        Print      Only Author   [Copy Link] 1#
MACHYBRIS
machybris is a packaged libhybris solution for rockchip devices (RK3288, RK3188, RK312X) that exposes the following android libs that can be used to develop your linux apps:
- graphical HW acceleration (EGL, GLES libs)
- rockchips video HW acceleration (vpu, rkon2 libs)
- androids media service (media lib)
- makes, for instance, kodi / spmc run in linux (just install mackodi)

NEW RELEASE
Finally a new release of machybris (v0.1.1)! It can now also use androids native surfaceflinger as window composer allowing for a smooth vsync at 60 fps. machybris already ran on RK3288 devices, now I also added support for RK3188 and RK312X devices (disclaimer: I only tested this on my good old mk809iii and my FirePrime (sponsored by firefly): so would be interested if this runs on other devices too!)

EXAMPLE SOURCE CODE
And with this release see also some example application code to show how you can use machybris for your application development. See: https://github.com/mac-l1/machybris_examples.git Here you can find the code for the demos that I put on youtube like the h264 movie player and h264 screen recorder. I also put a simple hevc/h265 movie player in there.
Hope this helps to unleash and show the power of rockchip hardware acceleration in linux applications for all of us!

Have fun!

And if you like it: please get me a faster computer by giving a small donation; it will benefit my impatience during compilation/building, my nails and future releases; any help is welcome!

Donate...


Cheers -- mac-l1

---

HOW TO INSTALL
See: http://freaktab.com/forum/tv-player-support/rk3288-devices/534814-machybris-for-developers-exposing-rockchip-video-and-graphical-hw-acceleration-in-linux-apps

Reply

Use props Report

204

Credits

0

Prestige

0

Contribution

intermediate

Rank: 3Rank: 3

Credits
204
Posted at 3/25/2016 14:16:49        Only Author  2#
Hi, mac-l1
I had to apply your method for HW encoding / decoding on FirePrime(RK3128).
However, It is not installed properly.
Reply

Use props Report

543

Credits

19

Prestige

15

Contribution

advanced

Rank: 4

Credits
543
Posted at 3/25/2016 14:59:47        Only Author  3#
Hi Mac_L1

Will you also make libhybris and MacKodi for new Firefly Reloaded/Firefly RK3288 with Android 5.1 and Linux 15.04(I think)
https://drive.google.com/folderv ... gAqAMDk1OGxZdkhrNlU
https://bitbucket.org/T-Firefly/firenow-lollipop/commits/all

I can only find MacKodi for Firefly Android 4.4 and older Linux.
Everyone I try to install doesn't work on the new firmware.
Any solution?

Thanks for all your great work.
Reply

Use props Report

25

Credits

0

Prestige

0

Contribution

new registration

Rank: 1

Credits
25
Posted at 7/13/2016 15:06:28        Only Author  4#
When I install this machybris via  http://freaktab.com/forum/tv-pla ... ation-in-linux-apps  , I cannot access to the site: http://mac-l1.com, but I can open www.google.com ;
With this kind of situation, how should I do?
Reply

Use props Report

690

Credits

0

Prestige

0

Contribution

advanced

Rank: 4

Credits
690
Posted at 7/14/2016 02:22:29        Only Author  5#
sun_echo Posted at 7/13/2016 15:06
When I install this machybris via  http://freaktab.com/forum/tv-player-support/rk3288-devices/534814 ...

hi sun_echo,
i just checked your mac-l1.com link in the post and it works, so don't know what the problem is? is it still a problem, maybe the site was just down a bit... if it still does not work, then let me know and i will put my stuff on some other backup-site...
cheers -- mac-l1
Reply

Use props Report

25

Credits

0

Prestige

0

Contribution

new registration

Rank: 1

Credits
25
Posted at 7/14/2016 17:50:45        Only Author  6#
mac-l1 Posted at 7/14/2016 02:22
hi sun_echo,
i just checked your mac-l1.com link in the post and it works, so don't know what the ...

Hi mac_l1,
   Thanks for answering my question.I can now have a normal visit with the site "http://mac-l1.com/" .

   But in accordance with the script "http://mac-l1.com/install_machybris.sh" after the completion of the installation of the entire system of color and contrast have changed, use ffplay to play the video is the same;
   But the use of the system original player Mplayer playback when the color and contrast on the normal,

   As follows:
left  is normal, another is error:
      
Reply

Use props Report

690

Credits

0

Prestige

0

Contribution

advanced

Rank: 4

Credits
690
Posted at 7/14/2016 22:15:11        Only Author  7#
hi sun_echo, is this on firefly device or fireprime device?
Reply

Use props Report

204

Credits

0

Prestige

0

Contribution

intermediate

Rank: 3Rank: 3

Credits
204
Posted at 7/19/2016 21:00:25        Only Author  8#
Hi mac_l1,

I looked at Linux GPU acceleration via the link below, I hope the same test with fireprime(RK3128) board.
(https://www.youtube.com/watch?v=co-2TtdwpwU)
(https://www.youtube.com/watch?v=PLHsnUpak5Q)


I have installed the machybris lib with Fireprime Board(RK3128).
and, I tested a your example source code(https://github.com/mac-l1/machybris_examples.git).

*TEST arm-examples
The error message occurs when you run the command.("cd arm-examples; ./rotozom" to run)

and, I have installed the glmark2-es2 to test the OpenGL ES demos.(“sudo apt-get install glmark2-es2")

Do not run when you run the command(sudo glmark2-es2.)


Can you give me additional information?

rotozoom.JPG (72.62 KB, Down times: 134)

"cd arm-examples; ./rotozom" to run

"cd arm-examples; ./rotozom" to run

glmark2-es2.JPG (15.43 KB, Down times: 119)

sudo glmark2-es2

sudo glmark2-es2
Reply

Use props Report

690

Credits

0

Prestige

0

Contribution

advanced

Rank: 4

Credits
690
Posted at 7/20/2016 13:44:24        Only Author  9#
newold Posted at 7/19/2016 21:00
Hi mac_l1,

I looked at Linux GPU acceleration via the link below, I hope the same test with firep ...

hi newold,

for rotozoom: it seems you get some decent framerates; i wonder do you see the demo on the screen rotozooming around? it seems it works? anyways, it is better to execute the ./roto.sh script (not in root mode but in user mode) instead of the rotozoom executable.
the chvt error you see is not so important; chvt switches to another framebuffer and chvt( 7 ) switches to the X11 framebuffer, while i believe all machybris stuff is displayed at chvt( 10 ) or so. in root mode chvt does not work.

for glmark2-es: the ubuntu one you installed with apt-get does not work as this is the original X11 one, i.e. made for X11. machybris rendering is done completely without X11 as it is bases on android graphics (that has no X11).

i have ported a glmark2 from rpi to firefly with machybris before, see: https://github.com/mac-l1/glmark2, just to check it performance. dont know if i tested this on fireprime too, at least it worked on firefly. maybe you can get it running too?

cheers -- mac-l1
Reply

Use props Report

You need to log in before you can reply Login | Register

This forum Credits Rules

Quick Reply Back to top Back to list