From 943f0e2f7dcdaccbbfc1a07b4218f97e85d70914 Mon Sep 17 00:00:00 2001 From: Jonas Smedegaard Date: Thu, 27 Apr 2017 17:33:18 +0200 Subject: Fix scale before applying watermark. --- bin/decode+edit | 5 ++++- 1 file changed, 4 insertions(+), 1 deletion(-) (limited to 'bin/decode+edit') diff --git a/bin/decode+edit b/bin/decode+edit index 90ec5b0..f6ce75e 100755 --- a/bin/decode+edit +++ b/bin/decode+edit @@ -15,6 +15,9 @@ mkdir -p $(dirname "$OUTPUT") # + loop-in-filter trick based on http://video.stackexchange.com/a/16933 ffmpeg -hide_banner -threads auto -y \ -i "$INPUT" \ - -i "$LOGO" -filter_complex 'overlay=main_w-overlay_w-20:main_h-overlay_h-20' \ + -i "$LOGO" + -filter_complex \ + "[0:v]scale=-1:$HEIGHT[bg]; + [bg][1:v]overlay=main_w-overlay_w-20:main_h-overlay_h-20" \ -an \ -f yuv4mpegpipe "$OUTPUT" -- cgit v1.2.3