Solved Querying SD / HD from Kodi database?
#1
I'm planning to create database for my library (for automation purpose)
And i need to query SD / HD quality and IMDB ID,
I found the key for IMDB ID, but i can't figure out SD/HD query
I read it's related to iVideoWidth and iVideoHeight, but there's no documentation about the exact value
read in other threads the media must have at least 720 width, but i'm sure some of my 532 width movies is detected as HD

So what is the exact value for HD ?
Reply
#2
Code:
else if (iWidth <= 720 && iHeight <= 480)
    return "480";
    // 720x576 (PAL) (768 when rescaled for square pixels)
    else if (iWidth <= 768 && iHeight <= 576)
    return "576";
    // 960x540 (sometimes 544 which is multiple of 16)
    else if (iWidth <= 960 && iHeight <= 544)
    return "540";
    // 1280x720
    else if (iWidth <= 1280 && iHeight <= 720)
    return "720";
    // 1920x1080
    else if (iWidth <= 1920 && iHeight <= 1080)
    return "1080";
    // 4K
    else if (iWidth * iHeight >= 6000000)
    return "4K";
    else
Reply
#3
(2016-02-05, 15:43)helta Wrote:
Code:
else if (iWidth <= 720 && iHeight <= 480)
    return "480";
    // 720x576 (PAL) (768 when rescaled for square pixels)
    else if (iWidth <= 768 && iHeight <= 576)
    return "576";
    // 960x540 (sometimes 544 which is multiple of 16)
    else if (iWidth <= 960 && iHeight <= 544)
    return "540";
    // 1280x720
    else if (iWidth <= 1280 && iHeight <= 720)
    return "720";
    // 1920x1080
    else if (iWidth <= 1920 && iHeight <= 1080)
    return "1080";
    // 4K
    else if (iWidth * iHeight >= 6000000)
    return "4K";
    else

Thanks alot Smile
I see.. so anything below iWidth <= 720 & iHeight <= 480 is considered SD ..
Reply

Logout Mark Read Team Forum Stats Members Help
Querying SD / HD from Kodi database?0