Skip to content

Instantly share code, notes, and snippets.

View Ox01's full-sized avatar
🐠
swimming in code

Ox01

🐠
swimming in code
View GitHub Profile
@Ox01
Ox01 / ffmpeg-mp4-to-webm.sh
Created January 26, 2020 21:33
Shell script to convert .mp4 video files in the current folder to .webm
for i in *.mp4;
do name=`echo "$i" | cut -d'.' -f1`
echo "$name"
ffmpeg -i "$i" -vcodec libvpx -qmin 0 -qmax 50 -crf 10 -b:v 1M -acodec libvorbis "${name}.webm"
done
@Ox01
Ox01 / encoding-video.md
Created January 23, 2020 20:09 — forked from glen-cheney/encoding-video.md
Encoding video for the web

Encoding Video

Installing

Install FFmpeg with homebrew. You'll need to install it with a couple flags for webm and the AAC audio codec.

brew install ffmpeg --with-libvpx --with-libvorbis --with-fdk-aac --with-opus