|
@@ -52,7 +52,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 10`"
|
|
|
|
|
|
|
+ STRINGS="`head -c 10000000 "${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)' | grep -E 'threads=(12|24)' | grep -Eq 'crf=2[05].0'; then
|
|
elif echo "${STRINGS}" | grep -E '^x264 - core (79|112|120|125|129)' | grep -E 'threads=(12|24)' | grep -Eq 'crf=2[05].0'; then
|