From 9b33f8854024b5bdb2d5ccc7935ea50bbe90f8e8 Mon Sep 17 00:00:00 2001 From: Levon Gevorgyan Date: Wed, 29 Jan 2025 13:02:33 -0600 Subject: [PATCH] exit on failure for estimate-fg --- scripts/estimate_fg.sh | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/scripts/estimate_fg.sh b/scripts/estimate_fg.sh index fbd1805..25d1611 100755 --- a/scripts/estimate_fg.sh +++ b/scripts/estimate_fg.sh @@ -191,7 +191,7 @@ encode_segments() { do BASE_VID="$(basename "$VIDEO")" OUTPUT_VIDEO="$SEGMENT_DIR/encoded/encoded_${BASE_VID}" - encode -P 10 -g "$GRAIN" -i "$VIDEO" "$OUTPUT_VIDEO" + encode -P 10 -g "$GRAIN" -i "$VIDEO" "$OUTPUT_VIDEO" || exit 1 BITRATE="$(get_output_bitrate "$OUTPUT_VIDEO")" echo -e "\tgrain: $GRAIN, bitrate: $BITRATE" >> "$GRAIN_LOG" done