MediaProbeService class
Constructors
Properties
- hashCode → int
-
The hash code for this object.
no setterinherited
- runtimeType → Type
-
A representation of the runtime type of the object.
no setterinherited
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
Static Methods
-
convertImageToVideo(
{required File imageFile, required Duration duration}) → Future< File> -
displaySize(
Size stored, int rotation) → Size - Applies a rotation in degrees to a stored frame size.
-
generateProxyVideo(
File inputVideo, {List< String> ? videoCodecArgs}) → Future<File> -
Re-encodes
inputVideowith its short side at proxyShortSide.videoCodecArgsoverrides the default x264 / VideoToolbox settings (the render service passes the hardware encoder when available). -
generateThumbnail(
File videoFile, {Duration time = const Duration(seconds: 1)}) → Future< File?> -
generateThumbnailStrip(
File videoFile, {int count = 8}) → Future< List< File> > -
getVideoDuration(
File file) → Future< Duration> -
getVideoResolution(
File file) → Future< Size> -
hasAudioStream(
File file) → Future< bool> -
probe(
File file) → Future< MediaInfo> - Probes duration, display size and audio presence in one FFprobe call, falling back to the platform player when FFprobe is unavailable.
-
rotationOf(
StreamInformation stream) → int -
Rotation in degrees from the stream's
rotatetag or display matrix.
Constants
- proxyShortSide → const int
- Short side of proxy videos. Previews render at 432 px, so 480 leaves a little room for zoomed (filled / cropped) clips.