From c19b33c6eda0232d045df9f323524ec8d812c260 Mon Sep 17 00:00:00 2001 From: Jonas Smedegaard Date: Tue, 16 May 2017 14:20:01 +0200 Subject: Scale anamorphic to square-pixel as needed. --- bin/stream | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) (limited to 'bin/stream') 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) -- cgit v1.2.3