This article provide you a walk through to compile ffmpeg/FLVTool2/Yamdi from source files on CentOS 6.
Most Linux distributions have outdated packages in their repositories so compiling those software is the best solution to have the latest updates, bug fixes and features.