summaryrefslogtreecommitdiff
path: root/bin/decode+edit+encode
diff options
context:
space:
mode:
authorJonas Smedegaard <dr@jones.dk>2017-04-16 19:38:15 +0200
committerJonas Smedegaard <dr@jones.dk>2017-04-16 19:38:15 +0200
commitb5dd71d97379079416346635a142467a987ff642 (patch)
tree2cab6d04d50c7121ff292a994f8a5d29946d7975 /bin/decode+edit+encode
parenteb1811763a86c74d9e88e9f35d1d2b2045b98167 (diff)
Add 1s latency (deadline). Stop drop frames (bandwidth limits are not strict).
Diffstat (limited to 'bin/decode+edit+encode')
-rwxr-xr-xbin/decode+edit+encode3
1 files changed, 2 insertions, 1 deletions
diff --git a/bin/decode+edit+encode b/bin/decode+edit+encode
index a34b54e..b3d3702 100755
--- a/bin/decode+edit+encode
+++ b/bin/decode+edit+encode
@@ -15,6 +15,7 @@ mkdir -p $(dirname "$OUTPUT")
# based on http://www.webmproject.org/docs/encoder-parameters/#real-time-cbr-encoding-and-streaming
# + scale+watermark trick based on http://stackoverflow.com/a/10937357
+# + Add 1s latency (deadline)
ffmpeg -threads auto -y -re \
-i "$INPUT" \
-i "$LOGO" \
@@ -23,7 +24,7 @@ ffmpeg -threads auto -y -re \
[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 \
+ -codec:v vp8 -quality realtime -deadline 1000000 -cpu-used 4 \
-b:v "$VBITRATE" -minrate "$VBITRATE" -maxrate "$VBITRATE" \
-undershoot-pct 95 -bufsize $((6000*VBITRATE/1000)) -rc_init_occupancy $((4000*VBITRATE/1000)) \
-max-intra-rate 0 \