Mp4Format class

Inheritance

Constructors

Mp4Format.new({List<RenderAudio>? audio, RenderScale? scale, Interpolation interpolation = Interpolation.bicubic})
MP4 (MPEG-4 Part 14) is a digital multimedia container format most commonly used to store video and audio, but can also be used to store other data such as subtitles and still images. It is a standard format used by many devices and platforms to play videos, and is known for its high compression rate and good quality. MP4 files typically have the file extension ".mp4". Transparency is not supported.
const

Properties

asImage ImageFormat?
no setterinherited
asMotion MotionFormat?
no setterinherited
audio List<RenderAudio>?
Additional audio for the motion format (if supported by output format) Make sure that the audio file has the same length as the output video.
finalinherited
extension String
The extension of this file format (eg. "png") Note that this format needs to be compatible with FFmpeg to work with processing.
no setteroverride
handling FormatHandling
How the format can be handled. This is important for handling the file later (eg. displaying the file). Some file types might be FormatType.motion but still should be handled like an image (eg. apng, gif, etc.).
finalinherited
hashCode int
The hash code for this object.
no setterinherited
interpolation Interpolation
Interpolation in is a method used to calculate new pixel values when resizing images. It is used to make sure that the resulting image looks as smooth and natural as possible. Different interpolation methods are available, each with its own trade-offs in terms of quality and computational expense.
finalinherited
isImage bool
no setterinherited
isMotion bool
no setterinherited
processShare double
The percentage of the main process execution time of the whole render operation. This value is determined by experimentation.
finalinherited
runtimeType Type
A representation of the runtime type of the object.
no setterinherited
scale RenderScale?
Scaling frames in video processing refers to the process of resizing the frames of a video to a different resolution. This is done to adjust the size of the video to match the resolution of the target device or medium.
finalinherited
scalingFilter String?
Scaling ffmpeg filter with appropriate interpolation integration While maintaing aspect ratio
no setterinherited

Methods

copyWith({RenderScale? scale, Interpolation? interpolation}) Mp4Format
A function that allows you to copy the format with new parameters. This is useful for creating a new format with the same base but different parameters. Alternatively you can call the Format directly (eg. MovFormat).
override
noSuchMethod(Invocation invocation) → dynamic
Invoked when a nonexistent method or property is accessed.
inherited
processor({required String inputPath, required String outputPath, required double frameRate}) FFmpegRenderOperation
Default motion processor. This can be override, if more/other settings are needed.
inherited
toString() String
A string representation of this object.
inherited

Operators

operator ==(Object other) bool
The equality operator.
inherited