commit c3b35a6a19f8f5e8e115f6aec3d0193bf7caa92d Author: Slendi Date: Wed Aug 6 19:31:34 2025 +0300 Initial commit Signed-off-by: Slendi diff --git a/.gitignore b/.gitignore new file mode 100644 index 0000000..cfc93ba --- /dev/null +++ b/.gitignore @@ -0,0 +1,2 @@ +base.webm +out.mp4 diff --git a/base.mp4 b/base.mp4 new file mode 100644 index 0000000..12a1ffb Binary files /dev/null and b/base.mp4 differ diff --git a/wtfitpoc b/wtfitpoc new file mode 100755 index 0000000..1fc1e19 --- /dev/null +++ b/wtfitpoc @@ -0,0 +1,12 @@ +#!/usr/bin/env bash +# overlay.sh + +set -e + +IMG="$1" +[ -z "$IMG" ] && { echo "Usage: $0 overlay.png"; exit 1; } + +ffmpeg -y -i base.mp4 -i "$IMG" \ + -filter_complex "[1:v]scale=1059:529:force_original_aspect_ratio=decrease[ov];[0:v][ov]overlay=306:540-h:enable='gte(n\,159)'" \ + -af loudnorm=I=-16:TP=-1.5:LRA=11 \ + -c:v libx264 -c:a aac -b:a 192k out.mp4