Convert/Encode Video IN swf

I’ve looked all over and can’t find this…

Is there a way to convert an uploaded video file to an flv file? Either through AS3 or through a pre-built app somewhere? Does AS3 have a function built in for converting videos in any way?

Thanks for the help