i want to convert sequence of images to video in android sdcard by using ffmpeg…how to use that bellow line in android…. ffmpeg -f image2 -i img%4d.png video.mp4.
I try this line File dir = new File(“/mnt/sdcard”);
// create a process and execute notepad.exe and currect environment
try {
Process p = Runtime.getRuntime().exec("ffmpeg -f image2 -i img%4d.png video_test.mp4",null,dir);
} catch (IOException e) {
// TODO Auto-generated catch block
e.printStackTrace();
}
but i am getting java.io.ioexception environment null,directory null error….
its worked an android javacv/opencv.so try this code,