[MPlayer-users] mplayer 2 dumps in the same time
Victor Petrescu
victor.petrescu13 at gmail.com
Tue Apr 5 12:51:42 CEST 2011
I kind of need the pipes because I need to stream (ffserver way) from on
file and transcode the other so... can't really do it from a regular file.
2011/4/5 Stefan Sassenberg <stefan.sassenberg at gmx.de>
> 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)
>
> _______________________________________________
> MPlayer-users mailing list
> MPlayer-users at mplayerhq.hu
> https://lists.mplayerhq.hu/mailman/listinfo/mplayer-users
>
More information about the MPlayer-users
mailing list