wlanjie/trinity logo

wlanjie/trinity

Free

android video record editor muxer sdk

FreeFree tier
Inputs: video, audio
Type
Open Source

About wlanjie/trinity

Trinity is an open-source Android SDK for video recording and short video editing, written in Kotlin and C++. It implements many popular features found in short video editing apps, including multi-session recording, camera controls (flash, focus, resolution, bitrate), video effects (filters, split screens, blur, glitch, shake, soul out, 70s style), face recognition and markup (rose eye, princess, sticker makeup, falling pig, cat head), and audio support (background music, mute, recording speed). It supports hardware and software encoding, custom camera configurations, and multi-segment editing. The SDK requires Android 4.3 or above and the caller to handle runtime permissions. It leverages FFmpeg, libx264, fdk-aac, and other libraries for multimedia processing.

Key Features

Multi-session recording with custom duration and camera configuration
Camera switch, flash, focus (manual and auto), and exposure adjustment
Beauty filters and microdermabrasion
Custom resolution and bitrate for video
Background music and recording speed control
Hardware and software encoding support
Multi-segment video editing with clip trimming and replacement
Special effects: filters, flash white, split screens (2, 3, 4, 6, 9), blur, Gaussian blur, soul out, shake, glitch, 70s style
Face recognition with rose eye markup, princess effect, sticker makeup, falling pig, cat head
Face effect debugging via Xcode (macOS) using GLFW

Pros & Cons

Pros
  • Open source and free to use
  • Comprehensive set of video recording and editing features
  • Supports both hardware and software encoding for flexibility
  • Includes advanced face effects and recognition
  • Written in Kotlin and C++ for performance
  • Supports Android 4.3 and above (wide compatibility)
Cons
  • Android-only; no iOS or web support
  • Requires the caller to handle runtime permissions; no built-in permission management
  • Documentation is primarily in Chinese (English README available but limited)
  • May have a learning curve for integration into existing projects
  • Active maintenance status not clear from repository

Best For

Building custom video recording and editing apps for AndroidAdding short video creation features with special effectsIntegrating face filters and stickers into mobile appsDeveloping video processing tools for social media platformsCreating educational or tutorial apps with video editing capabilities

FAQ

What is Trinity?
Trinity is an open-source Android SDK for video recording and short video editing, written in Kotlin and C++. It offers features like multi-session recording, various video effects, face recognition, and multi-segment editing.
What Android versions are supported?
Trinity supports Android 4.3 (API 18) and above.
Is Trinity free to use?
Yes, Trinity is open source and free to use. The project is hosted on GitHub under an open-source license.
Does Trinity include beauty filters?
Yes, it includes beauty filters and microdermabrasion effects.
Can I add background music to videos?
Yes, Trinity supports adding background music during recording and editing.
Does Trinity support face effects?
Yes, it includes face recognition and face effects such as rose eye markup, princess, sticker makeup, falling pig, and cat head.