I am helping friend of mine with her exhibition in video arts. Right now her concept requires 6 Beamers to loop videos, distributed over three floors in an relatively large building, with one PI per Beamer. (Even more are planned)
Additionally the video playback has to start simultaneously.
My Idea was to connect all of such PIs within a WIFI network and use pssh to execute the start command on all of them in parallel. So I used this script to configure one "master" PI which creates the network and a bunch of other "slave" PIs which automatically connect to that network (WLAN). The master PI can access the slaves using ssh keys. So the final command I used for testing was:
parallel-ssh -l pi -h hosts.txt -- omxplayer test.mov
Whereby hosts.txt
contains all the ip adresses of all slaves including the one of the master.
Unfortunately the playback does is delayed, by about 0.5 - 0.75 sec for the "slaves". So my question is:
- Would it be better to use a dedicated router?
- would a script which establishes the ssh connection first and then executes the start command be better? If so, how could that be done? Would something like
screen
be able to do the job?
UPDATE
Due to the comments: Ideally "simultaneously" would mean no delay here, but since all the networking and computation will take time, the delay should be as small as possible with the given setup.