private void processSubtitle(String subtitleFile) throws IOException {
        RandomAccessFile raf = new RandomAccessFile(subtitleFile, "r");

        int previousEndTime = 0;
        int fullPauseTime = 0;
        int notZero = 0;

        String line = raf.readLine();
        String chunkText = "";
        while (line != null) {
            if (line.length() == 0) {
                if (chunkText.length() > 0) {
                    SrtChunk chunk = new SrtChunk(chunkText);
                    chunks.add(chunk);
                    chunkText = "";

                    if (previousEndTime > 0) {
                        int delta = chunk.getStartTime() - previousEndTime;
                        if (delta > 0) {
                            fullPauseTime += delta;
                            notZero ++;
                        }
                    }
                    previousEndTime = chunk.getEndTime();
                }
            }
            else {
                chunkText += (line + "\n");
            }
            line = raf.readLine();
        }
        if (chunkText.length() > 0) {
            SrtChunk chunk = new SrtChunk(chunkText);
            chunks.add(chunk);

            if (previousEndTime > 0) {
                int delta = chunk.getStartTime() - previousEndTime;
                if (delta > 0) {
                    fullPauseTime += delta;
                    notZero ++;
                }
            }
        }

        averagePauseTime = (double) fullPauseTime / notZero;
    }