Does anyone know of a way to automatically convert video files (lets say mpg) to flv? I am starting a flash media server and I would like to find a way so that when I upload a video file (or place it on my server), an application will automatically convert it from (mpg) to flv.

Any help is much appreciated. I am learning this from scratch.