summaryrefslogtreecommitdiff
path: root/bin
diff options
context:
space:
mode:
authorJonas Smedegaard <dr@jones.dk>2017-05-18 09:59:39 +0200
committerJonas Smedegaard <dr@jones.dk>2017-05-18 09:59:39 +0200
commit985c330f64f8127a0c04e43efe7aa3371f12e256 (patch)
treea0d5f67aaa1edfa55f86ddabb51bb3c6d57d9bb8 /bin
parent33162b0d846a682a6eb9801e64e6347fc36aac02 (diff)
Fix include function echo_n.
Diffstat (limited to 'bin')
-rwxr-xr-xbin/decode+edit+encode5
-rwxr-xr-xbin/decode+edit+loop+encode+stream5
-rwxr-xr-xbin/encodevideo+loop+stream5
-rwxr-xr-xbin/loop+encode+stream5
4 files changed, 20 insertions, 0 deletions
diff --git a/bin/decode+edit+encode b/bin/decode+edit+encode
index 0b11a7e..3735b2f 100755
--- a/bin/decode+edit+encode
+++ b/bin/decode+edit+encode
@@ -29,6 +29,11 @@ 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 \
diff --git a/bin/decode+edit+loop+encode+stream b/bin/decode+edit+loop+encode+stream
index 8dba934..f35f593 100755
--- a/bin/decode+edit+loop+encode+stream
+++ b/bin/decode+edit+loop+encode+stream
@@ -54,6 +54,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 \
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 \
diff --git a/bin/loop+encode+stream b/bin/loop+encode+stream
index 5893ed3..ca0b6b9 100755
--- a/bin/loop+encode+stream
+++ b/bin/loop+encode+stream
@@ -55,6 +55,11 @@ elif [ $BITS -le 921600 ]; then # 720p → 921600
SPEED_VP8=15
fi
+# shellcheck disable=SC2048,SC2059
+echo_n() {
+ printf -- "$*"
+}
+
encode_opus() {
echo_n "-codec:a libopus -ac $ACHANNELS -ar $AFRAMERATE_OPUS -b:a $ABITRATE_OPUS"
}