summaryrefslogtreecommitdiff
path: root/bin/decode+edit+encode
diff options
context:
space:
mode:
authorJonas Smedegaard <dr@jones.dk>2017-05-18 08:46:41 +0200
committerJonas Smedegaard <dr@jones.dk>2017-05-18 09:02:53 +0200
commit39bc48eb0e8b9a2b8d43d6f1a612c12d0c70ae23 (patch)
tree15957113d35981a11085bd98a79b399fbbea7a25 /bin/decode+edit+encode
parent6f794349b9c0e7da1190235fdbd5229de533165f (diff)
Convert pixel format explictly as filter (not implicitly as constraint, for each encoding).
Diffstat (limited to 'bin/decode+edit+encode')
-rwxr-xr-xbin/decode+edit+encode3
1 files changed, 1 insertions, 2 deletions
diff --git a/bin/decode+edit+encode b/bin/decode+edit+encode
index f21ef51..deb732a 100755
--- a/bin/decode+edit+encode
+++ b/bin/decode+edit+encode
@@ -39,10 +39,9 @@ ffmpeg -hide_banner -threads auto -y -re \
-i "$INPUT" \
-i "$LOGO" \
-filter_complex \
- "[0:v]scale=iw*sar*$HEIGHT/ih:$HEIGHT,setsar=1[bg];
+ "[0:v]format=pix_fmts=yuv420p,scale=iw*sar*$HEIGHT/ih:$HEIGHT,setsar=1[bg];
[bg][1:v]overlay=main_w-overlay_w-20:main_h-overlay_h-20[v]" \
-map '[v]' \
- -pix_fmt yuv420p \
-codec:v vp8 -quality realtime -deadline 1000000 -cpu-used "$SPEED_VP8" \
-b:v "$VBITRATE" -minrate "$VBITRATE" -maxrate "$VBITRATE" \
-undershoot-pct 95 -bufsize $((6000*VBITRATE/1000)) -rc_init_occupancy $((4000*VBITRATE/1000)) \