Skip to content
This repository has been archived by the owner on May 1, 2020. It is now read-only.

layers for nodes? can i adress or change layer-level on raspberry-pi ? #38

Open
ozett opened this issue Apr 29, 2016 · 4 comments
Open

Comments

@ozett
Copy link

ozett commented Apr 29, 2016

hi,
i am not good in coding, but playing basic functions with info-beamer.
i love it! 😄

first i wanted to beg for a cycling-function in the videoplaylist-sample.
than i found the room-cycler fragment, copied nodes (i.e. videoplaylist with one stream)
into it and now i can cycle between my RTSP webcam screens. WOW.
i played with background and transparancy. really cool.
with omxplayer i had with 192MB GPU split-screen-setting max 8 windows/streams.
i will come to a test with info-beamer, if he beats this.

BUT in the meantime my question:
can i set layer-level for different nodes?

what i want to achieve is playing RTSP streams on different layer with transparency, pop them up and vanish them on different layer.

may help me roughly going this direction? or layers are not adressable "inside" info-beamer nodes?

@dividuum
Copy link
Owner

If you use the normal way of playing video you don't need layers. The videos are rendered all within the same OpenGL layer. The order in which you :draw() them determines which video is drawn over each other.

Normally everything is inside a single OpenGL dispmanx (https://info-beamer.com/blog/raspberry-pi-hardware-video-scaler) layer. If you need better video performance it's possible to render videos outside of OpenGL. By default everything is in a single layer.

@ozett
Copy link
Author

ozett commented Apr 30, 2016

can i change the order (means layer up/down) while playing a video?
or do i have to stop/start the videop programmatically to push it on another Layer/level to move it in front or back..?
(my idea is to play with transparancey and layer/level overblending..)

@dividuum
Copy link
Owner

dividuum commented Apr 30, 2016

As I said: There are no layers. Just draw video2 above video1, if you want video2 to be in front of video1. Reverse the draw order if you want video1 to be in front.

@ozett
Copy link
Author

ozett commented Apr 30, 2016

ok. thanks for clarifying

Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.
Labels
None yet
Projects
None yet
Development

No branches or pull requests

2 participants