From cfb73b983efc6dbc6f0d3ae8ee89b600c8a70999 Mon Sep 17 00:00:00 2001 From: Jonas Smedegaard Date: Mon, 22 May 2017 09:23:32 +0200 Subject: Tidy function filter_split_codec(). --- bin/stream | 6 +++++- 1 file changed, 5 insertions(+), 1 deletion(-) (limited to 'bin') diff --git a/bin/stream b/bin/stream index 72a2710..39e8929 100755 --- a/bin/stream +++ b/bin/stream @@ -208,7 +208,11 @@ filter_watermark() { } filter_split_codec() { heights_webm=$1; heights_mpeg=$2; codeccount=$(valuedargcount "$@") - printf_each "[v%s]split=$codeccount$(printf_each '[v%swebm]' "$heights_webm")$(printf_each '[v%smpeg]' "$heights_mpeg")" "$HEIGHTS" + for height in $HEIGHTS; do + echo_n "[v%s]split=$codeccount" + printf_each '[v%swebm]' "$heights_webm" + printf_each '[v%smpeg]' "$heights_mpeg" + done } encode_opus() { -- cgit v1.2.3