fixed integer overflow bug and fixed OutOfMemoryError by reading segments of video from disk instead of storing video file in RAM