also latest ffmpeg is broken

This commit is contained in:
2025-02-21 12:55:44 -06:00
parent 4ce5ccb4c4
commit 9fb29771d4
2 changed files with 10 additions and 3 deletions

View File

@@ -117,7 +117,10 @@ encode() {
echo "export VIDEO_ENCODER=\"$VIDEO_ENCODER\"" >> "$ENCODE_FILE"
if [[ "$CROP" == "true" ]]; then
VIDEO_CROP="-vf \"$(get_crop)\""
CROP_VALUE="$(get_crop)"
# crop needs to be defined
test "$CROP_VALUE" == '' && { echo 'Failed to get crop' ; exit 1 ; }
VIDEO_CROP="-vf \"$CROP_VALUE\""
echo "export VIDEO_CROP=\"$VIDEO_CROP\"" >> "$ENCODE_FILE"
fi