VideoProbeResult class final

The probed facts of one video stream.

Constructors

VideoProbeResult({required String codec, required int width, required int height, required int nbFrames, required double durationSeconds, double? declaredFps, bool hasAudio = false, bool hasAlpha = false})
Creates a result from the probed stream and container facts.
const

Properties

codec String
The codec name of the first video stream (for example h264).
final
declaredFps double?
The frame rate the container declares, or null when it declares none or declares it unknown (0/0). Read fps instead of this: it falls back to the derived rate.
final
durationSeconds double
The duration in seconds.
final
fps double
The stream's frame rate: the declared rate when there is one, else the frame count over the duration.
no setter
hasAlpha bool
Whether the video stream carries a coded alpha layer.
final
hasAudio bool
Whether the file carries at least one audio stream.
final
hashCode int
The hash code for this object.
no setterinherited
height int
Stream height in pixels.
final
nbFrames int
The frame count of the video stream.
final
runtimeType Type
A representation of the runtime type of the object.
no setterinherited
width int
Stream width in pixels.
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