Mercurial > mplayer.hg
view TOOLS/mplmult.sh @ 27146:a8681ded2d41
r25756: Document vo gl lscale=3
r25757: Add experimental unsharp-mask OpenGL scaler.
r25767: misc spelling fixes
r25768: misc markup fixes
r25769: better ao/vo profile examples
r25786: Add a fragment program for 5x5 unsharp masking
r25821: (instead of adding quotation mark, this added a missing paragraph!)
r25955: (previously applied)
r25973: Hint about possible libmpeg2 problems with -hardframedrop
r25984: Slightly document alpha for OSD color
r26014: -dumpstream will not dump chapters anymore
r26015: Document that framedrop needs -no-correct-pts
r26017: removed wrong example
author | kraymer |
---|---|
date | Mon, 30 Jun 2008 19:35:36 +0000 |
parents | 9b7f3566b603 |
children | abd0a4e9daa0 |
line wrap: on
line source
#!/bin/sh # example how to output video on multiple windows in sync. # might be even more useful in combination with vo ggi # to distribute the video arbitrarily dir=/tmp/$$ count=$1 shift if test 0"$count" -lt 1; then echo "At least 1 slave instance must be used." echo "" echo "Usage:" echo "./mplmult.sh n mplayer-opts" echo "n number of MPlayer instances that display the video" echo "mplayer-opts anything you would specify to mplayer," echo " more than one file will usually not work" exit 1 fi mkdir -m 700 $dir if test $? -ne 0; then echo "Could not create temp dir!" exit 1 fi mkfifo $dir/stream.yuv i=1 fifo_list="" while test $i -le $count; do fifo_list="$dir/mp$i $fifo_list" let i=$i+1 done mkfifo $fifo_list (cat $dir/stream.yuv | tee $fifo_list > /dev/null ) & for fifo in $fifo_list; do # -benchmark is neccessary so that it will not do any timing. # the master instance already takes care of it and not specifying # it will break A-V sync. mplayer -nocache -quiet -benchmark "$fifo" > /dev/null 2>&1 & done mplayer -nocache -fixed-vo -vo yuv4mpeg:file=$dir/stream.yuv "$@" rm -rf $dir