Posts: 901
Joined: Feb 2005
Reputation:
3
is there a way to get the true width resolution of the tv being used?
at present, on my w/s pal tv, i get 720x576 reported on the xlcd and in the scripts, regardless of whether i've set it (xbmc and ms dash and tv) to 16:9 or 4:3.
if you switch xbmc skin rez it reloads a new skin according to size. how can we in a pyhton script detect the correct width ?
all i can think of is;
a) load xbmc default background.png
b) check its dimensions
c) load custom background skin (16:9 or 4:3) determined by previous dims
is there a way of exposing the true resolution from python ?
thanks
Posts: 3,909
Joined: Dec 2004
Reputation:
20
Nuka1195
Skilled Python Coder
Posts: 3,909
16x9 pal and 4x3 pal use the same resolution.
Posts: 901
Joined: Feb 2005
Reputation:
3
normally 16:9 and 4:3 are different resolutions, so its a limitation of script windows from xbmc then ?
i'm guessing here: but is it cos 720x(576/480) is the window size given by xbmc for scripts to run in upon initialisation ?
i would be nice to be able to take advatage of the extra space that wider/higher rez screens can show.
Posts: 5,008
Joined: Sep 2003
Reputation:
30
pike
Team Kodi Admin
Posts: 5,008
listen to nuka, he's right...
Posts: 901
Joined: Feb 2005
Reputation:
3
yes, sure. i was just after a futher explanation as to why its always the same rez for scripts ...
Posts: 5,008
Joined: Sep 2003
Reputation:
30
pike
Team Kodi Admin
Posts: 5,008
resolution ( actual width ) will always be the same regardless of what... as long as you understand this
you want python to be aware that xbmc is in widescreen mode (like skins are) ?
Posts: 901
Joined: Feb 2005
Reputation:
3
well, i was going to load a background skin that was better suited to tv ratio. but if scripts only ever have same width (720) theres no point.
wouldnt it be better if xbmc initiated a window, to run scripts in, that was of the same rez that xbmc was running in at?
is this a change thats possible - devs , anyone ?
Posts: 707
Joined: Jul 2004
Reputation:
6
are you sure wide screen have the same width ??
Posts: 3,909
Joined: Dec 2004
Reputation:
20
Nuka1195
Skilled Python Coder
Posts: 3,909
this isn't scientific, but, look in cvs at pm iii media folder and compare 4x3home.png to 16x9home.png. you'll see they're the same resolution. the 16x9home.png logo will appear stretched.
edit: if you have a widescreen, take a snapshot and see what resolution it is. (not hi-def modes)
Posts: 26,215
Joined: Oct 2003
Reputation:
187
yes, they're identical. ( and this is scientific :p )
the difference is the pixels are stretched more horizontally in 16x9 modes.
cheers,
jonathan
Posts: 901
Joined: Feb 2005
Reputation:
3
actually, i dont think they are identical. if you look very closely the 16:9 image is taller - this is more ovbvious in the logo.
i believe this has been done this way to compensate for the streatching a w/s tv will do, which will make them identical in appearance once displayed.
(nb. by taller i mean taller within the same rez of 720x576.)
all this just proves that xbmc is always 720 width regardless of tv ratio. shame.
Posts: 901
Joined: Feb 2005
Reputation:
3
warm and friendly... :talktohand:
Posts: 211
Joined: Mar 2005
Reputation:
0
Bernd
Senior Member
Posts: 211
of course the signal send to the tv is always 720x576 physically but not logically.
some video sources like my xbox or dvd player, if configured right, send an anamorphic 16:9 picture.
my tv indicates that by switching to a special mode called auto 16:9. i think its one pin on the scart plug that toggles that.
wouldn't that mean that even if the signal is physically 720x576 the software/scripts need to distinguish between normal and 16:9/anamorph?
so it could load a different background image just like xbmc does with skins.
bernd