Skip to content

Instantly share code, notes, and snippets.

@tumugin
Created March 27, 2016 16:40
Show Gist options
  • Save tumugin/f053c2c93e389e64685f to your computer and use it in GitHub Desktop.
Save tumugin/f053c2c93e389e64685f to your computer and use it in GitHub Desktop.
#!/bin/bash
for i in *.ts
do
ffmpeg -i "$i" -y -c:v libvpx-vp9 -vf yadif=0:-1:1,decimate -pass 1 -b:v 0 -crf 33 -threads 8 -speed 4 -tile-columns 6 -frame-parallel 1 -an -f webm /dev/null
ffmpeg -i "$i" -c:v libvpx-vp9 -vf yadif=0:-1:1,decimate -pass 2 -b:v 0 -crf 33 -threads 8 -speed 1 -tile-columns 6 -frame-parallel 1 -auto-alt-ref 1 -lag-in-frames 25 -c:a libopus -f webm "${i%ts}webm"
done
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment