From c54df7a0458001693ddd996dc4222e3ff00ad487 Mon Sep 17 00:00:00 2001 From: Leo Vivier Date: Fri, 2 Dec 2022 08:51:04 +0100 Subject: Prototype upwards fps-limiter --- roles/prerec/templates/reencode.sh | 17 +++++++++++++++-- 1 file changed, 15 insertions(+), 2 deletions(-) (limited to 'roles/prerec') diff --git a/roles/prerec/templates/reencode.sh b/roles/prerec/templates/reencode.sh index 5a0128b..c9c87e1 100755 --- a/roles/prerec/templates/reencode.sh +++ b/roles/prerec/templates/reencode.sh @@ -8,7 +8,12 @@ cpu=4 time_limit="" print_only=false limit_resolution=1080 -limit_fps=30.01 +limit_fps=29.99 + +with_suffix() { + suffix="$1" + echo "$input" | sed "s/--original\.\([a-z0-9]*\$\)/--$suffix\.\\1/" +} while getopts :q:c:t:s OPT; do case $OPT in @@ -33,16 +38,24 @@ shift `expr $OPTIND - 1` OPTIND=1 input="$1" +input_limited="$(with_suffix "original-limited")" output="$2" command="$(cat<