def split(path, blocksize):
    """
    Split the file into blocks according to the given size.

    Input: `path`: video path
           `blocksize`: size of each block
    Output: list contain splitted blocks
    """
    with open(path, 'rb') as video:
        byte_content = video.read()
        length = len(byte_content)
        splitted = list()
        for i in range(0, length, blocksize):
            splitted.append(byte_content[i: i + blocksize])
        return splitted