Skip to content

Instantly share code, notes, and snippets.

@satellitemx
Last active May 10, 2019 10:36
Show Gist options
  • Star 0 You must be signed in to star a gist
  • Fork 0 You must be signed in to fork a gist
  • Save satellitemx/8cdbb6d58080c6a5f7a5ba170be360ec to your computer and use it in GitHub Desktop.
Save satellitemx/8cdbb6d58080c6a5f7a5ba170be360ec to your computer and use it in GitHub Desktop.
FFmpeg Batch Conversion
#!/bin/bash
# HEVC
for f in *; do
ffmpeg -i $f -c:v libx265 -crf 24 -tag:v hvc1 -c:a aac -b:a 96k "$f.converted.mp4"
done
# VP9
for f in *; do
ffmpeg -i $f -c:v libvpx-vp9 -crf 24 -b:v 0 -c:a aac -b:a 96k "$f.converted.webm"
done
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment