summaryrefslogtreecommitdiff
path: root/bin
diff options
context:
space:
mode:
Diffstat (limited to 'bin')
-rwxr-xr-xbin/decode+edit5
1 files changed, 4 insertions, 1 deletions
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"