This script based on ffmpeg guide http://ffmpeg.org/trac/ffmpeg/wiki/CentosCompilationGuide A Linux Shell Script for compiling, installing and uninstalling ffmpeg in CentOS (tested on 6.0).
cd ~
git clone https://github.com/jnaqsh/ffmpeg_installer/
cd ffmpeg_installer
chmod +x ./*.sh
./ff_installer.sh
cd ~/ffmpeg_installer
./ff_uninstaller.sh
Copyright (c) 2013 Naqsh Jahan Toos http://jnaqsh.com/ This script is licensed under GNU GPL version 3.0 or above.