summaryrefslogtreecommitdiff
path: root/bin/decode+edit+encode+stream
diff options
context:
space:
mode:
Diffstat (limited to 'bin/decode+edit+encode+stream')
-rwxr-xr-xbin/decode+edit+encode+stream8
1 files changed, 4 insertions, 4 deletions
diff --git a/bin/decode+edit+encode+stream b/bin/decode+edit+encode+stream
index 3914825..6657211 100755
--- a/bin/decode+edit+encode+stream
+++ b/bin/decode+edit+encode+stream
@@ -28,13 +28,13 @@ VBITRATE=256000
ffmpeg -hide_banner -threads auto -re \
-i "$INPUT" \
-i "$LOGO" \
- -vf \
+ -filter_complex \
"[0:v]scale=-1:$HEIGHT[bg];
- [bg][1:v]overlay=main_w-overlay_w-20:main_h-overlay_h-20" \
+ [bg][1:v]overlay=main_w-overlay_w-20:main_h-overlay_h-20[v]" \
+ -map '0:a' \
-codec:a libopus -ac "$ACHANNELS" -ar "$AFRAMERATE" -b:a "$ABITRATE" \
- -vn \
-f rtp -payload_type 111 "rtp://$IP:$FIRSTPORT?pkt_size=1200" \
- -an \
+ -map '[v]' \
-pix_fmt yuv420p \
-codec:v vp8 -quality realtime -deadline 1000000 -cpu-used 15 \
-b:v "$VBITRATE" -minrate "$VBITRATE" -maxrate "$VBITRATE" \