You can get it using getDuration()and methods getFileSize() IContainer. You can do it as follows:
private static final String filename = "c:/myvideo.mp4";
IContainer container = IContainer.make();
int result = container.open(filename, IContainer.Type.READ, null);
long duration = container.getDuration();
long fileSize = container.getFileSize();
You can see the full example here.
Hope this helps
source
share