summaryrefslogtreecommitdiffstats
path: root/roles/prerec/templates/reencode.sh
blob: d0c98c3e2c2c6ca8ee89b8d0a370db175d89b013 (plain) (blame)
1
2
3
4
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"