// As MP4 video files are typically large, always use a file to
// avoid OOMs that may occur with in-memory buffering
TikaInputStream tstream = TikaInputStream.get(stream);
try {
IsoBufferWrapper isoBufferWrapper =
new IsoBufferWrapperImpl(tstream.getFile());
isoFile = new IsoFile(isoBufferWrapper);
isoFile.parse();
} finally {
tstream.close();
}