Components of server to host video sites?

Ok guys, can you tell me the best way to organize a clone video site YouTube. .
I'm talking about encoder and server components. . .
We already know.
FFMPEG
Flvtool
LAME MP3 and so on. .
Does anyone know any payment encoder as the source of this is free and open source. .
I am looking for a good qulity encoder for coding server side.
I know people will not be able to answer this question.
If you know how to install and configure these things contact me, can have a job for you, (fee), of course.
Thank you all in advance. .
Gulam