Fix quinq-size for aspect ratio not divisable by 2. - various - Various utiliti… | |
git clone git://bitreich.org/various/ git://enlrupgkhuxnvlhsf6lc3fziv5h2hhfrinw… | |
Log | |
Files | |
Refs | |
Tags | |
--- | |
commit b83f066d501f08ecd889ac374543a7e45f2258f8 | |
parent f73345a2bafe79e034ffe3b27a1758e5482962cc | |
Author: Christoph Lohmann <[email protected]> | |
Date: Tue, 18 Oct 2022 20:07:42 +0200 | |
Fix quinq-size for aspect ratio not divisable by 2. | |
Diffstat: | |
M quinq-size | 2 +- | |
1 file changed, 1 insertion(+), 1 deletion(-) | |
--- | |
diff --git a/quinq-size b/quinq-size | |
@@ -15,7 +15,7 @@ function toquinqsize { | |
convert "$filename" -resize 1024 "${output}"; | |
;; | |
video/*) | |
- ffmpeg -i "${filename}" -vf scale=800:-1 "${output}"; | |
+ ffmpeg -i "${filename}" -vf 'scale=w=min(iw\,800):h=-2' "${out… | |
;; | |
esac | |
printf "%s -> %s\n" "${filename}" "${output}"; |