I'm looking for a product or solution that will play quicktime/mpg/avi files dynamically in the web browser.

This is for a video player which will be used to show a stream of short music videos, uploaded by users of the site. When one video is done playing, the next would kick in.

I have found many good flv video players, but how can I convert the quicktime to flv on the fly? All the converters I have seen require manual input. I would like a converter that I can hook up to my phpscript, so I can convert them automatically when the user uploads video.

If there is something other then Flash, then I'm open to suggestions.