AnJoiner/FFmpegCommand logo

AnJoiner/FFmpegCommand

Free

FFmpegCommand适用于Android的FFmpeg命令库,实现了对音视频相关的处理,能够快速的处理音视频,大概功能包括:音视频剪切,音视频转码,音视频解码原始数据,音视频编码,视频转图片或gif,视频添加水印,多画面拼接,音频混音,视频亮度和对比度,音频淡入和淡出效果等

FreeFree tier
Type
Open Source

About AnJoiner/FFmpegCommand

FFmpegCommand is an Android library that wraps FFmpeg with integrated codecs (lame, libx264, fdk-aac, opencore-amr) for comprehensive audio/video processing. It supports all FFmpeg commands, progress callbacks, command cancellation, debug mode, media info extraction, drawtext, subtitles, MediaCodec hardware encoding/decoding, and is optimized for Android architectures (arm64-v8a, armeabi-v7a) with merged and 16KB-aligned native libraries.

Key Features

Supports all FFmpeg commands
Real-time progress callback for running commands
Cancel command execution during operation
Debug mode on/off
Extract media file information (width, height, etc.)
Draw text (watermark) on video (v1.3.2)
Add subtitles in SRT and ASS formats (v1.3.2)
MediaCodec hardware encoding/decoding support (v1.3.0)
Support for arm64-v8a and armeabi-v7a architectures
Merge multiple native libraries into a single ffmpeg-org.so

Pros & Cons

Pros
  • Open source and free to use
  • Comprehensive integration of popular codecs (x264, aac, mp3, amr)
  • Full FFmpeg command support with Android-friendly wrappers
  • Hardware acceleration via MediaCodec for better performance
  • Detailed progress callbacks and command cancellation
  • Optimized for Android with merged and aligned native libraries
Cons
  • Android only; not available for iOS or other platforms
  • Requires manual compilation setup (cross-compilation toolchain)
  • Command-line based, may be less user-friendly for non-developers

Best For

Audio/video trimming and cuttingVideo transcoding between formatsExtracting raw audio/video dataEncoding video from images or GIFsAdding watermarks (text or image) to videosMulti-screen video concatenationAudio mixingAdjusting video brightness and contrast

FAQ

What is FFmpegCommand?
FFmpegCommand is an Android library that provides a convenient interface for FFmpeg commands, integrating popular codecs such as lame, libx264, fdk-aac, and opencore-amr for audio/video processing.
Does FFmpegCommand support hardware acceleration?
Yes, since version 1.3.0, it supports MediaCodec hardware encoding and decoding.
What architectures are supported?
The library supports armeabi-v7a and arm64-v8a architectures.
Is FFmpegCommand free?
Yes, it is an open-source project available on GitHub.