Skip to content
Thai Pangsakulyanont edited this page Jun 23, 2016 · 1 revision
#!/bin/bash -e
ffmpeg -i "$1" \
  -c:v libvpx -quality good -cpu-used 0 \
  -qmin 10 -qmax 42 -b:v 1500k -maxrate 1500k -bufsize 3000k -threads 2 \
  -vf scale=-1:720 \
  -an -pass 1 -f webm -y /dev/null
ffmpeg -i "$1" \
  -c:v libvpx -quality good -cpu-used 0 \
  -qmin 10 -qmax 42 -b:v 1500k -maxrate 1500k -bufsize 3000k -threads 2 \
  -vf scale=-1:720 \
  -an -pass 2 -f webm "$2"
Clone this wiki locally