exit on failure for estimate-fg

This commit is contained in:
2025-01-29 13:02:33 -06:00
parent 16b5c0a6a7
commit 9b33f88540

View File

@@ -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