omxplayer-sync
omxplayer-sync copied to clipboard
MASTER and SLAVE on SAME raspberry?
Hello there!
I was wondering if it is possible to have a video player on a Raspberry Pi 4 be a SLAVE to another instance of a video player running in the same Raspberry Pi!
We are having a dual channel installation and it is crucial that both videos play in sync. We learned how to do this last year with omxplayer-sync using multiple Raspberry Pis and a router, but since we have a Raspberry Pi 4 (model B) that has two different HDMI connections, we wanted to use only this single Raspberry Pi for this installation.
We manage to get both videos playing at the same time easily with one command line but after a few minutes it starts getting out of sync. In 40m it's a mess already :C
Is there a way to tell omxplayer-sync to grab the frame value from instance 1 and follow that on instance 2?
Maybe with a line like:
omxplayer-sync -m video1.mp4 & omxplayer-sync -l video2.mp4
Thanks in advance!
Hi I do not own an RPi4 to test your setup. You need to figure out first how you can direct omxplayer to the desired hdmi output, maybe something like:
omxplayer-sync -m video1.mp4 > /dev/tty1
then try as you mentioned to start both omxplayers on the same machine. But I am not sure if this will work with the DBUS or if this will mess up.
I would solve your task with producing a video which is 3840 x 1080 pixel and then just play it with one player in fullscreen...