I'm not familiar with ffmpeg, but if you can use it from the command prompt I'm sure you can write a batch file to do what you want. If you can use it from the command prompt, can you post the help file or whatever you get if you type ffmpeg /? or something like that. I may be able to come up with something if you do that.