项目作者: Quickits

项目描述 :
📦 FFmpeg command line tool box for Android
高级语言: Kotlin
项目地址: git://github.com/Quickits/FFmpegBox.git
创建时间: 2017-03-06T08:43:28Z
项目社区:https://github.com/Quickits/FFmpegBox

开源协议:Apache License 2.0

下载


FFmpegBox

📦 FFmpeg command line tool box for android

  • API Flow Based on RxJava
  • FFmpeg binary Based on Thor
Version Converter
Images Images

Download

  • Add the JitPack repository to your build file
  1. allprojects {
  2. repositories {
  3. maven { url 'https://jitpack.io' }
  4. }
  5. }
  • Add the dependency
  1. dependencies {
  2. implementation 'cn.quickits:FFmpegBox:1.0.1'
  3. }

Usage

Init

  1. class YourApplication : Application() {
  2. override fun onCreate() {
  3. super.onCreate()
  4. FFmpegBox.init(this)
  5. }
  6. }

Execute example

  1. FFmpegBox.get().exec(arrayOf(
  2. "-i", "/sdcard/screenshots.mp4",
  3. "-vcodec", "copy",
  4. "/sdcard/screenshots.avi"))
  5. .observeOn(AndroidSchedulers.mainThread())
  6. .subscribe(
  7. { status ->
  8. msg.append(status.msg)
  9. msg.append("\n")
  10. },
  11. { error -> error.printStackTrace()
  12. })

License

Apache License Version 2.0

Copyright (c) 2017-present, GavinLiu