Created
December 26, 2020 07:35
-
-
Save Aqua-4/604c1b917951fbb3e9587e3497c76ffa to your computer and use it in GitHub Desktop.
Covert to html5 compatible video using ffmpeg
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 | |
for filename in assets/completed/*.mp4; do | |
_filename=${filename::-4} | |
ffmpeg -i $_filename.mp4 $_filename.avi | |
rm $_filename.mp4 | |
ffmpeg -i $_filename.avi $_filename.mp4 | |
rm $_filename.avi | |
done |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment