Requirements? There are none as such. FFMPEG must be compiled on the server, and has dependencies of its own which will need to be installed on the server also. Once FFMPEG works over SSH, it will work with PHP. Simply choose a PHP function to execute the FFMPEG commands, such as exec().
The man who comes back through the Door in the Wall will never be quite the same as the man who went out.