ffmpeg-effect: round image dimensions to even value to accommodate output codec - annna - Annna the nice friendly bot.
(HTM) git clone git://bitreich.org/annna/ git://enlrupgkhuxnvlhsf6lc3fziv5h2hhfrinws65d7roiv6bfj7d652fid.onion/annna/
(DIR) Log
(DIR) Files
(DIR) Refs
(DIR) Tags
(DIR) README
---
(DIR) commit 708d0a8d04e2a151bdd94deaf164783d6a3a2134
(DIR) parent b28050b47adf8ff1d2f2745fddf686d8f209e72b
(HTM) Author: Anders Damsgaard <anders@adamsgaard.dk>
Date: Thu, 21 Oct 2021 22:59:34 +0200
ffmpeg-effect: round image dimensions to even value to accommodate output codec
Signed-off-by: Annna Robert-Houdin <annna@bitreich.org>
Diffstat:
M ffmpeg-effect | 2 +-
1 file changed, 1 insertion(+), 1 deletion(-)
---
(DIR) diff --git a/ffmpeg-effect b/ffmpeg-effect
@@ -68,7 +68,7 @@ process_filter() {
if test "$dur" = "N/A" || test "${dur%.*}" -lt 1; then
tmp=/tmp/ffmpeg-effect.$$.mkv
trap 'rm -f "$tmp"' EXIT INT TERM HUP
- $ffmpeg_common -loop 1 -to 10 -i "$2" "$tmp"
+ $ffmpeg_common -loop 1 -to 10 -i "$2" -vf "pad=ceil(iw/2)*2:ceil(ih/2)*2" "$tmp"
set -- $1 "$tmp" $3
fi