Can you use 'tee' to accomplish it?  

mkfifo pipe1
mkfifo pipe2

tee pipe1 pipe2 < $1 >/dev/null &
yuvscaler ... pipe1  &
mplayer ... pipe2 &
wait

'tee' will take data from '$1' and write to pipe1 and pipe2 (and also to stdout, 
therefore the redirection of its stdout to /dev/null, although you could actually do 
'tee pipe1 < $1 | yuvscaler' if you wanted to, then yuvscaler would pull from tee's 
stdout).

-- Ray


On Tue, 19 Aug 2003 15:14:33 +0200
Japie <[EMAIL PROTECTED]> wrote:

> Hello guys,
> 
> I like to use yuvscaler(or whatever yuvtool) as filter between a mplayer
> and ffmpeg.
> Creating a pipe to yuvscaler is n problem, but it has to output in
> another pipe and I don't know how to do this.
> I use:
> 
> mkfifo -m 660 stream.yuv
> mplayer -nosound -benchmark -noframedrop -vo yuv4mpeg -osdlevel 0 $1 &
> cat stream.yuv | yuvscaler -v 0 -M WIDE2STD -O SIZE_352x288 -n p
> 
> And can encode with:
> ffmpeg -f yuv4mpegpipe -i rescaled_stream.yuv -f mpeg1video -b 1152
> ffmpeg_kvcd.m1v
> 
> How do I make the output of yuvscaler apear in rescaled_stream.yuv?
> -- 
> Groetjes Japie
> http://japie.is.dreaming.org
> 
> Gnu/Linux
> 2.4.20-wolk4.1s i686
> 
> System Error - Virus 'MS-WINDOWS' found!! Erase [Y/Y]?
> ;^)
> 
> 
> 
> -------------------------------------------------------
> This SF.net email is sponsored by Dice.com.
> Did you know that Dice has over 25,000 tech jobs available today? From
> careers in IT to Engineering to Tech Sales, Dice has tech jobs from the
> best hiring companies. http://www.dice.com/index.epl?rel_code=104
> _______________________________________________
> Mjpeg-users mailing list
> [EMAIL PROTECTED]
> https://lists.sourceforge.net/lists/listinfo/mjpeg-users



-------------------------------------------------------
This SF.net email is sponsored by Dice.com.
Did you know that Dice has over 25,000 tech jobs available today? From
careers in IT to Engineering to Tech Sales, Dice has tech jobs from the
best hiring companies. http://www.dice.com/index.epl?rel_code=104
_______________________________________________
Mjpeg-users mailing list
[EMAIL PROTECTED]
https://lists.sourceforge.net/lists/listinfo/mjpeg-users

Reply via email to