Android Java wrapper around ffmpeg command line binary

Overview

FFMPEG Library for Android

This project is a Java wrapper around an ffmpeg command line binary for use in Android applications. It depends on the android-ffmpeg project to provide the ffmpeg binary.

For ease of developer use, we've included the FFMPEG and Sox binaries in the project, however, we strongly recommend you compile them yourselves using the steps below.

It is licensed under the GPLv3.

Building

Ensure NDK_BASE env variable is set to the location of your NDK, example:

export NDK_BASE=/path/to/android-ndk

Then execute:

git submodule update --init --recursive
cd external/android-ffmpeg
./configure_make_everything.sh

Once compiled, you will find the binaries at:

external/android-ffmpeg/ffmpeg/ffmpeg external/android-ffmpeg/data/data/info.guardianproject.ffmpeg/app_opt/bin/sox

You should replace the files in res/raw with these.

Then build the project in Eclipse.

You might also like...
Convert audio files inside your Android app easily. Supported formats: AAC, MP3, M4A, WMA, WAV and FLAC.

AndroidAudioConverter Convert audio files inside your Android app easily. This is a wrapper of FFmpeg-Android-Java lib. Supported formats: AAC MP3 M4A

A mod of the Twitch Android Mobile App adding BetterTTV and FrankerFaceZ emotes
A mod of the Twitch Android Mobile App adding BetterTTV and FrankerFaceZ emotes

A mod of the Twitch Android Mobile App adding BetterTTV and FrankerFaceZ emotes

android video player base on ijkplayer
android video player base on ijkplayer

GiraffePlayer NOTE:this project is no longer update please using improved GiraffePlayer2 ,for flutter please visit GPlayer out of the box android vide

Android MoveNet single human pose estimation by ncnn
Android MoveNet single human pose estimation by ncnn

Android MoveNet single human pose estimation by ncnn

FFmpeg compiled for Android. Execute FFmpeg commands with ease in your Android app.
FFmpeg compiled for Android. Execute FFmpeg commands with ease in your Android app.

FFMPEG video operations FFmpeg compiled for Android. Execute FFmpeg commands with ease in your Android app. Getting Started This project is provide in

Mirror of https://git.ffmpeg.org/ffmpeg.git

FFmpeg README FFmpeg is a collection of libraries and tools to process multimedia content such as audio, video, subtitles and related metadata. Librar

A Kotlin/Java library to connect directly to an Android device without an adb binary or an ADB server
A Kotlin/Java library to connect directly to an Android device without an adb binary or an ADB server

dadb Blog Post: Our First Open-Source Project A Kotlin/Java library to connect directly to an Android device without an adb binary or an ADB server de

Command framework built around Kord, built to be robust and scalable, following Kord's convention and design patterns.

Command framework built around Kord, built to be robust and scalable, following Kord's convention and design patterns.

Wynncraft API Wrapper - Simple wrapper to get Wynncraft Stats of a player or a guild and more in Java

WynncraftAPIWrapper Simple wrapper to get Wynncraft Stats of a player or a guild

Create kotlin android project with one line of command.

README This is an android application template project built with kotlin language and some useful libraries. It provides a creator script to quickly c

Android application compatible with ZX2C4's Pass command line application
Android application compatible with ZX2C4's Pass command line application

Password Store Download Documentation We're in the process of rewriting our documentation from scratch, and the work-in-progress state can be seen her

Create kotlin android project with one line of command.

README This is an android application template project built with kotlin language and some useful libraries. It provides a creator script to quickly c

Command-line tool to count per-package methods in Android .dex files

dex-method-counts Simple tool to output per-package method counts in an Android DEX executable grouped by package, to aid in getting under the 65,536

A multi platform image density converting tool converting single or batches of images to Android, iOS, Windows or CSS specific formats and density versions given the source scale factor or width/height in dp. It has a graphical and command line interface and supports many image types (svg, psd, 9-patch, etc.) aswell as some lossless compressors like pngcrush. Android application compatible with ZX2C4's Pass command line application
Android application compatible with ZX2C4's Pass command line application

Password Store Download Documentation We're in the process of rewriting our documentation from scratch, and the work-in-progress state can be seen her

Create kotlin android project with one line of command.

README This is an android application template project built with kotlin language and some useful libraries. It provides a creator script to quickly c

A command line tool that helps bulk manage resources in an Android project

Resource Mover ResourceMover is a command line tool that helps bulk manage resources in an Android project. Installation Clone project Build CLI jar u

AdpPad is a GUI application to use adb. adb is a command line tool to control android device.

AdbPad AdpPad is a GUI application to use adb. adb is a command line tool to control android device. Demo.mp4 ✨ Feature Observe a connected android de

Run Minecraft on the command line

HeadlessForge While headless Minecraft Clients aren't anything new, they come with a drawback. The Minecraft API is missing and you need to add all fu

Comments
  • Modified execute commands to always use US for the Locale

    Modified execute commands to always use US for the Locale

    We were having issues with our generated ffmpeg commands breaking because the Locale was set to China. Our command strings were containing characters that ffmpeg couldn't interpret. So instead of checking for the locale at every ffmpeg call, we felt it would be better to handle at the source.

    opened by micahjlucas 3
  • Sprint2 filters

    Sprint2 filters

    Adding two fiters for sprint 2 work, photo/video cropping and rotation.

    https://dev.guardianproject.info/issues/129 https://dev.guardianproject.info/issues/130

    opened by n8fr8 2
  • Simple sox support (w/ crossfader)

    Simple sox support (w/ crossfader)

    Requires changes from my android-ffmpeg sox branch.

    • Installs sox binary like we do the ffmpeg binary
    • Crossfader class that performs crossfade is a composition of...
    • ...a few rudimentary sox cli actions
    opened by abeluck 1
  • moved the input file before the start time to improve precision

    moved the input file before the start time to improve precision

    The behaviour of ffmpeg depends on the order of the command line arguments and I found that when trimming a clip the precision on the start time and duration is much improved when the input file is given as an argument before the start time and end time.

    For example during my test the command:

    ffmpeg -y -ss 1 -t 3 -i input.mp4 -strict -2 output.mp4

    trim a clip with 4 seconds duration while the command:

    ffmpeg -y -i input.mp4 -ss 1 -t 3 -strict -2 output.mp4

    output a video with exactly 3 seconds duration.

    Therefore I suggest this small change to the code or at least to give the option to reorder the arguments if needed.

    opened by e-massa 1
[] FFmpeg build for android random architectures with example jni

AndroidFFmpegLibrary This project aims to create working library providing playing video files in android via ffmpeg libraries. With some effort and N

AppUnite Sp. z o.o. Spk. 1k Mar 1, 2021
a system for building custom ffmpeg binaries for Android

This is a new android-ffmpeg project since it seems there were so many different ways of doing it, it was confusing. So here is my clean, easily chan

Guardian Project 967 Nov 12, 2022
script(s) to build ffmpeg for android, including support for RTMP (and OpenSSL)

android-ffmpeg-with-rtmp This repository contains script(s) to build ffmpeg for android with RTMP (and OpenSSL) support. Instructions Install the Andr

cine.io 234 Dec 28, 2022
Script and Instructions for building FFmpeg for Android

FFmpeg-Android Herein lies scripts and instructions for compiling FFmpeg for Android with RTMP support. Much thanks to Chris Ballinger and Liu Feipeng

David Brodsky 80 Dec 13, 2022
Android/iOS video player based on FFmpeg n3.4, with MediaCodec, VideoToolbox support.

ijkplayer Platform Build Status Android iOS Video player based on ffplay Download Android: Gradle # required allprojects { repositories {

bilibili 28.9k May 26, 2021
Cache support for any video player with help of single line

Video cache support for Android Table of Content Why AndroidVideoCache? Features Get started Recipes Disk cache limit Listen caching progress Providin

Alexey Danilov 5.1k Dec 26, 2022
A Java API to read, write and create MP4 files

Build status: Current central released version 1.x branch: Current central released version 2.x branch: Java MP4 Parser A Java API to read, write and

Sebastian Annies 2.4k Apr 2, 2021
[] Easily integrate Camera features into your Android app

Deprecated CameraView is deprecated. No more development will be taking place. Use Jetpack CameraX instead. CameraView This is not an official Google

Google 4.8k Dec 29, 2022
A solution for streaming H.264, H.263, AMR, AAC using RTP on Android

Introduction What it does libstreaming is an API that allows you, with only a few lines of code, to stream the camera and/or microphone of an android

Simon 3.3k Dec 30, 2022
MJPEG video streaming on Android

ipcam-view Android MJPEG video streaming made simple! A wrapper library around the well known SimpleMjpegView and android-camera-axis projects. If you

null 359 Jan 6, 2023