This class is a wrapper around the FFmpeg, FLVTools2 and Mencoder programs to allow PHP developers to manipulate and convert video files.
It also provides FFmpeg-PHP emulation in pure PHP so you do not need to compile and install the module.
It performs several types of manipulation operations that include video format conversion, extract video frames into separate image files, assemble a video stream from a set of separate video images, extract audio from video, watermark videos and extracted frames.
Several parameters can also be configured like the output video file format, which can be Flash video or any other supported by ffmpeg, video and audio bit rate and sample rate, video dimensions and aspect ratio.
It can also retrieve information about the media file, such as duration, bit rate, frame rate, format, dimensions, display aspect ratio, pixel aspect ratio, audio stereo, audio frequency and audio format, without any other additional library.
This class can be use to resize and apply an watermark to an image.
The class can open an image file in the JPEG format, a watermark image in the PNG format, resize the original image to a a given size and apply the watermark image in a given position of the resized image.
The original and the resized images are stored in server files in the JPEG or PNG formats.