From e6af167d6dd2692626db42810d6cd71544b5929b Mon Sep 17 00:00:00 2001 From: Levon Gevorgyan Date: Mon, 29 Jul 2024 19:58:21 -0500 Subject: [PATCH] increase limit for some reason --- scripts/recc_encode.sh | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/scripts/recc_encode.sh b/scripts/recc_encode.sh index e6f58e6..bf9432a 100755 --- a/scripts/recc_encode.sh +++ b/scripts/recc_encode.sh @@ -30,7 +30,7 @@ get_crop() { # get cropdetect value for first 1/5 of input TIME_ENC="$(echo "$TOTAL_SECONDS / 5" | bc)" ffmpeg -hide_banner -ss 0 -discard 'nokey' -i "$INPUT" -t "$TIME_ENC" \ - -map '0:v:0' -filter:v:0 'cropdetect=limit=24:round=16:skip=2:reset_count=0' \ + -map '0:v:0' -filter:v:0 'cropdetect=limit=64:round=16:skip=2:reset_count=0' \ -codec:v 'wrapped_avframe' -f 'null' '/dev/null' -y 2>&1 | grep -o crop=.* \ | sort -bh | uniq -c | sort -bh | tail -n1 | grep -o "crop=.*" }