[MPlayer-dev-eng] [PATCH] Network synchronized playback using UDP

Jason Holt jholt at google.com
Mon Mar 23 22:22:39 CET 2009


I've updated the patch so that the master sends out its datagram just before
the screen update, instead of sending it before it sleeps in anticipation of
the update.  Simple enough.  This should keep the slaves in sync when simply
playing through a file with no seeking.

Uoti was also correct that the slaves end up one frame behind after a seek,
since the master doesn't send out a datagram until the frame after the
seek.  I'm happy to fix that as well if it's worth the extra complexity (for
my purposes, being 1 frame behind isn't very noticeable).

The problem of constant seeking when the keyframes are spaced just right is
a trickier issue.  My inclination is to tell the user "don't do that", since
people building video walls probably have some control over the encoding of
their videos.  But I'm also happy to try to address it; perhaps the slaves
could check after seeking to see if advancing a frame without waiting for
the master would get them closer to the master's position.
-------------- next part --------------
A non-text attachment was scrubbed...
Name: mplayer-udp-patch-2.diff
Type: text/x-diff
Size: 5100 bytes
Desc: not available
URL: <http://lists.mplayerhq.hu/pipermail/mplayer-dev-eng/attachments/20090323/34af9dac/attachment.diff>


More information about the MPlayer-dev-eng mailing list