PHP Video Toolkit version 2 helps tak the voodoo out of ffmpeg and provides a convenient object oriented wrapper around the ffmpeg programme.