What is a good way to have someone upload a video in some format and then have the server encode it into a (*.flv) file or something like that? Can you do this with PHP, java, flash?