Kodi Community Forum

Full Version: Quick and easy aspect ratio selection
You're currently viewing a stripped down version of our content. View the full version with proper formatting.
first, a small confession: this was something i was thinking of requestion for xbmp so it's possible it's in xbmc. if that's the case, my apologies for taking up your time.

i've been watching a lot of various things lately, including some old divx and some svcd-class mpeg2 files and i've had a fair bit of trouble with aspect ratio, particularly with 4:3 svcds. my cheap-assed pal widescreen tv can't squash an rgb signal down from 16:9 to 4:3, and xbmp can't seem to do it either outside of manually setting the aspect ratio in settings -> screen, and that's rather fiddly.

what i was wondering was this. could be have a single button in the gui somewhere (or even dedicated on the remote) to toggle through some common pre-defined aspect ratios? 4:3, 16:9, 2.35:1; the effect would be the same as setting that aspect ratio in the adjuster under settings, but easier to get at. whatever the source resolution is would be appropriate re-sized to give the selected output.

i appreciate that this isn't going to solve all the problem files, but the settings menu is there for weird files; the idea is that this would be a quick and easy way to adjust most files.

if people think this is worthwhile i'll file a proper fr on sourceforge. i'd look into coding it myself but (a) i'm bloody poor at c and (b) i have no means to compile for testing, unfortunately. roll on the openxdk team.
actually its a pretty good idea. i'll put it onto my todo list and will try to get it working in v1.0 of xbmc

frodo
hey, if i can't contribute code the least i can do is contribute good ideas :o)

i could write some docs too if you'd like. there anything in particular outstanding?
well there's quite a lot left todo before we can launch v1.0
besides coding all missing features and fixing bugs we need things like
- installation manual
- user manual
- how to skin xbmc manual


frodo
what if the filename had something to do with it.
in xbmp you have multi files that stack together if you add cd1,cd2 etc at the end of the filename. what if instead of using a button you just name your file name-169-cd1.mpg
then have a setting to enable that feature just like the stacking files setting.
all xbmc would need to do then is compare the filename to the video setting (720x480 ntsc 4:3) and change the scaling appropriatly.

steve
i've done code to handle aspect ratios of mpeg1 and mpeg2 files correctly + will be passing it on to frodo when i have it complete.

mpeg1 and mpeg2 have an embedded aspect ratio parameter that can be used in these cases. other file formats such as .avi do not. svcd's, assuming correct encoding, will then at least show in the right aspect ratio correctly.

i agree that aspect ratio switching on the fly is a good idea - perhaps with a set of preset ratios.

i'll hopefully have time to implement the aspect ratio changes i am making to xbmp this weekend.

cheers,
jmarshall