I\'ve been putting a website together in PHP and part of the functionality is to trim some video and encode as MP4 and AAC audio.
FFMPEG runs locally on the webserver and