We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
2 parents 396ec9e + 6dec46f commit e053559Copy full SHA for e053559
src/make_short.sh
@@ -236,9 +236,12 @@ case "$FIT" in
236
*) echo "Invalid --fit: $FIT"; exit 1 ;;
237
esac
238
239
-# Overlay left black margin on the final 1080x1920 frame without distorting content
+# Apply left safety margin without covering or cropping content:
240
+# - scale to fit within (1080 - SAFE_LEFT) x 1920 preserving AR
241
+# - then pad to 1080x1920 with left offset SAFE_LEFT and vertical centering
242
if (( SAFE_LEFT > 0 )); then
- vf_chain+=("drawbox=x=0:y=0:w=${SAFE_LEFT}:h=ih:color=black:t=fill")
243
+ vf_chain+=("scale=${TW}:1920:force_original_aspect_ratio=decrease:force_divisible_by=2")
244
+ vf_chain+=("pad=1080:1920:${SAFE_LEFT}:floor((oh-ih)/2)")
245
fi
246
247
# Pixel/Display aspect
0 commit comments