luckily i found this site
someone made a script to install ffmpeg and ffmpeg-php
also my mysql shared libraries corrupted somehow and had to reinstall it
recompile apache/php after fixing mysql library
if you need mplayer install using rpm. forget compiling
this is the article i started with but broken dependencies and other problems so i tried looking for other sources.