Installing FFMPPEG, FLVTool2 and Yamdi on CentOS 6
... is the best solution to have the latest updates, bug fixes and features.
Tutorial updated on March 2015 with the addition of many codecs:
libx265, libx264, libvpx, Amr, Theora, libXvid, libogg, ...