rotate width/height

This commit is contained in:
j 2017-01-07 12:11:21 +01:00
parent 077c979a41
commit 354784a93b

View file

@ -296,6 +296,8 @@ def ffprobe(filename):
pass
# print s
for v in info['video']:
if 'rotate' in info.get('metadata', {}) and int(info['metadata']['rotate']) in (90, 180):
v['width'], v['height'] = v['height'], v['width']
k = 'display_aspect_ratio'
if k not in v and 'width' in v \
or (k in v and v[k] == '0:1'):