Example app that use ffmpeg library to play video
Switch branches/tags
Nothing to show
Clone or download
Latest commit 80cae32 Sep 4, 2016
Permalink
Type Name Latest commit message Commit time
Failed to load latest commit information.
app Example app init Sep 4, 2016
gradle/wrapper Example app init Sep 4, 2016
.gitignore Nothing important Sep 4, 2016
LICENSE Initial commit Sep 4, 2016
README.md Nothing important Sep 4, 2016
build.gradle Example app init Sep 4, 2016
gradle.properties Example app init Sep 4, 2016
gradlew Example app init Sep 4, 2016
gradlew.bat Example app init Sep 4, 2016
settings.gradle Example app init Sep 4, 2016
test.mp4 Example app init Sep 4, 2016

README.md

ffmpeg-android-example

Example app that use ffmpeg library to play video.

Requirements

  1. Installed Android NDK,
  2. Builded project https://github.com/HausnerR/ffmpeg-android-build.

Howto

  1. Make sure paths to SDK and NDK in local.properties are valid,
  2. Make sure paths to pre-builded ffmpeg in Android.mk are valid,
  3. Push test.mp4 to your phone internal storage root folder,
  4. Build and run app.

Important things

Remember that supported formats depends on ffmpeg compile params. If you compile this example with not modified ffmpeg-android-build script, you only get support for playing local mp4 files.

This example by default use h264_mediacodec ffmpeg decoder. If it failed to initialize, you got error (no fallback written).

All errors are outputted to logcat. No popups or something. It's just example app.

Inspiration