Media Converter: files to flash compatible formats (on Linux web server)

Hey,

I need a program that will install on my linux web server, that can be run from php, that will convert audio and video files from the popular formats, to a flash compatible format at a specified bit rate.

Any information would be great, thanks.