diff options
Diffstat (limited to 'bin/decode+edit+loop+encode+stream')
-rwxr-xr-x | bin/decode+edit+loop+encode+stream | 13 |
1 files changed, 8 insertions, 5 deletions
diff --git a/bin/decode+edit+loop+encode+stream b/bin/decode+edit+loop+encode+stream index f35f593..6fe79ea 100755 --- a/bin/decode+edit+loop+encode+stream +++ b/bin/decode+edit+loop+encode+stream @@ -8,6 +8,14 @@ set -e INPUT=../src/omni/show0/earth.mp4 LOGO=../../content/icon_small.png +## +## generic functions +## +# shellcheck disable=SC2048,SC2059 +echo_n() { + printf -- "$*" +} + HOST=${1:-morla} if [ "$HOST" = "$(hostname --short)" ]; then IP=127.0.0.1 @@ -54,11 +62,6 @@ elif [ $BITS -le 921600 ]; then # 720p → 921600 SPEED_VP8=15 fi -# shellcheck disable=SC2048,SC2059 -echo_n() { - printf -- "$*" -} - encode_vp8() { bitrate=$1; speed=$2; echo_n "-codec:v vp8 -quality realtime -deadline 1000000 -cpu-used $speed \ -b:v $bitrate -minrate $bitrate -maxrate $bitrate \ |