summaryrefslogtreecommitdiff
path: root/bin/stream
diff options
context:
space:
mode:
authorJonas Smedegaard <dr@jones.dk>2017-05-16 14:20:01 +0200
committerJonas Smedegaard <dr@jones.dk>2017-05-16 14:20:01 +0200
commitc19b33c6eda0232d045df9f323524ec8d812c260 (patch)
tree3b5883a3875e7dd0dc57ebe22779cdcac2a3d27e /bin/stream
parent5919275dde112187c5aeedeb7b4a76de8a7eb3dd (diff)
Scale anamorphic to square-pixel as needed.
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)