VideoCompressionRequest class final

Constructors

VideoCompressionRequest({required String inputPath, required String outputPath, required VideoCodec codec, required ContainerFormat container, required int averageBitrate, int? width, int? height, int? maxShortSide, double? maxFrameRate, double gopSeconds = 2, bool removeAudio = false, VideoHdrPolicy hdrPolicy = VideoHdrPolicy.keepOriginal})
VideoCompressionRequest.fromJson(Map<Object?, Object?> json)
factory

Properties

averageBitrate → int
final
codec → VideoCodec
final
container → ContainerFormat
final
gopSeconds → double
final
hashCode → int
The hash code for this object.
no setterinherited
hdrPolicy → VideoHdrPolicy
final
height → int?
final
inputPath → String
final
maxFrameRate → double?
final
maxShortSide → int?
Longest edge the short side of the output may have, in display orientation (a portrait 1080x1920 source with maxShortSide 720 becomes 720x1280). The executor resolves it against the real source geometry and preserves the aspect ratio; sources already at or below the cap are left untouched, so this never upscales. Unlike width/height the caller does not need to probe the source first.
final
outputPath → String
final
removeAudio → bool
final
runtimeType → Type
A representation of the runtime type of the object.
no setterinherited
width → int?
final

Methods

noSuchMethod(Invocation invocation) → dynamic
Invoked when a nonexistent method or property is accessed.
inherited
toJson() → Map<String, Object?>
toString() → String
A string representation of this object.
inherited

Operators

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

Constants

schemaVersion → const int