public SubDvd(String subFile, String idxFile) throws CoreException {
readIdx(idxFile);
Core.setProgressMax(subPictures.size());
try {
buffer = new FileBuffer(subFile);
} catch (FileBufferException e) {
throw new CoreException(e.getMessage());
}
for (int i=0; i < subPictures.size(); i++) {
Core.setProgress(i);