updated method for frame extraction in VideoParser class