From fb04351f76d00d8d5e20ca172172921b2bb35f13 Mon Sep 17 00:00:00 2001 From: Rudolf Polzer Date: Sun, 16 Jun 2013 17:18:45 +0200 Subject: vf_dlopen ildetect: make the wrapper shell script more robust --- TOOLS/vf_dlopen/ildetect.sh | 9 ++------- 1 file changed, 2 insertions(+), 7 deletions(-) (limited to 'TOOLS') diff --git a/TOOLS/vf_dlopen/ildetect.sh b/TOOLS/vf_dlopen/ildetect.sh index e9027077d2..d5c7549e10 100755 --- a/TOOLS/vf_dlopen/ildetect.sh +++ b/TOOLS/vf_dlopen/ildetect.sh @@ -17,16 +17,11 @@ testfun() { ${MPV:-mpv} "$@" \ -vf dlopen="$MYDIR/ildetect.so" \ - -o /dev/null -of nut -ovc rawvideo -no-audio \ - | grep "^ildetect:" + -o /dev/null -of rawvideo -ofopts-clr -ovc rawvideo -ovcopts-clr -no-audio \ + | tee /dev/stderr | grep "^ildetect:" } out=`testfun "$@"` -echo -echo -echo "$out" -echo -echo case "$out" in *"probably: PROGRESSIVE"*) ${MPV:-mpv} "$@" -- cgit v1.2.3