ffmpeg_frame
class ffmpeg_frame (View source)
Methods
NOTE: This function will not be available if GD is not enabled.
Return the width of the frame.
Return the height of the frame.
Return the presentation time stamp of the frame.
Return the presentation time stamp of the frame.
Resize and optionally crop the frame. (Cropping is built into ffmpeg resizing so I'm providing it here for completeness.)
Crop the frame.
Returns a truecolor GD image of the frame.
Details
__construct(resource $gd_image)
NOTE: This function will not be available if GD is not enabled.
int
getWidth()
Return the width of the frame.
int
getHeight()
Return the height of the frame.
int
getPTS()
Return the presentation time stamp of the frame.
int
getPresentationTimestamp()
Return the presentation time stamp of the frame.
resize(int $width, int $height, int $crop_top = 0, int $crop_bottom = 0, int $crop_left = 0, int $crop_right = 0)
Resize and optionally crop the frame. (Cropping is built into ffmpeg resizing so I'm providing it here for completeness.)
crop(int $crop_top, int $crop_bottom = 0, int $crop_left = 0, int $crop_right = 0)
Crop the frame.
resource
toGDImage()
Returns a truecolor GD image of the frame.
NOTE: This function will not be available if GD is not enabled.