Bug SD movies displayed as HD movies
#1
Hi.

Some SD movies are seen as HD movies :

Image

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) :

Image

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 :

Image

But entiring the movie set and default Item.VideoResolution is wrong :

Image

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.
Sorry for my english, but, you know, I'm French so ...

Main HTPC : Odroid-C2 running CoreELEC with Titan Bingie
Secondary HTPC : Freebox Mini 4K running Android TV with Titan Bingie
Reply
#2
Does this happen on other skins?

It would be interesting to see if this is because of the embedded thumbnail. If I understand correctly, it was a sort of happy side effect that XBMC started seeing embedded artwork, so it probably wasn't anticipated in certain areas of XBMC. I'll try to play around with some files with embedded thumbs myself tonight.
Reply
#3
SD movies with embedded thumbnails are seen as HD movie (if thumbnail is big enough) in Confluence (screenshot 1) and Aeon Nox 5.1.2 (screenshot 2 & 3).

I can share you the MyVideos78.db file to reproduce this issue. This is what I've done because I'm not facing the problem but one people of our french forum does Wink
Sorry for my english, but, you know, I'm French so ...

Main HTPC : Odroid-C2 running CoreELEC with Titan Bingie
Secondary HTPC : Freebox Mini 4K running Android TV with Titan Bingie
Reply

Logout Mark Read Team Forum Stats Members Help
SD movies displayed as HD movies0