diff --git a/ox/file.py b/ox/file.py index e4fedcd..885a982 100644 --- a/ox/file.py +++ b/ox/file.py @@ -278,6 +278,8 @@ def ffprobe(filename): if 'rotate' in info.get('metadata', {}) and int(info['metadata']['rotate']) in (-180, -90, 90, 180): v['width'], v['height'] = v['height'], v['width'] k = 'display_aspect_ratio' + if k in v: + v[k] = ':'.join(reversed(v[k].split(':'))) if k not in v and 'width' in v \ or (k in v and v[k] == '0:1'): v[k] = '%d:%d' % (v['width'], v['height'])