summaryrefslogtreecommitdiff
path: root/bin/stream
diff options
context:
space:
mode:
authorJonas Smedegaard <dr@jones.dk>2017-05-22 09:23:32 +0200
committerJonas Smedegaard <dr@jones.dk>2017-05-22 09:23:32 +0200
commitcfb73b983efc6dbc6f0d3ae8ee89b600c8a70999 (patch)
tree38fe5b9b36ea70e9389f4b7bdce298d63d71843f /bin/stream
parent630b88cc10d7bfbae97b96584a63342b97a774ac (diff)
Tidy function filter_split_codec().
Diffstat (limited to 'bin/stream')
-rwxr-xr-xbin/stream6
1 files changed, 5 insertions, 1 deletions
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() {