Skip to content

Instantly share code, notes, and snippets.

@Aqua-4
Created December 26, 2020 07:35
Show Gist options
  • Save Aqua-4/604c1b917951fbb3e9587e3497c76ffa to your computer and use it in GitHub Desktop.
Save Aqua-4/604c1b917951fbb3e9587e3497c76ffa to your computer and use it in GitHub Desktop.
Covert to html5 compatible video using ffmpeg
#!/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