VideoQualifierTrait
trait VideoQualifierTrait
Trait VideoQualifierTrait
Methods
Controls the video bitrate.
Controls the range of acceptable FPS (Frames Per Second) to ensure that video (even when optimized) is delivered with an expected FPS level (helps with sync to audio).
Controls the range of acceptable FPS (Frames Per Second) to ensure that video (even when optimized) is delivered with an expected FPS level (helps with sync to audio).
Sets the keyframe interval of the delivered video.
Sets the streaming profile to apply to an HLS or MPEG-DASH adaptive bitrate streaming video.
Sets the total number of frames to sample from the original video.
Details
static BitRate
bitRate(int|string $bitRate, null|string $type = null)
Controls the video bitrate.
Supported codecs: h264, h265 (MPEG-4); vp8, vp9 (WebM).
static Fps
fps(int|null $min = null, int|null $max = null)
Controls the range of acceptable FPS (Frames Per Second) to ensure that video (even when optimized) is delivered with an expected FPS level (helps with sync to audio).
static Fps
fpsRange(int|null $min = null, int|null $max = null)
Controls the range of acceptable FPS (Frames Per Second) to ensure that video (even when optimized) is delivered with an expected FPS level (helps with sync to audio).
static KeyframeInterval
keyframeInterval(int $interval)
Sets the keyframe interval of the delivered video.
static StreamingProfile
streamingProfile(string $streamingProfile)
Sets the streaming profile to apply to an HLS or MPEG-DASH adaptive bitrate streaming video.
The value can be one of the pre-defined streaming profiles or a custom-defined one. You can use the streaming profiles methods of StreamingProfilesTrait to get a list of the available streaming profiles or to create new custom profiles.
static VideoSampling
videoSampling(int|string $value)
Sets the total number of frames to sample from the original video.
Relevant when converting videos to animated GIF or WebP format. If not specified, the resulting GIF or WebP samples the whole video (up to 400 frames, at up to 10 frames per second). By default the duration of the animated image is the same as the duration of the video, no matter how many frames are sampled from the original video (use the delay qualifier to adjust the amount of time between frames).