Difference between revisions of "Omxplayer-sync"

From Lahaag - Project wiki
Jump to navigationJump to search
 
 
(3 intermediate revisions by the same user not shown)
Line 2: Line 2:
 
https://github.com/turingmachine/omxplayer-sync/blob/master/omxplayer-sync
 
https://github.com/turingmachine/omxplayer-sync/blob/master/omxplayer-sync
  
master image :
+
master image :<br />
 
slave image :
 
slave image :
  
Line 8: Line 8:
 
<syntaxhighlight lang="C">
 
<syntaxhighlight lang="C">
 
@reboot sudo /home/pi/script.sh &
 
@reboot sudo /home/pi/script.sh &
<syntaxhighlight>
+
</syntaxhighlight>
  
 
script on master  
 
script on master  
Line 15: Line 15:
 
sleep 20
 
sleep 20
 
sudo /usr/bin/omxplayer-sync -mu /home/pi/synctest.mp4
 
sudo /usr/bin/omxplayer-sync -mu /home/pi/synctest.mp4
<syntaxhighlight>
+
</syntaxhighlight>
  
 
script on slave
 
script on slave
Line 22: Line 22:
 
sleep 20
 
sleep 20
 
sudo /usr/bin/omxplayer-sync -lu /home/pi/synctest.mp4
 
sudo /usr/bin/omxplayer-sync -lu /home/pi/synctest.mp4
<syntaxhighlight>
+
</syntaxhighlight>
  
 
The movie should be place in /boot/videofile/ and named sync.mp4 on both master and slave.
 
The movie should be place in /boot/videofile/ and named sync.mp4 on both master and slave.
 +
 +
to check<br />
 +
 +
https://github.com/turingmachine/omxplayer-sync/issues/81
 +
https://github.com/bmoren/node-omxplayer-sync

Latest revision as of 11:25, 15 October 2018

Two disk images to sync videos across different raspberries based on this code : https://github.com/turingmachine/omxplayer-sync/blob/master/omxplayer-sync

master image :
slave image :

A cronjob starts a script to run omxplayersync on boot.

@reboot sudo /home/pi/script.sh &

script on master

#!/bin/bash
sleep 20
sudo /usr/bin/omxplayer-sync -mu /home/pi/synctest.mp4

script on slave

#!/bin/bash
sleep 20
sudo /usr/bin/omxplayer-sync -lu /home/pi/synctest.mp4

The movie should be place in /boot/videofile/ and named sync.mp4 on both master and slave.

to check

https://github.com/turingmachine/omxplayer-sync/issues/81 https://github.com/bmoren/node-omxplayer-sync