diff options
Diffstat (limited to 'bin/encodevideo+loop+stream')
-rwxr-xr-x | bin/encodevideo+loop+stream | 5 |
1 files changed, 5 insertions, 0 deletions
diff --git a/bin/encodevideo+loop+stream b/bin/encodevideo+loop+stream index ceded76..64a53cd 100755 --- a/bin/encodevideo+loop+stream +++ b/bin/encodevideo+loop+stream @@ -49,6 +49,11 @@ 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 \ |