%PDF- %PDF-
Direktori : /home/waritko/ |
Current File : //home/waritko/vp9.sh |
#!/bin/bash set -x passfile=`cat /dev/urandom | tr -dc 'a-zA-Z0-9' | fold -w 32 | head -n 1` filename=`rev <<< "$1" | cut -d"." -f2- | rev`; ffmpeg -y -i "$1" -c:v libvpx-vp9 -pass 1 -passlogfile pass_$passfile -b:v 0 -crf 23 -threads 2 -speed 4 -tile-columns 6 -frame-parallel 1 -auto-alt-ref 1 -lag-in-frames 25 -g 150 -keyint_min 150 -an -f webm /dev/null ffmpeg -y -i "$1" -c:v libvpx-vp9 -pass 2 -passlogfile pass_$passfile -b:v 0 -crf 23 -threads 2 -speed 1 -tile-columns 6 -frame-parallel 1 -auto-alt-ref 1 -lag-in-frames 25 -g 150 -keyint_min 150 -c:a libvorbis -qscale:a 0 -f webm "${filename}.webm"