From the Vexxblog, there's this new tutorial that shows how, with FFMPEG and PHP, to convert and encode files to the FLV format.
So, as I've written in an earlier article on how to install FFMPEG on your server, while there are those who probably use a 'YouTube Clone' script, there might be those who want to create their own using FFMPEG & PHP. FLV is the most widely used type of codec that runs on most Flash players.
The tutorial started with a diagram that outlines how the mini-app will work and is followed by the source. The script sets up the environment then grabs the file and sends it to the FFMPEG handler to be parsed and output as the FLV file (courtesy of a few handy command line parameters).