diff options
Diffstat (limited to 'roles/prerec/templates')
-rw-r--r-- | roles/prerec/templates/reencode.sh | 5 |
1 files changed, 5 insertions, 0 deletions
diff --git a/roles/prerec/templates/reencode.sh b/roles/prerec/templates/reencode.sh new file mode 100644 index 0000000..d0c98c3 --- /dev/null +++ b/roles/prerec/templates/reencode.sh @@ -0,0 +1,5 @@ +Q=32 +CPU=8 +TIME_LIMIT='' +ffmpeg -y -i "$1" $TIME_LIMIT -c:v libvpx-vp9 -b:v 0 -crf $Q -an -row-mt 1 -tile-columns 2 -tile-rows 2 -cpu-used $CPU -g 240 -pass 1 -f webm -threads $CPU /dev/null && + ffmpeg -y -i "$1" $TIME_LIMIT -c:v libvpx-vp9 -b:v 0 -crf $Q -c:a libopus -row-mt 1 -tile-columns 2 -tile-rows 2 -cpu-used $CPU -pass 2 -g 240 -threads $CPU "$2" |