I'm not entirely sure what's going on with my FFmpeg code, but it's definitely not generating the proper footers for MP4 files, despite the fact that the footer function succeeds. Going to use AVIs for the time being still.