diff options
author | Jonas Smedegaard <dr@jones.dk> | 2017-05-16 14:20:01 +0200 |
---|---|---|
committer | Jonas Smedegaard <dr@jones.dk> | 2017-05-16 14:20:01 +0200 |
commit | c19b33c6eda0232d045df9f323524ec8d812c260 (patch) | |
tree | 3b5883a3875e7dd0dc57ebe22779cdcac2a3d27e /bin/stream | |
parent | 5919275dde112187c5aeedeb7b4a76de8a7eb3dd (diff) |
Scale anamorphic to square-pixel as needed.
Diffstat (limited to 'bin/stream')
-rwxr-xr-x | bin/stream | 3 |
1 files changed, 2 insertions, 1 deletions
@@ -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) |