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