Ilovecat1949/AudioAndVideoEditor
An Android application for audio and video editing based on FFmpeg
Featured achievements
The project's latest awards
#1 Repository of the week
#4 Repository of the week
#1 Repository of the week
音视频编辑器

简介
这是一款基于FFmpeg的Android音视频编辑器,目标是在Android上提供大多数FFmpeg的功能。目前支持FFmpeg命令行、视频压缩、视频格式转换、视频时长剪裁、视频重编码、获取音视频信息等功能。
本项目代码写的比较粗糙,如有不对请多多指教。有什么问题或者建议可以邮箱联系我。
本项目支持简体中文和英语两种语言,可以在设置里面切换语言。
开发和运行环境
本项目由Android Studio开发,使用的编程语言是Kotlin和C++,使用的FFmpeg版本是4.2.11。
本项目应该支持Android 10及至Android 16的Android系统,在我自己的x86_64的Android 16虚拟机和arm64-v8a的Android 14的真机跑通过。
已适配 16KB Page Size。
本项目应用运行需获取文件读写权限和通知权限。文件读写权限用于读取本机音视频文件和生成新的音视频文件,是必需的权限。
通知权限主要用于告知用户任务执行进度,是非必需的。
添加了去除省电限制的提示和按钮以便保证任务在后台平稳运行,不过需要注意这是比较危险的权限。
功能
| 功能名称 | 功能详情 |
|---|---|
| ffmpeg命令行 | 在手机上执行ffmpeg命令行 |
| 视频压缩功能 | 根据用户选择的压缩比例对视频进行重编码压缩 |
| 视频格式转换功能 | 用于重新设置视频封装类型、视频编码类型、音频编码类型、视频分辨率、视频码率、视频帧率、音频码率、音频采样率。支持MP3和H.265 |
| 视频时长剪裁 | 用于裁剪用户截取指定的视频片段,有快速剪裁和精准剪裁两种模式。快速剪裁的执行速度快,截取的时间点可能没那么准。精准剪裁的执行速度较慢,截取的时间点会更准确。 |
| 视频画面剪裁 | 用于裁剪用户指定的视频画面。 |
| 调整视频比例 | 用于重新设置视频比例和视频背景颜色。 |
| 视频变速 | 用于设置视频播放速度。 |
| 提取音频 | 用于提取视频中的音频。 |
| 视频消音 | 用于消除视频中的音频部分。 |
参考
1.Android 音视频开发打怪升级系列文章
2.LearningVideo
3.MediaPipe + FFmpeg生成绿幕视频的另一种方式
4.Jetpack Compose Codelabs Android官方示例项目
Similar Projects
Discover other similar projects and AI models.
High performance self-hosted photo and video management solution.
利用 AI 大模型和自动化工作流,根据主题或关键词一键生成高清短视频。Generate HD short videos from a topic or keyword with an automated AI workflow.
Reverse engineer anything with agents, from app behavior down to native binaries.
The agent harness performance optimization system. Skills, instincts, memory, security, and research-first development for Claude Code, Codex, Opencode, Cursor and beyond.
Fair-code workflow automation platform with native AI capabilities. Combine visual building with custom code, self-host or cloud, 400+ integrations.
Free domain registration and practical DNS learning resources for everyone.
🙃 A delightful, community-driven framework for managing your zsh configuration. Built by 2,600+ contributors, with hundreds of plugins (git, rails, laravel, node, python, docker, kubectl, aws, and more), themes to spice up your terminal, and automatic updates to keep your command line feeling like home.
all-MiniLM-L6-v2 This is a sentence-transformers(https://www.SBERT.net) model: It maps sentences & paragraphs to a 384 dimensional dense vector space and can be used for tasks like clustering or semantic search. Usage (Sentence-Transformers) Using t...