Skip to content

Repository files navigation

NextLib

Build nextlibMaven Central

NextLib is a library for adding ffmpeg codecs to Media3.

Currently supported decoders

  • Audio: Vorbis, Opus, Flac, Alac, pcm_mulaw, pcm_alaw, MP3, Amrnb, Amrwb, AAC, AC3, EAC3, dca, mlp, truehd
  • Video: H.264, HEVC, VP8, VP9

Setup

Kotlin DSL:

dependencies {
implementation("io.github.anilbeesetti:nextlib-media3ext:INSERT_VERSION_HERE") // To add media3 software decoders and extensions
implementation("io.github.anilbeesetti:nextlib-mediainfo:INSERT_VERSION_HERE") // To get media info through ffmpeg
}

Groovy DSL:

dependencies {
implementation "io.github.anilbeesetti:nextlib-media3ext:INSERT_VERSION_HERE"// To add media3 software decoders and extensions
implementation "io.github.anilbeesetti:nextlib-mediainfo:INSERT_VERSION_HERE"// To get media info through ffmpeg
}

Usage

To use Ffmpeg decoders in your app, Add NextRenderersFactory (is one to one compatible with DefaultRenderersFactory) to ExoPlayer

val renderersFactory =NextRenderersFactory(applicationContext) ExoPlayer.Builder(applicationContext)
.setRenderersFactory(renderersFactory)
.build()

Releases

Packages

Used by

Contributors

Languages