Merge pull request #51 from outis1one/claude/fix-mvt-video-playback-NhFjs
4-seasons: fix silent exit in grey-frame filter (read + set -e)
This commit is contained in:
+1
-1
@@ -118,7 +118,7 @@ for img in "${all_images[@]}"; do
|
|||||||
if [ "$fsize" -lt "$LARGE_BYTES" ]; then
|
if [ "$fsize" -lt "$LARGE_BYTES" ]; then
|
||||||
read -r stddev mean < <(convert "$img" -colorspace Gray \
|
read -r stddev mean < <(convert "$img" -colorspace Gray \
|
||||||
-format "%[fx:int(standard_deviation*255)] %[fx:int(mean*255)]" \
|
-format "%[fx:int(standard_deviation*255)] %[fx:int(mean*255)]" \
|
||||||
info: 2>/dev/null || echo "255 128")
|
info: 2>/dev/null || echo "255 128") || true
|
||||||
if [ "${stddev:-255}" -lt "$GREY_MIN" ] && [ "${mean:-0}" -gt "$GREY_DARK_FLOOR" ]; then
|
if [ "${stddev:-255}" -lt "$GREY_MIN" ] && [ "${mean:-0}" -gt "$GREY_DARK_FLOOR" ]; then
|
||||||
((grey++)) || true; continue
|
((grey++)) || true; continue
|
||||||
fi
|
fi
|
||||||
|
|||||||
Reference in New Issue
Block a user