Skip to main content

kutu_media_transform 0.2.0 copy "kutu_media_transform: ^0.2.0" to clipboard
kutu_media_transform: ^0.2.0 copied to clipboard

Device-side crop, trim and re-encode for photos and videos, plus timestamped frame extraction, on Android Media3 and iOS AVFoundation.

0.2.0 #

First public release; 0.1.0 was the still-image-only cut and was never published.

  • MediaTransform seam with four operations: exportImage, exportVideo, extractFrames and probeVideo.
  • CropRect, the single canonical geometry type — normalized 0..1, origin top-left, y-down. Media3's NDC and AVFoundation's point space are converted only at the platform edge.
  • Android export on androidx.media3.transformer.Transformer, using androidx.media3.effect.Crop for the rectangle, ClippingConfiguration for the trim and Presentation for the resolution cap.
  • iOS export on AVMutableVideoComposition plus AVAssetExportSession, with the layer instruction composed against the track's preferredTransform.
  • Still-image export decoded at target size — ImageDecoder.setTargetSize on Android, kCGImageSourceThumbnailMaxPixelSize on iOS — so a full-resolution bitmap is never allocated. EXIF orientation is baked exactly once.
  • HDR sources tone-map to SDR by default; HdrMode.keepHdr opts out.
  • Batched frame extraction for filmstrips and cover frames, with timestamps — something platform gallery thumbnails cannot express.
  • Per-export progress reporting and cooperative cancellation through TransformCancelToken.
  • package:kutu_media_transform/testing.dart exports FakeMediaTransform so consumers can unit-test without a device.

0.1.0 #

  • Still-image export and the MediaTransform seam; superseded by 0.2.0 before publication.
0
likes
160
points
146
downloads
screenshot

Documentation

API reference

Publisher

verified publisherkutuyazilim.org

Weekly Downloads

Device-side crop, trim and re-encode for photos and videos, plus timestamped frame extraction, on Android Media3 and iOS AVFoundation.

Repository (GitHub)
View/report issues

Topics

#video #crop #transcoding #media #thumbnail

License

MIT (license)

Dependencies

flutter, plugin_platform_interface

More

Packages that depend on kutu_media_transform

Packages that implement kutu_media_transform