popcornmix / omxplayer

omxplayer
GNU General Public License v2.0
1.01k stars 334 forks source link

can't display the same content on two displays (RPI4) #803

Open mbncr opened 2 years ago

mbncr commented 2 years ago

Hello,

So far, I've been using the following video playback script ... lxterminal -e omxplayer -o alsa --loop --blank --no-osd /home/pi/Videos/wtv.mp4 ... to initiate an automatic looped video playback on start-up. Which works great for one display.

I'm now trying to replicate this on a RPI4, to output the same video in both HDMI outputs. But it seems that through the options I can only choose between one display or the other. Also, using omxplayer through lxterminal like I do (useful if you want to keep the access to the keyboard) seems to be one of those cases in which native screen mirroring doesn't work.

Is there a way to setup omxplayer so it plays the same content on both HDMI outputs?

popcornmix commented 2 years ago

If you apply --blank to both calls to omxplayer, you will blank the other omxplayer's output.

mbncr commented 2 years ago

Thanks @popcornmix . I was using --blank to make sure the background stayed black when looping (on an older config, it returned a white flash) but it's not relevant anymore in my case. This said, even when removing '--blank', I'm still getting the video on one window only, and the lxterminal on the other. (I can't really remove lxterminal, else I'll lose any possibility to exit the video through 'esc' if needed)

popcornmix commented 2 years ago

Can you make it work with the `--win`` option? That's a more common way of running two omxplayers.