summaryrefslogtreecommitdiffstats
path: root/TOOLS/mplmult.sh
diff options
context:
space:
mode:
authorwm4 <wm4@mplayer2.org>2012-07-28 18:00:33 +0200
committerwm4 <wm4@mplayer2.org>2012-07-28 20:44:58 +0200
commit6dc124962527556512b6b18fbf23f9b6af9f331c (patch)
tree9677196e5bbbaf3a8ee7e11bb78eb88c765a0e90 /TOOLS/mplmult.sh
parent7d4576cf79bc578ce7c103e4df70695346c7eec7 (diff)
downloadmpv-6dc124962527556512b6b18fbf23f9b6af9f331c.tar.bz2
mpv-6dc124962527556512b6b18fbf23f9b6af9f331c.tar.xz
TOOLS: remove useless crap
Most of the scripts in TOOLS seem entirely useless. Remove them. There were about 3 types of scripts: - apparent developer tools (like file format dumpers, benchmarks) => I doubt any mplayer developer still alive even uses these - helpers for encoding or ripping stuff => mencoder is gone, at least from this version of mplayer - helpers meant for users (launching mplayer in weird ways, etc.) => just no, it will cause you more pain than gain So no, there is nothing useful. Under the scripts not deleted, these are needed for building mplayer: file2string.py matroska.py vdpau_functions.py These might have _some_ use (but still questionable): binary_codecs.sh checktree.sh
Diffstat (limited to 'TOOLS/mplmult.sh')
-rwxr-xr-xTOOLS/mplmult.sh45
1 files changed, 0 insertions, 45 deletions
diff --git a/TOOLS/mplmult.sh b/TOOLS/mplmult.sh
deleted file mode 100755
index 8621c010c0..0000000000
--- a/TOOLS/mplmult.sh
+++ /dev/null
@@ -1,45 +0,0 @@
-#!/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"
- 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