Skip to content

Instantly share code, notes, and snippets.

@kaz3w
Created June 24, 2019 03:06
Show Gist options
  • Save kaz3w/15c942402e77b35888dcd4bf3cbe583e to your computer and use it in GitHub Desktop.
Save kaz3w/15c942402e77b35888dcd4bf3cbe583e to your computer and use it in GitHub Desktop.
convert all .264 to .mp4 with MP4Box
#!/bin/bash
for file in `find . -name "*.h264"`; do
/usr/local/bin/MP4Box -v -fps 30 -add $file ${file/h264/mp4}
done
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment