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

Using 2 monitors on Pi4 #203

Open
Chrisgraue opened this issue Nov 18, 2023 · 4 comments
Open

Using 2 monitors on Pi4 #203

Chrisgraue opened this issue Nov 18, 2023 · 4 comments

Comments

@Chrisgraue
Copy link

This is a feature request, but would be really cool:

The Pi4 has two HDMI outputs. I'd love to be able to send either a split video (a single 3840x1080 video) or two videos (each 1920x1080) to different monitors at the same time.

I found one person who worked out an implementation of this for OMXplayer, but only wrote it for a single video. Perhaps if the looper has something that could be used to dynamically change which video is targeted in this? It might be a starting point.

DISPLAY=:0 xterm -e omxplayer --display=2 /home/pi/Videos/video2.mp4 & omxplayer --display=7 /home/pi/Videos/video2.mp4

@tofuSCHNITZEL
Copy link
Collaborator

tofuSCHNITZEL commented Nov 19, 2023

Since omxplayer is EOL and will not be installable in the future I would not get my hopes up (and cvlc is not an easy replacement)
But the trick is to just run the video looper twice with different inis and in the inis use the extra args to have it display the video on different screens.
see also here:
#100

I think the gist is:
Create a second service file - you can append a path to the video looper python call that points to another ini and then you just need to figure out the exact args that omxplayer needs to display on different hdmi outputs

@tofuSCHNITZEL
Copy link
Collaborator

you can check out the readme here: https://github.com/adafruit/pi_video_looper/tree/next#raspberry-pi-45-multi-screen-output
but note this is totally untested yet!

@Chrisgraue
Copy link
Author

Interesting! I wonder if I could point each instance to a different folder, basically an A1 and B1 playing at the same time, A2 and B2, etc etc. If I'm lucky, hitting the controls to skip, pause, back, etc will control both of them.

@tofuSCHNITZEL
Copy link
Collaborator

yes different folders is no problem (just edit the ini of one of the instances)
if KB control would control both instances I don't dare predict ;) needs to be tested ;)

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

2 participants