def get_resolution_mediainfo(filename):
    resolution = str(os.popen('mediainfo \'--Inform=Video;%Width%x%Height%\' "' +filename +'"').read()).strip().split('x')
    return [int(resolution[0]), int(resolution[1])]

#----------------------------------------------------------------------
str->list
dataset/ETHPy150Open cnbeining/Biligrab/biligrab.py/get_resolution_mediainfo