video_compress_kit_android 0.0.1
video_compress_kit_android: ^0.0.1 copied to clipboard
Android implementation of the video_compress_kit plugin using MediaCodec.
video_compress_kit_android #
The Android implementation of video_compress_kit.
How it works #
Uses Android's built-in MediaCodec hardware video encoder with
MediaExtractor for demuxing and MediaMuxer for muxing. No bundled native
libraries — the entire implementation rides on top of the OS APIs, adding
~0 MB to your APK size.
Pipeline #
Input MP4
→ MediaExtractor (demux video + audio tracks)
→ MediaCodec decoder (hardware H.264 decode)
→ Surface transfer
→ MediaCodec encoder (hardware H.264 encode at target bitrate / resolution)
→ MediaMuxer + audio passthrough
→ Output MP4
Requirements #
| Requirement | Value |
|---|---|
| Min SDK | 24 (Android 7.0) |
| Compile SDK | 36 |
| Kotlin | 2.x |
Usage #
You should not depend on this package directly. Add the app-facing package instead:
dependencies:
video_compress_kit: ^0.0.1
The Android implementation is automatically endorsed and registered.
License #
MIT — see LICENSE.