1
0
mirror of https://github.com/mpv-player/mpv synced 2025-02-28 11:20:56 +00:00

vf_dlopen ildetect: make the wrapper shell script more robust

This commit is contained in:
Rudolf Polzer 2013-06-16 17:18:45 +02:00
parent dcd36c79c7
commit fb04351f76

View File

@ -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} "$@"