Log in

View Full Version : MPlayer (2 instances) synchronized playback on a single machine?


Selur
24th August 2011, 14:08
MPlayer synchronized playback on a single machine?

Reading http://www.mplayerhq.hu/DOCS/HTML/en/networksync.html I thought it should be possible to run to instances of mplayer synchronized on a single machine using:

"G:\Hybrid\mplayer.exe" -udp-slave "G:\Hybrid\test - clips\test.avi" -forcedsubsonly -nosub -nofontconfig -nosound for the slave and
"G:\Hybrid\mplayer.exe" -udp-master "G:\Hybrid\test - clips\test.avi" -forcedsubsonly -nosub -nofontconfig for the master
(firewall is disabled)

When I first start the master then the slave, master the master runs through the clip, but the slave is frozen. (Playback windows opens, but no response or action from it)
When I first start the slave it immediately starts playing at around 1fps, and jumps to the end of the clip and freezes there.
Independently which process I start first, as soon as the master is finished, the client finishes too with: "Option -udp-slave: exiting because master exited"
Strange thing is, that if I drag the playwindow of the master around the slave changes the current frame, from time to time,..
So it seems like the slave gets the infos from the master, but does not properly respond to them.


If someone knows what I'm doing wrong of if this isn't possible at all, please post. :)

Cu Selur

Ps.: I'm using: MPlayer Sherpya-SVN-r33883-4.2.5 (C) 2000-2011 MPlayer Team

Reimar
24th August 2011, 20:21
If someone knows what I'm doing wrong of if this isn't possible


Using Windows. For network-related stuff even.
Ok, a bit more seriously: Windows networking code is a crappy mess that does not conform to any kind of standard and the special-case code that MPlayer had for it was quite broken.
I fixed it now in MPlayer SVN.
There should be no need to disable the firewall btw. I hope at least that no firewall is so insane to block local communication - at least not in a default setup.

Selur
24th August 2011, 21:08
Disabled the firewall manly to be sure it's not a firewall issue. ;)

"I fixed it now in MPlayer SVN."
Thanks a lot! Now I just need a windows build. ;)
(damn hdd crash that ate my build system)

Cu Selur

Reimar
24th August 2011, 21:43
I'm afraid I can't help you there. I can only make builds without external dependencies.
That you can get yourself by installing cygwin and selecting the mingw-w64 package, but it lacks a large load of features.