IContainer container = IContainer.make();
InputStream input = null;
try {
input = new FileInputStream(filename);
IContainerFormat inputFormat = IContainerFormat.make();
inputFormat.setInputFormat("mp4");
if (containerVideo.open(input, inputFormat) < 0) {
throw new IllegalArgumentException("Can't open the file ");
}
} catch (FileNotFoundException e) {
throw new IllegalArgumentException("Can't find the file ");
}
Is there a way I could use the library to achieve what I am looking for? Thanks so much for any advice.