Can we convert standard video files in to flv file run time?

hi all,

We have a one project of Flash media server.

In this project our client requiring functionality like whatever standard video file he upload, our flash media server should be streame it.

To achive this requirment we need to convet that video file in to .FLV runtime on server.

So, is there any script or tool to do this. :jailbreak