in ssh do a cd / then do find / -name libavcodec.so.51
This will tell you if the file exists or not..