Created
November 6, 2017 14:45
-
-
Save madhavanmalolan/f174080da778f66eb36fc2a46aeefca1 to your computer and use it in GitHub Desktop.
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
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