-
-
Save satellitemx/8cdbb6d58080c6a5f7a5ba170be360ec to your computer and use it in GitHub Desktop.
FFmpeg Batch Conversion
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
#!/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