Skip to content

Instantly share code, notes, and snippets.

View Stunner's full-sized avatar

AJ Stunner

View GitHub Profile
@Stunner
Stunner / convert.sh
Created January 3, 2017 02:57
This script recurses through the file hierarchy, converting .MOD video files into .mp4 files with ffmpeg.
#!/bin/bash
# This script recurses through the file heirarchy, converting .MOD video files into .mp4 files with ffmpeg.
# usage: cd into the directory that you want to perform this script, then run "./convert.sh ."
MODext=MOD
MP4ext=mp4
# walk through a directory recusively,
recurse_dir() {