소스 검색

Search further into files for the coding string. Not sure how it gets more than 100MB into the file, but since that is true we must accomodate.

Zachary Kotlarek 11 년 전
부모
커밋
6df742f412
1개의 변경된 파일과 1개의 추가작업 그리고 1개의 파일을 삭제
  1. 1 1
      findRecode

+ 1 - 1
findRecode

@@ -69,7 +69,7 @@ for i in ${FILES}; do
 
 
 	# We do not want to recode videos that we already encoded
 	# We do not want to recode videos that we already encoded
 	HANDBRAKE=0
 	HANDBRAKE=0
-	STRINGS="`head -c 10000000 "${i}" | strings -n 100`"
+	STRINGS="`head -c 250M "${i}" | strings -n 100`"
 	if echo "${STRINGS}" | grep -q HandBrake; then
 	if echo "${STRINGS}" | grep -q HandBrake; then
 		HANDBRAKE=1
 		HANDBRAKE=1
 	elif echo "${STRINGS}" | grep -E '^x264 - core (79|112|120|125|129|130|142)' | grep -Eq 'crf=2[0-5]\.[0-9]'; then
 	elif echo "${STRINGS}" | grep -E '^x264 - core (79|112|120|125|129|130|142)' | grep -Eq 'crf=2[0-5]\.[0-9]'; then