ofxPiMapper icon indicating copy to clipboard operation
ofxPiMapper copied to clipboard

Video Sync

Open mungle opened this issue 8 years ago • 13 comments

Hello, is it possible to sync videos over network? Thank you

mungle avatar Jul 26 '17 00:07 mungle

One way would be to encode the video so you can seek to frames, upload the video to all your RasPi devices and add OSC receivers to receive sync messages from a main RasPi that is playing back the same video and sending frame numbers to all connected RasPi's at once.

Another way would be to stream video from a computer or Raspberry Pi and use omxPlayer to connect to that stream from all of your Raspberry Pi's.

kr15h avatar Jul 26 '17 10:07 kr15h

Once tried to sync with this approach: https://github.com/turingmachine/omxplayer-sync But the problem which must to be solved first: https://github.com/jvcleave/ofxOMXPlayer/issues/96

magdesign avatar Jul 26 '17 13:07 magdesign

same problem. I need to sync two video on two raspberry (omxplayer-sync works very well), but i need also some mapping.. Other solution?

pietrondo avatar Nov 24 '17 15:11 pietrondo

There is only a hardware solution so far. I bought a HDMI recorder on ebay, doing the mapping with PiMapper, record the output, put it as videofile back onto the pi and then use omxplayer-sync.

magdesign avatar Nov 24 '17 16:11 magdesign

does VLC allow this ? I know it streams well...

Neon22 avatar Nov 24 '17 21:11 Neon22

If we are talking about raspberrypi, there is only omxplayer available for the solution since no other player is supporting the hardware chip.

You could fork ofxomxplayer and add the missing dbus support, then I will make the syncscript.

magdesign avatar Nov 25 '17 09:11 magdesign

yep. at the moment we make an installation with omxplayer-sync . but the best is to use ofxpimapper. but ofxomxplayer doesn't support the sync at the moment

pietrondo avatar Nov 25 '17 11:11 pietrondo

By now it should be possible to sync several PiMapper RPis over the network since ofxOMXPlayer was rewritten from scratch. The example-shader has controls to pause and seek forward a video and also displays the current frame number.

What we now need is an option to start ofxPiMapper as slave, so it would start receiving the timecode from another PiMapper instance, check if it is in the same position, if not, seek forward, a bit ahead of the masters timecode, go to pause and when the master reached the same time, start the video.

We made a script with this approach for omxplayer and it works very well.

Any motivated openframeworks coder how can help with this please contact me for paid work.

magdesign avatar Feb 26 '20 08:02 magdesign

Good to know that OMXPlayer got rewritten. I am trying to source enough time to take a closer look.

kr15h avatar Feb 28 '20 18:02 kr15h

Hey @magdesign! (greetings form Berne ;-)) Did you manage to make it work? I'm looking exactly for the same thing. I got my Pi 3 B+ working with omxplayer-sync and ofxPimapper. Would super cool now to use the sync feature from OMXPlayer in the mighty ofPiMapper. What do you think? Thanks a lot! Greetings, MM

mmunderlinegithub avatar May 05 '21 15:05 mmunderlinegithub

@mmunderlinegithub yes, sync mapping is possible. I sponsored a developer to solve mapping sync over network, its available with my outstanding PocketVJ Exhibition

magdesign avatar May 05 '21 16:05 magdesign

@magdesign thank you for the fast reply. alright, cool. Unfortunatly I already bought my Pis and thus can't afford your soultion. :(. Is there a way to buy just the script to link those two tools? thank you in any case

mmunderlinegithub avatar May 05 '21 19:05 mmunderlinegithub

@magdesign sorry again. If a buy two of these: https://www.pi-shop.ch/raspberry-pi-1-model-b. I'll be able to run your software (https://github.com/magdesign/PocketVJ) on it to sync a video while mapping it, right? I'll make a small donation if it works. :)

mmunderlinegithub avatar May 06 '21 13:05 mmunderlinegithub