popcornmix / omxplayer

omxplayer
GNU General Public License v2.0
1.02k stars 333 forks source link

Omxplayer flickering on 2 monitor if no internet connetcion? #748

Closed matteoraggi closed 4 years ago

matteoraggi commented 4 years ago

When playing omxplayer on double monitor with raspberry pi 4 2gbram, sometimes I was watching a flickering of the 2 monitor without be able to understand why. After many thinkings then from today it looks that I am able to recreate the issue:
https://wetransfer.com/downloads/ad07850dd4a95362e10917848e97ad2a20191015103902/1b4765ab6adca475166b79a7c2cca3cb20191015103902/aa6947 I just run this command: nohup sudo /usr/bin/omxplayer --display 2 --layer 1 --orientation 0 --loop --no-osd /home/pi/Videos/vdo_1.mp4 &

nohup sudo /usr/bin/omxplayer --display 7 --layer 1 --orientation 0 --loop --no-osd /home/pi/Videos/vdo_2.mp4 &

popcornmix commented 4 years ago

It looks like you are running more than two copies of omxplayer when this flickers. How are you launching omxplayer? Can you run ps aux |grep omx (e.g. from ssh) when the monitors are flickering.

matteoraggi commented 4 years ago

Yes you are right are mutiple omxplayer instances contemporarily and it is a bug of my script and I go to patch it, thanks.