Thanks. Looks like ffmpeg can do this in a way that wouldn't be hard to script.