Explorar o código

Less specific local recode detection. We do not want to be CPU-bound.

Zachary Kotlarek %!s(int64=11) %!d(string=hai) anos
pai
achega
cac886a8c2
Modificáronse 1 ficheiros con 2 adicións e 2 borrados
  1. 2 2
      findRecode

+ 2 - 2
findRecode

@@ -5,7 +5,7 @@ FOLDER="`~/bin/video/mediaPath`"
 MIN_RATE=275000
 MIN_SIZE="425M"
 MIN_HEIGHT=500
-NAME_REGEX="\.(mov|avi|mkv|mp4|ts|mpg|mpeg)$"
+NAME_REGEX="\.(mov|avi|mkv|mp4|ts|mpg|mpeg|m4v)$"
 
 # Command-line overrides
 if [ -n "${1}" ]; then
@@ -72,7 +72,7 @@ for i in ${FILES}; do
 	STRINGS="`head -c 10000000 "${i}" | strings -n 100`"
 	if echo "${STRINGS}" | grep -q HandBrake; then
 		HANDBRAKE=1
-	elif echo "${STRINGS}" | grep -E '^x264 - core (79|112|120|125|129|130)' | grep -E 'threads=(12|24)' | grep -Eq 'crf=2[0-5]\.[0-9]'; then
+	elif echo "${STRINGS}" | grep -E '^x264 - core (79|112|120|125|129|130)' | grep -Eq 'crf=2[0-5]\.[0-9]'; then
 		HANDBRAKE=1
 	fi
 	if [ $HANDBRAKE -eq 1 ]; then