summaryrefslogtreecommitdiff
path: root/bin/decode+edit
diff options
context:
space:
mode:
Diffstat (limited to 'bin/decode+edit')
-rwxr-xr-xbin/decode+edit3
1 files changed, 2 insertions, 1 deletions
diff --git a/bin/decode+edit b/bin/decode+edit
index 9f34d01..16c3155 100755
--- a/bin/decode+edit
+++ b/bin/decode+edit
@@ -13,11 +13,12 @@ HEIGHT=360
mkdir -p $(dirname "$OUTPUT")
# + loop-in-filter trick based on http://video.stackexchange.com/a/16933
+# + scale to square pixels as needed
ffmpeg -hide_banner -threads auto -y \
-i "$INPUT" \
-i "$LOGO"
-filter_complex \
- "[0:v]scale=-2:$HEIGHT[bg];
+ "[0:v]scale=iw*sar*$HEIGHT/ih:$HEIGHT,setsar=1[bg];
[bg][1:v]overlay=main_w-overlay_w-20:main_h-overlay_h-20[v]" \
-map '[v]' \
-f yuv4mpegpipe "$OUTPUT"