2014-07-22, 15:55
Hi.
Some SD movies are seen as HD movies :
As you can see, Toy STory is displayed as a 1080p HD movie but when you look at streamdetails table, this movie (ID=73) is an SD movie (WxH=720x576) :
Toy Story = ID 73, Toy Story 2 = ID 71, Toy Story 3 = ID 72)
The wierd thing is that when using Aeon Nox 5.1.2 with extendedinfo script from Phil65 (which recalculate resolution from width and height) :
Cases based on resolution are OK :
But entiring the movie set and default Item.VideoResolution is wrong :
Or maybe that the problem is because thumbnail is embedded in container, as there is 2 videos stream, one for movie video and one for movie thumbnail.
As extendedscript is first steam (videowidth = video[0]['width'], videoheight = video[0]['height']), everything is OK.
Some SD movies are seen as HD movies :
As you can see, Toy STory is displayed as a 1080p HD movie but when you look at streamdetails table, this movie (ID=73) is an SD movie (WxH=720x576) :
Toy Story = ID 73, Toy Story 2 = ID 71, Toy Story 3 = ID 72)
The wierd thing is that when using Aeon Nox 5.1.2 with extendedinfo script from Phil65 (which recalculate resolution from width and height) :
Code:
def media_streamdetails(filename, streamdetails):
info = {}
video = streamdetails['video']
audio = streamdetails['audio']
if '3d' in filename:
info['videoresolution'] = '3d'
elif video:
videowidth = video[0]['width']
videoheight = video[0]['height']
if (video[0]['width'] <= 720 and video[0]['height'] <= 480):
info['videoresolution'] = "480"
elif (video[0]['width'] <= 768 and video[0]['height'] <= 576):
info['videoresolution'] = "576"
elif (video[0]['width'] <= 960 and video[0]['height'] <= 544):
info['videoresolution'] = "540"
elif (video[0]['width'] <= 1280 and video[0]['height'] <= 720):
info['videoresolution'] = "720"
elif (video[0]['width'] >= 1281 or video[0]['height'] >= 721):
info['videoresolution'] = "1080"
else:
info['videoresolution'] = ""
elif (('dvd') in filename and not ('hddvd' or 'hd-dvd') in filename) or (filename.endswith('.vob' or '.ifo')):
info['videoresolution'] = '576'
elif (('bluray' or 'blu-ray' or 'brrip' or 'bdrip' or 'hddvd' or 'hd-dvd') in filename):
info['videoresolution'] = '1080'
else:
info['videoresolution'] = '1080'
Cases based on resolution are OK :
But entiring the movie set and default Item.VideoResolution is wrong :
Or maybe that the problem is because thumbnail is embedded in container, as there is 2 videos stream, one for movie video and one for movie thumbnail.
As extendedscript is first steam (videowidth = video[0]['width'], videoheight = video[0]['height']), everything is OK.