In my app a video is generated who's name is
private file = new File(Environment.getExternalStorageDirectory(), "/videos/" + "file " + ".mp4");
If i start recording again , it overwrites the above file,
So, i need to give it a sequence; like (file + 1); so i get like file1, file2, file3, .... so on
how do i do it?
Secondly, i need to merge all this files in a mp4parser code,
public class Append {
public static void main(String[] args) throws IOException {
String[] videoUris = new String[]{
//.........code for files to be merged........//
}
so how do i feed the above files to it, in the sequence which was created prior?
Thanks........!
private file = new File(Environment.getExternalStorageDirectory(), "/videos/" + "file " + ".mp4");
If i start recording again , it overwrites the above file,
So, i need to give it a sequence; like (file + 1); so i get like file1, file2, file3, .... so on
how do i do it?
Secondly, i need to merge all this files in a mp4parser code,
public class Append {
public static void main(String[] args) throws IOException {
String[] videoUris = new String[]{
//.........code for files to be merged........//
}
so how do i feed the above files to it, in the sequence which was created prior?
Thanks........!
Last edited: