I am trying to open a video file with xuggle like this:
if (container.open(in, null) < 0) {
throw new IllegalArgumentException("could not open file: ");
}
The problem happened when i use mp4 file and i passed to open a InputStream:
InputStream in = new FileInputStream(filename);
In this case IContainer.open remains blocked and does not return anything.
However if I pass a file name to the open method or I use the flv format, it works fine.
I have to use InputStream with an mp4 file.
Can someone help me to find the problem?