XVideoExportRequest class

Parameters for one export. Null trim bounds keep the source's start/end; removeAudio drops the audio track entirely (mute).

A pure trim/mute request (no transform) stays a passthrough remux where the platform allows. Supplying transform switches to the re-encode path: every frame is mapped through the affine into an outWidth×outHeight canvas at videoBitrate, so the output is a verbatim bake of the caller's on-screen crop/rotate/flip preview.

Constructors

XVideoExportRequest({required String path, required String outPath, int? trimStartMs, int? trimEndMs, bool removeAudio = false, List<double>? transform, int? outWidth, int? outHeight, int? videoBitrate, String? overlayPath})
Creates a request; see the class docs for field semantics.
const

Properties

hashCode → int
The hash code for this object.
no setterinherited
outHeight → int?
Output height in pixels — required with transform, else null.
final
outPath → String
Absolute path the exported file is written to (overwritten).
final
outWidth → int?
Output width in pixels — required with transform, else null.
final
overlayPath → String?
Absolute path of a transparent PNG at the upright source's pixel dimensions, composited over every frame BEFORE transform is applied — caller-drawn paint strokes that must ride the crop. Requires transform (overlays only exist on the re-encode path).
final
path → String
Absolute path of the source video.
final
removeAudio → bool
Drop the audio track entirely (mute).
final
runtimeType → Type
A representation of the runtime type of the object.
no setterinherited
transform → List<double>?
Row-major 3×3 affine mapping source pixel coordinates to output pixel coordinates ([a,b,c, d,e,f, 0,0,1], 9 values; the last row is implied but sent whole for the native decoders). Null keeps the source geometry (trim/mute-only, passthrough).
final
trimEndMs → int?
Trim end in milliseconds, or null to keep the source end.
final
trimStartMs → int?
Trim start in milliseconds, or null to keep the source start.
final
videoBitrate → int?
Target video bitrate (bits/s) for the re-encode path. Null lets the platform choose: a trim/mute passthrough encodes no video, and Windows re-encodes at the source's bitrate, at least 0.1 bit per pixel per frame.
final

Methods

noSuchMethod(Invocation invocation) → dynamic
Invoked when a nonexistent method or property is accessed.
inherited
toString() → String
A string representation of this object.
inherited

Operators

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