Metadata aspect ratio
Take it into consideration
This commit is contained in:
parent
6faed80248
commit
ef927d6b3b
1 changed files with 4 additions and 1 deletions
|
@ -142,6 +142,9 @@ class API():
|
||||||
videotrack['height'] = mediaStream.get('Height')
|
videotrack['height'] = mediaStream.get('Height')
|
||||||
videotrack['width'] = mediaStream.get('Width')
|
videotrack['width'] = mediaStream.get('Width')
|
||||||
videotrack['Video3DFormat'] = item.get('Video3DFormat')
|
videotrack['Video3DFormat'] = item.get('Video3DFormat')
|
||||||
|
try:# Metadata aspect ratio
|
||||||
|
videotrack['aspectratio'] = item['AspectRatio']
|
||||||
|
except: # File aspect ratio
|
||||||
videotrack['aspectratio'] = mediaStream.get('AspectRatio', "0")
|
videotrack['aspectratio'] = mediaStream.get('AspectRatio', "0")
|
||||||
if len(videotrack['aspectratio']) >= 3:
|
if len(videotrack['aspectratio']) >= 3:
|
||||||
try:
|
try:
|
||||||
|
|
Loading…
Reference in a new issue