We have a build procedure for centOS 5 CentOS 5 Build FFmpeg with X264
FFMPEG windows build procedure