[MPlayer-users] video out on two screens

Reimar Döffinger Reimar.Doeffinger at stud.uni-karlsruhe.de
Wed Dec 1 15:52:28 CET 2004


Hi,
> I need to show a video on two screens simultaneusly: one on TV fullscreen
> and other copy - in the monitor window.  Till now I've found none measures
> to do this as is.
> 
> So, questions:
> 1. Is there a way to do this in default distribution?

If you're using linux or BSD or any real OS that deserves the name, yes.
;-). Explanation is below.

> 2. If not - where I can find a documentation regarding creating my vo
>    module which would stream into two x11 (or x11 and xv) vo modules?

I don't think you will have much fun with that approach - at least
creating two instances of the same vo currently is not possible.

> 2.1 How can I attach my module into main module - currently I can't find a
>     way to do this, judging from the source code.

Don't know what exactly you mean by "attach". You would need to create a either a vo (in libvo subdir) or vf (in libmpcodecs subdir). The functions those modules use are described somewhere in DOCS/tech.


My solution to this is:

In one console do:

mkfifo stream.yuv
mkfifo mp1
mkfifo mp2
mplayer -vo yuv4mpeg <file>

This mplayer instance decodes (and unless you make it use -ao pcm and
feed the sound via another fifo to one of the other MPlayer instances
will also play the sound)

And in another one:

cat stream.yuv | tee mp1 mp2 > /dev/null

And in yet two more (these will display the video):

mplayer mp1

and

mplayer mp2

Probably audio and video will be out of sync like this, in that case you
should have a look at the -ao pcm option and use -audiofile with one of the mplayer instances that do the displaying.

In case you happen to make this idea in a nice, well-working script or
something, please post it here, I'm sure there are others who will be
interested.

Greetings,
Reimar Döffinger




More information about the MPlayer-users mailing list