diff options
author | Jonas Smedegaard <dr@jones.dk> | 2017-05-22 09:23:32 +0200 |
---|---|---|
committer | Jonas Smedegaard <dr@jones.dk> | 2017-05-22 09:23:32 +0200 |
commit | cfb73b983efc6dbc6f0d3ae8ee89b600c8a70999 (patch) | |
tree | 38fe5b9b36ea70e9389f4b7bdce298d63d71843f | |
parent | 630b88cc10d7bfbae97b96584a63342b97a774ac (diff) |
Tidy function filter_split_codec().
-rwxr-xr-x | bin/stream | 6 |
1 files changed, 5 insertions, 1 deletions
@@ -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() { |