Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

modify for quad view #1

Open
Katsuryoku opened this issue Aug 23, 2021 · 4 comments
Open

modify for quad view #1

Katsuryoku opened this issue Aug 23, 2021 · 4 comments

Comments

@Katsuryoku
Copy link

hello,

I want to display a quad grid view, is-it possible to config output size to display 4 outputs at the same time ? (actually it's output say "drmModeSetPlane failed: Permission denied" when I do it.)

@wasalm
Copy link
Owner

wasalm commented Aug 24, 2021

That should be possible. For this you display each output into a different layer/plane and in the function drmModeSetPlane you can specify where each plane is positioned. Look at the multiplane-test branch to do this.

About your error, are you using X or any other window manager? This code acts like its own window manager and hence is incompatible with other ones.

Lastly, if you want to preview multiple video's at the same time, check if the rpi is able to do that. According to https://www.raspberrypi.org/forums/viewtopic.php?t=296626 it is not possible for all video codecs.

@cosmostreamer
Copy link

I tested your multi-plane and it works fine on Raspberry PI 4, but both planes are on the same HDMI out. How to configure secondary plane to be placed on the second HDMI out?

@wasalm
Copy link
Owner

wasalm commented Jun 19, 2024

Pff. This is years ago I played with this. What you can do is to look at the code of kmscube (https://gitlab.freedesktop.org/mesa/kmscube) That is better documented and helps with the setup of the drm side of video playback.

@cosmostreamer
Copy link

Pff. This is years ago I played with this. What you can do is to look at the code of kmscube (https://gitlab.freedesktop.org/mesa/kmscube) That is better documented and helps with the setup of the drm side of video playback.
Got it, thank you!

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

No branches or pull requests

3 participants