[MPlayer-users] mplayer 2 dumps in the same time

Oliver Seitz info at vtnd.de
Tue Apr 5 11:38:33 CEST 2011

On 05.04.2011 10:27, Victor Petrescu wrote:
> Good day to all.
> I need to make 2 dumps (in 2 pipes actually) in the same time. I guess I
> could be done with tee but I am doing something wrong and I don't know what.

One pipe should only be read by one task. So you need three pipes:

mkfifo input
mkfifo output1
mkfifo output2

Then start the copy process:

cat input | tee output1 >output2 &

then start the dump:

mplayer [URL] --dumpstream --dumpfile input

When mplayer stops and closes the pipe, the copy task should die by itself.


More information about the MPlayer-users mailing list