ISK
Index04 / Open Source

react-native-lossless-trim

react-native-lossless-trim - Open Source by Iyegere Success Karboloo
The problem, and the build

Every popular React Native video-trimming library bundles ffmpeg: tens of megabytes of binary, a re-encode on every clip that quietly degrades quality, and a dependency on ffmpeg-kit, which was retired in 2025. react-native-lossless-trim takes the opposite path. It trims by stream-copying the encoded frames on the platform's own native APIs - AVAssetExportSession passthrough on iOS, MediaExtractor and MediaMuxer on Android - so the cut is lossless, near-instant, and adds essentially no binary weight. It also fixes the subtle Android audio/video desync that most passthrough trimmers ship with, by rebasing both tracks to a single shared keyframe origin, and documents the iOS-versus-Android precision tradeoff openly instead of hiding it. Shipped as an Expo module with a typed TypeScript API, New Architecture support, an example app, unit-tested timing logic, and CI.

Spec
Discipline
Open Source
State
Live
Availability
Open source on GitHub
Focus
Lossless Video Trim · Zero ffmpeg, Native APIs · Near-Instant Stream-Copy · iOS + Android, New Arch
What it does
  • 01

    Lossless, ffmpeg-free trim on native platform APIs

  • 02

    Near-instant stream-copy: no re-encode, ~0 MB added

  • 03

    Fixes the Android audio/video desync via a shared keyframe origin

  • 04

    Typed Expo module, New Arch, example app, and CI