ffmpeg-effect: round image dimensions to even value to accommodate output codec… | |
git clone git://bitreich.org/annna/ git://enlrupgkhuxnvlhsf6lc3fziv5h2hhfrinws6… | |
Log | |
Files | |
Refs | |
Tags | |
README | |
--- | |
commit 708d0a8d04e2a151bdd94deaf164783d6a3a2134 | |
parent b28050b47adf8ff1d2f2745fddf686d8f209e72b | |
Author: Anders Damsgaard <[email protected]> | |
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 <[email protected]> | |
Diffstat: | |
M ffmpeg-effect | 2 +- | |
1 file changed, 1 insertion(+), 1 deletion(-) | |
--- | |
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:ce… | |
set -- $1 "$tmp" $3 | |
fi | |