OMXPlayer-Sync facilitates synchronization of multiple OMXPlayer instances over the network in a master/slave fashion.
$ ./omxplayer-sync -h
Usage: omxplayer-sync [options] filename
Options:
-h, --help show this help message and exit
-m, --master
-l, --slave
-x DESTINATION, --destination=DESTINATION
-u, --loop
-v, --verbose
master
omxplayer-sync -muv movie1.mp4 movie2.mp4 /movies/*
slave
omxplayer-sync -luv movie1.mp4 movie2.mp4 /movies/*
A recent version of pyexpect.
A recent version of the python bindings for D-Bus.
A custom build of omxplayer with a higher stats output resolution.
You can find a compiled version at yokto.net/0/omxplayer.
su -
apt-get remove omxplayer
rm -rf /usr/bin/omxplayer /usr/bin/omxplayer.bin /usr/lib/omxplayer
wget -O- http://yokto.net/0/omxplayer/omxplayer-3176db4.tar.bz2 | tar -C / -xjvf -
ln -sf /lib/arm-linux-gnueabihf/libpcre.so.3 /lib/arm-linux-gnueabihf/libpcre.so.1
wget -O /usr/bin/omxplayer-sync https://github.com/turingmachine/omxplayer-sync/raw/master/omxplayer-sync
chmod 0755 /usr/bin/omxplayer-sync
wget https://github.com/turingmachine/omxplayer-sync/raw/master/synctest.mp4
# start on master
omxplayer-sync -muv synctest.mp4
# start on slave
omxplayer-sync -luv synctest.mp4
To achive faster initial sync times, you need to encode your videos with a smaller GOP size, e.g. 25 frames.