[MPlayer-users] play one mpeg-stream on two mplayer-sessions

Andreas Krings andreas.krings at rwth-aachen.de
Wed Jan 1 18:41:46 CET 2003


Diego Zuccato wrote:
> [Automatic answer: RTFM (read DOCS, FAQ), also read DOCS/bugreports.html]
> Andreas Krings wrote:
> 
> 
>>I have tried it with named-pipes for example but the result is a broken
>>picture (it looks like that  each of the both mplayers can only read
>>half of the stream.). So there are many colored rectangles (most green)
>>all over the picture.
> 
> Never heard "tee" ?
> 
> BYtE,
>  Diego.
>

Oh yes, i have heard of it and have tried it, but tee does not worked 
for me.When i try

"mkfifo /stream1 /stream2"

and then

"tee /stream1 < /dev/video > /stream2"

or

"tee /stream1 /stream2 < /dev/video > /dev/null"

I got the problem that in the first case i can only read from stream1
after i tried to read from stream2 (with getting no data). Without
reading from stream2 first i can try to read from stream1 for as many 
time as i like but did not get any data. For getting the data i have to 
read from stream2 first (without getting data), and then from stream1 to 
get the data.
Furthermore when i get data from stream1 i cannot get data from
stream2 (it was not possible to get data from stream2 at any time for
me, even if i first tried stream1 and then stream2 or something like
that).
In the second try i only got data when i first red from stream1
(without sucess) and then red from stream2. In no other case i got
data from any stream!!!!
So i think, tee is not able to stream data into two named pipes at one
time, is this possible??!? Or is this a bug in tee??

And if this the case, is there another way or another tool that can
copy or divide a stream into two streams or are there any other options 
for mplayer or other videoprograms which can output their picture on two 
monitors (from a Mpeg2-ts stream) in realtime??

Thanks much and a happy new year!!!

Andreas Krings

PS: tee --version is 2.0.11 and I'm using bash --version 2.05b.0




More information about the MPlayer-users mailing list