[MPlayer-users] Multiple slave modes not working
Tomasz Borsukiewicz
tomasz.borsukiewicz at trias.pl
Sun Dec 16 11:53:17 CET 2012
> I have 4 monitors and I would like them all to show the same movie.
> MPlayer dev-SVN-r35127-4.7-openSUSE Linux 12.2 (x86_64)-Packman (C)
> 2000-2012 MPlayer Team CPU vendor name: GenuineIntel max cpuid level:
> 10
> CPU: Intel(R) Core(TM)2 Quad CPU Q9550 @ 2.83GHz (Family: 6, Model:
> 23, Stepping: 7)
> extended cpuid-level: 8
> extended cache-info: 402686016
> Detected cache-line size is 64 bytes
> CPUflags: MMX: 1 MMX2: 1 3DNow: 0 3DNowExt: 0 SSE: 1 SSE2: 1 SSSE3: 1
> Compiled with runtime CPU detection.
>
> I run NVidea Driver Version: 304.43
>
> I run the mplayer command via slave mode (and see that it starts on
> DISPLAY=:0.2)
> mplayer -slave -quiet -idle -fs -udp-master -input
> file=/tmp/mplayer.fifo
>
> To start a movie I use (via a php script) echo loadfile /dir/movie.mkv
> 0 > /tmp/mplayer.fifo
>
> To start on a second monitor I use:
> DISPLAY=:0.3 mplayer -really-quiet -fs -nosound -udp-slave
> /dir/movie.mkv
>
> So now I have 1 sound source and the movie running on two monitors. No
> issues so far. However when I want to run it on a third monitor with
> e.g.
> DISPLAY=:0.1 mplayer -really-quiet -fs -nosound -udp-slave
> /dir/movie.mkv
>
> Running with -v instead of -really-quiet shows:
> Audio: no sound
> Freeing 0 unused audio chunks.
> Starting playback...
> [mpeg4_vdpau @ 0xea1da0]looks like this file was encoded with
> (divx4/(old)xvid/opendivx) -> forcing low_delay flag
> *** [vo] Direct Rendering (slices) mp_image_t, 512x296x0bpp RGB packed,
> 0 bytes Unicode font: 5179 glyphs.
> Unicode font: 5179 glyphs.
> V: 0.0 1/ 1 ??% ??% ??,?% 0 0
> *** [vo] Direct Rendering (slices) mp_image_t, 512x296x0bpp RGB packed,
> 0 bytes <wait about 30 seconds>
> V: 0.0 2/ 2 ??% ??% ??,?% 0 0
> *** [vo] Direct Rendering (slices) mp_image_t, 512x296x0bpp RGB packed,
> 0 bytes
> V: 26.2 657/657 0% 0% 0.0% 0 0
> <Starts playing from the start>
>
> I will get a black screen and then after a while it will start playing
> the movie from the start. So it seems as if it isn't connecting to the
> udp server a second time.
>
> Is there anything I am doing wrong? Is there anything I can test? Or
> can I only run one slave on a machine? Is there anything else I can do
> to test or give information?
>
> houghi
> --
> > Beware of he who would deny you access to information, <
> > for in his heart he dreams himself your master.
> <
> > Commissioner Pravin Lal: "U.N. Declaration of Rights" <
Normally, you can only run one udp-slave instance per machine.
Second udp-slave instance is trying to bind to the same port as the first
one, but this is not possible.
As a workaround, set second and third udp-slave instances to different ports
and replicate UDP traffic to them.
You can use iptables tee functionality to do that or third party udp
relay/proxy software.
Personally, I've been using samplicator
(http://code.google.com/p/samplicator/).
I was running 8 udp-slave instances from one machine, all perfectly synced.
Tom
More information about the MPlayer-users
mailing list