VideoSpecificTransformationTrait
trait VideoSpecificTransformationTrait
Trait VideoSpecificTransformationTrait
Methods
Don't stream a video that is currently being generated on the fly. Wait until the video is fully generated.
Causes the video download to begin immediately, streaming it as a fragmented video file.
Deliver an HLS adaptive bitrate streaming file as HLS v3 instead of the default version (HLS v4).
Keep the Display Aspect Ratio metadata of the uploaded video.
Convert the audio channel to mono.
Truncate (trim) a video file based on the start time defined in the metadata.
Create a waveform image (in the format specified by the file extension) from the audio or video file.
Trims a video (and discards the rest).
Rounds the corners of a video.
Adds another video, text, image as an overlay over the container video.
Applies the video as a cutter for the main video.
Adds subtitles to the video.
Transcodes the video (or audio) to another format / adjusts encoding properties.
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).
Explicitly sets the keyframe interval of the delivered video.
Controls the video bitrate.
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.
Applies the specified video edit action.
Details
VideoTransformationFlagTrait
noStream()
Don't stream a video that is currently being generated on the fly. Wait until the video is fully generated.
VideoTransformationFlagTrait
streamingAttachment(string $filename = null)
Causes the video download to begin immediately, streaming it as a fragmented video file.
VideoTransformationFlagTrait
hlsv3()
Deliver an HLS adaptive bitrate streaming file as HLS v3 instead of the default version (HLS v4).
VideoTransformationFlagTrait
keepDar()
Keep the Display Aspect Ratio metadata of the uploaded video.
VideoTransformationFlagTrait
mono()
Convert the audio channel to mono.
VideoTransformationFlagTrait
truncateTS()
Truncate (trim) a video file based on the start time defined in the metadata.
VideoTransformationFlagTrait
waveform()
Create a waveform image (in the format specified by the file extension) from the audio or video file.
VideoSpecificTransformationTrait
trim(Timeline $range)
Trims a video (and discards the rest).
VideoSpecificTransformationTrait
roundCorners(int|string $radius)
Rounds the corners of a video.
VideoSpecificTransformationTrait
overlay(BaseSource|string $videoLayer, BasePosition|null $position = null, Timeline|null $timeline = null)
Adds another video, text, image as an overlay over the container video.
VideoSpecificTransformationTrait
concatenate(VideoSource|string $videoSource)
Concatenates another video or image.
VideoSpecificTransformationTrait
cutter(VideoSource|string $videoLayer, BasePosition|null $position = null, Timeline|null $timeline = null)
Applies the video as a cutter for the main video.
VideoSpecificTransformationTrait
addSubtitles(string $subtitlesId)
Adds subtitles to the video.
VideoSpecificTransformationTrait
transcode(AudioCodec|VideoCodec|AudioFrequency|mixed $transcode)
Transcodes the video (or audio) to another format / adjusts encoding properties.
VideoSpecificTransformationTrait
fps(float|int|string $min, float|int|string|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).
VideoSpecificTransformationTrait
keyframeInterval(float $interval)
Explicitly sets the keyframe interval of the delivered video.
VideoSpecificTransformationTrait
bitRate(int|string $bitRate, string $type = null)
Controls the video bitrate.
VideoSpecificTransformationTrait
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.
VideoSpecificTransformationTrait
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).
VideoSpecificTransformationTrait
videoEdit(mixed $videoEdit)
Applies the specified video edit action.