summaryrefslogtreecommitdiff
path: root/bin
diff options
context:
space:
mode:
Diffstat (limited to 'bin')
-rwxr-xr-xbin/decode+edit+encode1
-rwxr-xr-xbin/decode+edit+encode+stream1
-rwxr-xr-xbin/decode+edit+loop+encode+stream1
-rwxr-xr-xbin/encodevideo+loop+stream1
-rwxr-xr-xbin/loop+encode+stream1
5 files changed, 5 insertions, 0 deletions
diff --git a/bin/decode+edit+encode b/bin/decode+edit+encode
index 730b6eb..ac0ab7c 100755
--- a/bin/decode+edit+encode
+++ b/bin/decode+edit+encode
@@ -23,6 +23,7 @@ ffmpeg -threads auto -y -re \
"[0:v]scale=-1:$HEIGHT[bg];
[bg][1:v]overlay=main_w-overlay_w-20:main_h-overlay_h-20" \
-an \
+ -pix_fmt yuv420p \
-codec:v vp8 -quality realtime -deadline realtime -cpu-used 4 \
-b:v "$VBITRATE" -minrate "$VBITRATE" -maxrate "$VBITRATE" \
-undershoot-pct 95 -bufsize $((6000*VBITRATE/1000)) -rc_init_occupancy $((4000*VBITRATE/1000)) \
diff --git a/bin/decode+edit+encode+stream b/bin/decode+edit+encode+stream
index 7f549a0..014a848 100755
--- a/bin/decode+edit+encode+stream
+++ b/bin/decode+edit+encode+stream
@@ -32,6 +32,7 @@ ffmpeg -threads auto -re \
-vn \
-f rtp "rtp://$IP:$FIRSTPORT?pkt_size=1200" \
-an \
+ -pix_fmt yuv420p \
-codec:v vp8 -quality realtime -deadline realtime -cpu-used 15 \
-b:v "$VBITRATE" -minrate "$VBITRATE" -maxrate "$VBITRATE" \
-undershoot-pct 95 -bufsize $((6000*VBITRATE/1000)) -rc_init_occupancy $((4000*VBITRATE/1000)) \
diff --git a/bin/decode+edit+loop+encode+stream b/bin/decode+edit+loop+encode+stream
index 686cf55..bf17f33 100755
--- a/bin/decode+edit+loop+encode+stream
+++ b/bin/decode+edit+loop+encode+stream
@@ -33,6 +33,7 @@ ffmpeg -threads auto -re \
"[0:v]scale=-1:$HEIGHT[bg];
[bg][1:v]overlay=main_w-overlay_w-20:main_h-overlay_h-20" \
-an \
+ -pix_fmt yuv420p \
-codec:v vp8 -quality realtime -deadline realtime -cpu-used 15 \
-b:v "$VBITRATE" -minrate "$VBITRATE" -maxrate "$VBITRATE" \
-undershoot-pct 95 -bufsize $((6000*VBITRATE/1000)) -rc_init_occupancy $((4000*VBITRATE/1000)) \
diff --git a/bin/encodevideo+loop+stream b/bin/encodevideo+loop+stream
index 0decf10..67e14d5 100755
--- a/bin/encodevideo+loop+stream
+++ b/bin/encodevideo+loop+stream
@@ -20,6 +20,7 @@ TMPMOVIE=../tmp/omni/show0/earth.yuv
ffmpeg -threads auto -re \
-stream_loop -1 -i "$TMPMOVIE" \
-an \
+ -pix_fmt yuv420p \
-codec:v vp8 -quality realtime -deadline realtime -cpu-used 15 \
-b:v "$VBITRATE" -minrate "$VBITRATE" -maxrate "$VBITRATE" \
-undershoot-pct 95 -bufsize $((6000*VBITRATE/1000)) -rc_init_occupancy $((4000*VBITRATE/1000)) \
diff --git a/bin/loop+encode+stream b/bin/loop+encode+stream
index 9387dcb..0f29ed1 100755
--- a/bin/loop+encode+stream
+++ b/bin/loop+encode+stream
@@ -27,6 +27,7 @@ ffmpeg -threads auto -re \
-vn \
-f rtp "rtp://$IP:$FIRSTPORT?pkt_size=1200" \
-an \
+ -pix_fmt yuv420p \
-codec:v vp8 -quality realtime -deadline realtime -cpu-used 15 \
-b:v "$VBITRATE" -minrate "$VBITRATE" -maxrate "$VBITRATE" \
-undershoot-pct 95 -bufsize $((6000*VBITRATE/1000)) -rc_init_occupancy $((4000*VBITRATE/1000)) \