diff options
author | Rudolf Polzer <divverent@xonotic.org> | 2013-06-21 06:22:13 +0200 |
---|---|---|
committer | Rudolf Polzer <divverent@xonotic.org> | 2013-06-21 06:22:13 +0200 |
commit | e7c372cb2ff00edfb24c3a4fcbe5ccda76b92f9f (patch) | |
tree | 543e8a0b3d68b16d78f4777659e805252a23e9bb | |
parent | 1fc7dfe68f7b1eb784fd80ecd6774b52eaab3186 (diff) | |
download | mpv-e7c372cb2ff00edfb24c3a4fcbe5ccda76b92f9f.tar.bz2 mpv-e7c372cb2ff00edfb24c3a4fcbe5ccda76b92f9f.tar.xz |
ildetect: $ILDETECT_RUN_INTERLACED_ONLY to only run the job if not progressive
-rwxr-xr-x | TOOLS/vf_dlopen/ildetect.sh | 14 |
1 files changed, 10 insertions, 4 deletions
diff --git a/TOOLS/vf_dlopen/ildetect.sh b/TOOLS/vf_dlopen/ildetect.sh index 6c9f3003cd..6fd924e224 100755 --- a/TOOLS/vf_dlopen/ildetect.sh +++ b/TOOLS/vf_dlopen/ildetect.sh @@ -15,6 +15,7 @@ esac : ${ILDETECT_MPVFLAGS:=--start=35% --length=35} : ${ILDETECT_DRY_RUN:=} : ${ILDETECT_QUIET:=} +: ${ILDETECT_RUN_INTERLACED_ONLY:=} : ${MAKE:=make} # exit status: @@ -41,7 +42,9 @@ testfun() out=`testfun "$@"` case "$out" in *"probably: PROGRESSIVE"*) - [ -n "$ILDETECT_DRY_RUN" ] || $ILDETECT_MPV "$@" + [ -n "$ILDETECT_DRY_RUN" ] || \ + [ -n "$ILDETECT_RUN_INTERLACED_ONLY" ] || \ + $ILDETECT_MPV "$@" r=$? [ $r -eq 0 ] || exit $(($r | 16)) exit 0 @@ -50,13 +53,15 @@ case "$out" in out2=`ILDETECT_MPVFLAGS="$ILDETECT_MPVFLAGS --vf-pre=pullup,scale" testfun "$@"` case "$out2" in *"probably: TELECINED"*|*"probably: INTERLACED"*) - [ -n "$ILDETECT_DRY_RUN" ] || $ILDETECT_MPV "$@" -vf-pre yadif + [ -n "$ILDETECT_DRY_RUN" ] || \ + $ILDETECT_MPV "$@" -vf-pre yadif r=$? [ $r -eq 0 ] || exit $(($r | 16)) exit 2 ;; *) - [ -n "$ILDETECT_DRY_RUN" ] || $ILDETECT_MPV "$@" -vf-pre pullup + [ -n "$ILDETECT_DRY_RUN" ] || \ + $ILDETECT_MPV "$@" -vf-pre pullup r=$? [ $r -eq 0 ] || exit $(($r | 16)) exit 1 @@ -64,7 +69,8 @@ case "$out" in esac ;; *"probably: INTERLACED"*) - [ -n "$ILDETECT_DRY_RUN" ] || $ILDETECT_MPV "$@" -vf-pre yadif + [ -n "$ILDETECT_DRY_RUN" ] || \ + $ILDETECT_MPV "$@" -vf-pre yadif r=$? [ $r -eq 0 ] || exit $(($r | 16)) exit 2 |