diff options
author | Jonas Smedegaard <dr@jones.dk> | 2017-06-08 17:50:05 +0200 |
---|---|---|
committer | Jonas Smedegaard <dr@jones.dk> | 2017-06-08 17:50:05 +0200 |
commit | 29bdfd8e04efe4bc6b5f1379fef6143e8d733e7c (patch) | |
tree | bdbff0cb188d6ddc9baff56b7b3b3cd3030d819e /bin/stream | |
parent | 992ca80124f251f06c96fe15465880513ad4eee7 (diff) |
Diffstat (limited to 'bin/stream')
-rwxr-xr-x | bin/stream | 4 |
1 files changed, 2 insertions, 2 deletions
@@ -228,7 +228,7 @@ encode_opus() { encode_aac() { echo_n "-codec:a aac -strict experimental -ac $ACHANNELS -ar $AFRAMERATE_AAC -b:a $((ACHANNELS*ABITRATE_AAC))" } -encode_vp8() { bitrate=$1; speed=$2; gop=$3; +encode_vp8() { bitrate=$1; speed=$2; gop=${3:-}; echo_n "-codec:v vp8 -quality realtime -deadline 1000000 -cpu-used $speed \ -b:v $bitrate -minrate $bitrate -maxrate $bitrate \ -undershoot-pct 95 -bufsize $((6000*bitrate/1000)) -rc_init_occupancy $((4000*bitrate/1000)) \ @@ -236,7 +236,7 @@ encode_vp8() { bitrate=$1; speed=$2; gop=$3; -qmin 4 -qmax 56" [ -z "$gop" ] || echo_n " -force_key_frames expr:gte(t,n_forced*$gop)" } -encode_x264() { bitrate=$1; speed=$2; gop=$3; +encode_x264() { bitrate=$1; speed=$2; gop=${3:-}; echo_n "-codec:v libx264 -preset $speed -tune zerolatency \ -maxrate $bitrate -bufsize $((bitrate*2)) -crf 23" [ -z "$gop" ] || echo_n " -force_key_frames expr:gte(t,n_forced*$gop)" |