Skip to content

The Android-Video-Trimmer project implements the selection of clips for long and short videos. It uses MediaMetadataRetriever to obtain video frames, and uses ffmpeg for video cropping and video compression.

License

Notifications You must be signed in to change notification settings

iknow4x/Android-Video-Trimmer

Repository files navigation

Android Video Trimmer

License Stars Forks

English

📝 Project Overview

Android Video Trimmer is a powerful open-source video processing tool designed specifically for the Android platform. In an Android ecosystem where video editing applications are scarce, this project aims to provide an efficient and user-friendly solution for video trimming and compression.

✨ Key Features

  • 🎬 Precise video trimming
  • 🗜️ Efficient video compression
  • 📊 Customizable compression parameters
  • 🖼️ Video frame preview
  • 📱 User-friendly interface

🛠️ Technology Stack

  • FFmpeg: Core video processing
  • Loader/ContentProvider: Video resource acquisition
  • VideoView: Video playback
  • RecyclerView: Frame image display
  • MediaMetadataRetriever: Video frame extraction
  • Custom Views: Enhanced user interface

🚀 Quick Start

  1. Clone the repository: git clone https://github.com/iknow4/Android-Video-Trimmer.git
  2. Open the project in Android Studio
  3. Sync Gradle files
  4. Run the app on your device or emulator

📖 Usage Guide

  1. Launch the app and grant necessary permissions
  2. Select the video you want to edit
  3. Use the interface tools to trim the video
  4. Set compression parameters (optional)
  5. Start processing and wait for completion

Note: Processed videos will be saved in the Android/data/[package_name]/cache folder.

🔮 Future Plans

  • Advanced compression algorithm optimization
  • Add video filters and effects
  • Support for more video formats
  • Batch processing functionality
  • Cloud storage integration

🤝 Contribution Guidelines

We welcome contributions of any kind! Here's how you can contribute:

  1. Fork the project
  2. Create your feature branch (git checkout -b feature/AmazingFeature)
  3. Commit your changes (git commit -m 'Add some AmazingFeature')
  4. Push to the branch (git push origin feature/AmazingFeature)
  5. Open a Pull Request

📬 Contact Us

📄 License

This project is licensed under the MIT License. See the LICENSE file for more information.

If you find this project helpful, please consider giving it a ⭐️ Star and Fork! Your support drives our continuous improvement!

Video of this project after reconstruction:

videoTrim2

Old video:

VideoTrim

Maintainers

Contributors

Original Author: iknow4x

中文

📝 项目简介

Android Video Trimmer 是一个强大的开源视频处理工具,专为Android平台设计。在视频编辑应用匮乏的Android生态系统中,本项目旨在提供高效、易用的视频裁剪和压缩解决方案。

✨ 主要特性

  • 🎬 精确视频裁剪
  • 🗜️ 高效视频压缩
  • 📊 自定义压缩参数
  • 🖼️ 视频帧预览
  • 📱 友好的用户界面

🛠️ 技术栈

  • FFmpeg: 视频处理核心
  • Loader/ContentProvider: 视频资源获取
  • VideoView: 视频播放
  • RecyclerView: 帧图片展示
  • MediaMetadataRetriever: 视频帧提取
  • 自定义View: 交互界面优化

🚀 快速开始

  1. 克隆仓库: git clone https://github.com/iknow4/Android-Video-Trimmer.git
  2. 在Android Studio中打开项目
  3. 同步Gradle文件
  4. 运行应用在您的设备或模拟器上

📖 使用指南

  1. 启动应用,授予必要权限
  2. 选择需要编辑的视频
  3. 使用界面工具进行视频裁剪
  4. 设置压缩参数(可选)
  5. 开始处理并等待完成

注意: 处理后的视频将保存在 Android/data/[包名]/cache 文件夹中。

🔮 未来规划

  • 高级压缩算法优化
  • 添加视频滤镜和特效
  • 支持更多视频格式
  • 批量处理功能
  • 云端存储集成

🤝 贡献指南

我们欢迎任何形式的贡献!以下是您可以参与的方式:

  1. Fork 本项目
  2. 创建您的特性分支 (git checkout -b feature/AmazingFeature)
  3. 提交您的更改 (git commit -m 'Add some AmazingFeature')
  4. 推送到分支 (git push origin feature/AmazingFeature)
  5. 打开一个 Pull Request

📬 联系我们

📄 许可证

本项目采用 MIT 许可证。查看 LICENSE 文件以获取更多信息。

如果您觉得这个项目有帮助,请考虑给它一个 ⭐️ Star 和 Fork!您的支持是我们持续改进的动力!

项目重构后的视频效果:

videoTrim2

项目重构前的视频效果:

VideoTrim

Maintainers

Contributors

Original Author: iknow4x

About

The Android-Video-Trimmer project implements the selection of clips for long and short videos. It uses MediaMetadataRetriever to obtain video frames, and uses ffmpeg for video cropping and video compression.

Topics

Resources

License

Stars

Watchers

Forks

Packages

No packages published

Contributors 3

  •  
  •  
  •  

Languages