Omxplayer-sync

From Lahaag - Project wiki
Revision as of 11:19, 15 October 2018 by Atkn (talk | contribs)
Jump to navigationJump to search

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. <syntaxhighlight lang="C"> @reboot sudo /home/pi/script.sh & <syntaxhighlight>

script on master <syntaxhighlight lang="C">

  1. !/bin/bash

sleep 20 sudo /usr/bin/omxplayer-sync -mu /home/pi/synctest.mp4 <syntaxhighlight>

script on slave <syntaxhighlight lang="C">

  1. !/bin/bash

sleep 20 sudo /usr/bin/omxplayer-sync -lu /home/pi/synctest.mp4 <syntaxhighlight>

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