An openFrameworks addon for playing back videos in sync over the network with GStreamer.
This addon utilizes the gstreamer network clocks for syncing video playback over the network on two or more computers.
It also uses ofxOsc for master/client communication ( play, pause etc. )
It has been tested and developed with master OF 0.9.0 from github(03cbdb2) under Xubuntu 14.04 and OS X 10.8.5 with gstreamer 1.4.4 and gstreamer 1.4.5 ( although in theory it should work with any gstreamer version above 1.0 ) .
This addon should be considered WIP. Basic functionality for play - pause and looping in a synchronized manner is there but there are rough edges ( especially related to resuming after pausing ) that need further work and testing + additions for seeking and so on...
For Linux you should already have all dependencies installed as part of the OF core.
For OS X & Windows you will need ofxGStreamer from Arturo Castro. Follow the installation instructions that you find there in order to properly install GStreamer for your platform.
The addon_config.mk file should pull necessary dependencies based on the platform that you are working..
The example project configuration assumes a command line configuration and development. For CB / XCode / VS project templates we would have to look to the community or the project generator.
NOTE: With current master of ofxGStreamer (114bbc84b2) and OF (cab205321) under OS X I had to remove ofxGStreamer.h and ofxGStreamer.cpp from the addon_config.mk in order to successfully compile a project that uses ofxGStreamer. There is a weirdness with paths happening but didnt investigate more.
One instance acts as the master instance and subsequent instances can be started as clients that will keep in sync with this master instance. The master should always be started first before any clients. You can run multiple slave instances either locally on the same machine ( as long as you use different ports for the osc communication ) or remotely on machines in the same network or on a combination ( i.e slave instances both locally and remotely ).
The clients will poll the clock of the pipeline running on the master machine and calibrate their time in order to keep in sync. This is all handled internally from GStreamer.
For sample usage check the included example.
The code in this repository is distributed under the MIT Licence.
Copyright (c) 2015 Petros Kataras