diff options
Diffstat (limited to 'bin/decode+edit+encode')
-rwxr-xr-x | bin/decode+edit+encode | 13 |
1 files changed, 8 insertions, 5 deletions
diff --git a/bin/decode+edit+encode b/bin/decode+edit+encode index 3735b2f..582b429 100755 --- a/bin/decode+edit+encode +++ b/bin/decode+edit+encode @@ -8,6 +8,14 @@ INPUT=../src/omni/show0/earth.mp4 LOGO=../../content/icon_small.png OUTPUT=../tmp/omni/show0/earth.webm +## +## generic functions +## +# shellcheck disable=SC2048,SC2059 +echo_n() { + printf -- "$*" +} + HEIGHT=360 SPEED_VP8=4 @@ -29,11 +37,6 @@ elif [ $HEIGHT -le 720 ]; then # 720p → 921600 VBITRATE=3000000 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 \ |