video_compress_kit_ios 0.0.1
video_compress_kit_ios: ^0.0.1 copied to clipboard
iOS implementation of the video_compress_kit plugin using AVFoundation & VideoToolbox.
video_compress_kit_ios #
The iOS implementation of video_compress_kit.
How it works #
Uses Apple's AVAssetReader / AVAssetWriter pipeline which is backed by the VideoToolbox hardware encoder on all modern iOS devices. No third-party native libraries are shipped — the implementation uses only system frameworks, adding ~0 KB to your app binary.
Pipeline #
Input MP4
→ AVAssetReader (demux + decode via VideoToolbox)
→ AVAssetWriter (re-encode at target resolution + bitrate)
→ Audio passthrough via separate AVAssetReaderTrackOutput
→ Output MP4
Requirements #
| Requirement | Value |
|---|---|
| Min iOS | 13.0 |
| Swift | 5.0+ |
| Frameworks | AVFoundation, CoreMedia, VideoToolbox |
Usage #
You should not depend on this package directly. Add the app-facing package instead:
dependencies:
video_compress_kit: ^0.0.1
The iOS implementation is automatically endorsed and registered.
License #
MIT — see LICENSE.