Skip to content

Instantly share code, notes, and snippets.

@madhavanmalolan
Created November 6, 2017 14:45
Show Gist options
  • Star 0 You must be signed in to star a gist
  • Fork 0 You must be signed in to fork a gist
  • Save madhavanmalolan/f174080da778f66eb36fc2a46aeefca1 to your computer and use it in GitHub Desktop.
Save madhavanmalolan/f174080da778f66eb36fc2a46aeefca1 to your computer and use it in GitHub Desktop.
package com.example;
import java.io.DataOutputStream;
import java.io.File;
import java.io.IOException;
public class Controller {
static {
System.loadLibrary("ffmpeg");
}
public static native void run(String[] argv);
public static void testFFMPEG(){
//ffmpeg -y -start_number 1 -i /sdcard/test_%d.jpg -vcodec mpeg4 /sdcard/test.mp4
run(new String[]{
"-y",
"-start_number",
"1",
"-i",
"/sdcard/test_%d.jpg",
"-vcodec",
"mpeg4",
"/sdcard/test.mp4"
});
}
}
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment