sh -c "$(curl -fsSL https://raw.githubusercontent.com/robbyrussell/oh-my-zsh/master/tools/install.sh)"
- Download zsh-autosuggestions by
#!/bin/zsh | |
# Install needed tools: | |
# brew install sox --with-libvorbis | |
# brew install ffmpeg --with-libvpx --with-libvorbis --with-opus --with-faac | |
set -e | |
FILENAME=$1 | |
echo "Converting $FILENAME to webm + ogg with normalized audio" | |
ffmpeg -i ${FILENAME} -c:a libvorbis -vn ${FILENAME}_audio_orig.ogg | |
ffmpeg -i ${FILENAME} -c:v libvpx-vp9 -crf 50 -b:v 0 -vf scale=840:-1 -g 50 -an ${FILENAME}_video_orig.webm |