summaryrefslogtreecommitdiffstats
path: root/roles/prerec/templates/reencode.sh
diff options
context:
space:
mode:
Diffstat (limited to 'roles/prerec/templates/reencode.sh')
-rwxr-xr-xroles/prerec/templates/reencode.sh2
1 files changed, 1 insertions, 1 deletions
diff --git a/roles/prerec/templates/reencode.sh b/roles/prerec/templates/reencode.sh
index b0bdfc7..665fee2 100755
--- a/roles/prerec/templates/reencode.sh
+++ b/roles/prerec/templates/reencode.sh
@@ -33,7 +33,7 @@ shift `expr $OPTIND - 1`
OPTIND=1
input="$1"
-output="$2"
+output="${2:-$(echo $input | sed 's/--original.*/--reencoded.webm/')}"
command="$(cat<<EOF
ffmpeg -y -i "$input" $time_limit \