The whole implementation process is being described here:
I think the most important points are, that you have to make sure that
- the ffmpeg binary can be found by the web servers user using the search path and not an absolute path.
- the web server user is allowed to execute the ffmpeg binary.