From 12d0d5167f2293aa9c84eeefc94ff39cbe182ade Mon Sep 17 00:00:00 2001 From: Oliver Atkinson Date: Thu, 2 Jan 2025 14:08:34 -0700 Subject: [PATCH] working :) --- run.sh | 10 +++++----- 1 file changed, 5 insertions(+), 5 deletions(-) diff --git a/run.sh b/run.sh index 0de3526..d290553 100755 --- a/run.sh +++ b/run.sh @@ -7,18 +7,18 @@ Y=70 convert \ -background none -fill black \ -pointsize 60 -size ${X}x${Y} -gravity center \ - label:TEST1 mask.png + label:123456 mask.png # Create large static image convert -size 2000x${Y} canvas: +noise Random -monochrome -alpha off background.png # Create video -ffmpeg -y -framerate 60 -loop true -t 10 -i background.png -i mask.png \ +ffmpeg -loglevel error -hide_banner -y -framerate 60 -loop true -t 10 -i background.png -i mask.png \ -filter_complex " - [0] crop=x=n:w=${X}:h=${Y} [bg]; - [0] crop=x=out_w-n:w=${X}:h=${Y} [fg]; + [0] crop=x=n:w=${X}:h=${Y},split[bg][a]; + [a] hflip [flip]; [1] alphaextract [mask]; - [fg][mask] alphamerge [text]; + [flip][mask] alphamerge [text]; [bg][text] overlay"\ -c:v libx264 -crf 10 -an out.mp4