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

Stefan Sassenberg stefan.sassenberg at gmx.de
Tue Apr 5 12:48:06 CEST 2011


Am 05.04.11 12:29, schrieb Victor Petrescu:
> I tried like you said (also tried stefan version) but it doesn't work...
> Here's what I did:
>
> #mkfifo input
> #mkfifo pipe.avi
> #mkfifo pipe2.avi
> #cat input | tee pipe.avi>pipe2.avi&
>
> Now I tested the output:
>
> #mplayer pipe.avi ->  error connecting to soket
> #mplayer pipe2.avi ->  same
> #mplayer input ->  working fine
>
> Can you please point what I've done wrong? Thank you.
>
> 2011/4/5 Oliver Seitz<info at vtnd.de>
>
>> 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.
>>

Sorry for top posting (last post)

Does it make sense to play pipes? I wouldn't create pipe.avi and 
pipe2.avi as pipes but as regular files (done by tee)


More information about the MPlayer-users mailing list