Skip to content
This repository has been archived by the owner on Jan 6, 2025. It is now read-only.

Android

Taner Sener edited this page Jun 30, 2018 · 26 revisions
  1. Add MobileFFmpeg dependency from jcenter()

    dependencies {`
        implementation 'com.arthenica:mobile-ffmpeg-full:2.0'
    }
    
  2. Use the following source code to execute commands.

    import com.arthenica.mobileffmpeg.FFmpeg;
    
    int rc = FFmpeg.execute("-i", "file1.mp4", "-c:v", "libxvid", "file1.avi");
    Log.i(Log.TAG, String.format("Command execution %s.", (rc == 0?"completed successfully":"failed with rc=" + rc));
    
Clone this wiki locally