summaryrefslogtreecommitdiff
path: root/bin
diff options
context:
space:
mode:
authorJonas Smedegaard <dr@jones.dk>2017-04-13 12:12:11 +0200
committerJonas Smedegaard <dr@jones.dk>2017-04-13 12:12:11 +0200
commit39a5bb761e0f67e1ca0251849b9075349be27d47 (patch)
tree6b7b7feeb580a3f4fe51634b578c5ac03d87b48a /bin
parentc37fe7cba815cb845583364481facc21da34f29b (diff)
Rename variable BITRATE → VBITRATE.
Diffstat (limited to 'bin')
-rwxr-xr-xbin/decode+edit+encode6
-rwxr-xr-xbin/decode+edit+encode+stream6
-rwxr-xr-xbin/encode+stream6
3 files changed, 9 insertions, 9 deletions
diff --git a/bin/decode+edit+encode b/bin/decode+edit+encode
index 25ea997..e93d05a 100755
--- a/bin/decode+edit+encode
+++ b/bin/decode+edit+encode
@@ -5,7 +5,7 @@ set -e
ITERATIONS=${1-1} # no looping by default
HEIGHT=360
-BITRATE=500000
+VBITRATE=500000
MOVIE=../src/omni/show0/earth.mp4
LOGO=../../content/icon_small.png
@@ -21,8 +21,8 @@ ffmpeg -threads auto -y -re \
-i "$LOGO" -filter_complex 'overlay=main_w-overlay_w-20:main_h-overlay_h-20' \
-an \
-codec:v vp8 -quality realtime -deadline realtime -cpu-used 4 \
- -b:v "$BITRATE" -minrate "$BITRATE" -maxrate "$BITRATE" \
- -undershoot-pct 95 -bufsize $((6000*BITRATE/1000)) -rc_init_occupancy $((4000*BITRATE/1000)) \
+ -b:v "$VBITRATE" -minrate "$VBITRATE" -maxrate "$VBITRATE" \
+ -undershoot-pct 95 -bufsize $((6000*VBITRATE/1000)) -rc_init_occupancy $((4000*VBITRATE/1000)) \
-max-intra-rate 0 \
-qmin 4 -qmax 56 \
-f webm "$TMPMOVIE"
diff --git a/bin/decode+edit+encode+stream b/bin/decode+edit+encode+stream
index e8f5cdd..fadc122 100755
--- a/bin/decode+edit+encode+stream
+++ b/bin/decode+edit+encode+stream
@@ -14,7 +14,7 @@ FIRSTPORT=${2:-5002} # even number - next 3 ports used too
ITERATIONS=${3-0} # endless by default
HEIGHT=360
-BITRATE=500000
+VBITRATE=500000
MOVIE=../src/omni/show0/earth.mp4
LOGO=../../content/icon_small.png
@@ -27,8 +27,8 @@ ffmpeg -threads auto -re \
-i "$LOGO" -filter_complex 'overlay=main_w-overlay_w-20:main_h-overlay_h-20' \
-an \
-codec:v vp8 -quality realtime -deadline realtime -cpu-used 15 \
- -b:v "$BITRATE" -minrate "$BITRATE" -maxrate "$BITRATE" \
- -undershoot-pct 95 -bufsize $((6000*BITRATE/1000)) -rc_init_occupancy $((4000*BITRATE/1000)) \
+ -b:v "$VBITRATE" -minrate "$VBITRATE" -maxrate "$VBITRATE" \
+ -undershoot-pct 95 -bufsize $((6000*VBITRATE/1000)) -rc_init_occupancy $((4000*VBITRATE/1000)) \
-max-intra-rate 0 \
-qmin 4 -qmax 56 \
-static-thresh 500 -skip_threshold 50 \
diff --git a/bin/encode+stream b/bin/encode+stream
index e090587..0decf10 100755
--- a/bin/encode+stream
+++ b/bin/encode+stream
@@ -11,7 +11,7 @@ fi
FIRSTPORT=${2:-5002} # even number - next 3 ports used too
-BITRATE=500000
+VBITRATE=500000
TMPMOVIE=../tmp/omni/show0/earth.yuv
@@ -21,8 +21,8 @@ ffmpeg -threads auto -re \
-stream_loop -1 -i "$TMPMOVIE" \
-an \
-codec:v vp8 -quality realtime -deadline realtime -cpu-used 15 \
- -b:v "$BITRATE" -minrate "$BITRATE" -maxrate "$BITRATE" \
- -undershoot-pct 95 -bufsize $((6000*BITRATE/1000)) -rc_init_occupancy $((4000*BITRATE/1000)) \
+ -b:v "$VBITRATE" -minrate "$VBITRATE" -maxrate "$VBITRATE" \
+ -undershoot-pct 95 -bufsize $((6000*VBITRATE/1000)) -rc_init_occupancy $((4000*VBITRATE/1000)) \
-max-intra-rate 0 \
-qmin 4 -qmax 56 \
-static-thresh 500 -skip_threshold 50 \