summaryrefslogtreecommitdiff
path: root/bin/stream
diff options
context:
space:
mode:
Diffstat (limited to 'bin/stream')
-rwxr-xr-xbin/stream3
1 files changed, 2 insertions, 1 deletions
diff --git a/bin/stream b/bin/stream
index d044b24..e4358b3 100755
--- a/bin/stream
+++ b/bin/stream
@@ -135,7 +135,7 @@ filter_split_height() {
}
filter_scale() { outstem=${1:-v};
for height in $HEIGHTS; do
- echo_n "[s$height]scale=-2:$height[$outstem$height]"
+ echo_n "[s$height]scale=iw*sar*$height/ih:$height,setsar=1[$outstem$height]"
done
}
filter_watermark() {
@@ -153,6 +153,7 @@ tee_rtp() { stream=$1; pt=$2; port=$3;
}
# * scale+watermark trick based on http://stackoverflow.com/a/10937357
+# + scale to square pixels as needed
# * routing based on http://trac.ffmpeg.org/wiki/Creating%20multiple%20outputs#Teepseudo-muxer
# * VP8 encoding based on http://www.webmproject.org/docs/encoder-parameters/#real-time-cbr-encoding-and-streaming
# + Add 1s latency (deadline)