OSMC Skin Scope Mask feature

Hi there,

I am using this OSMC Skin Scope for my home cinema with a 21:9 canvas. I am watching movies in 21:9 and TV-shows in 16:9. For 21:9 I adjust my beamer to full width and for 16:9 to full height. So i need also to change the type of the mask too.
Is ist possible to have a short cut for the mask feature? Maybe toggle through all masks?

And maybe an automatic feature to switch mask dependig from the ratio of a selected video, when starting playback and switch back to a default mask when video playback is stopped?

Harald

CC @Chillbo

Thereā€™s an additional button in the video player OSD of the scope skin version which opens a dialog to select a different masking aspect ratio.

Thatā€™s not properly possible as the only aspect ratio information available to skins is the video fileā€™s aspect ratio. Itā€™s the aspect ratio including the black bars though and therefore not of much help here.

To 1.) I mean a keyboard short cut.

To 2.) Maybe with a Filename extension?

Add to 2.):

Or restore the original mask after playbackā€¦?

You may set a keymap to a skin setting built-in command already. The value that you need to use for this skin setting and the skin settingā€™s name youā€™ll find here: SkinSettings.xml

The method of using filenames for skin actions or behaviour tweaks is not favourable at all, tbh. It requires each user to follow specific naming conventions - this should be done by the skin itself.

Question is what ā€˜originalā€™ would beā€¦ The settings are meant to be in place all the time, thereā€™s no fallback really.

Iā€™ll think about a way to maybe implement an optional way of setting the masking aspect ratio via specific filename tags. Not absolutely sure though. Will let you know, if I come up with something convincing thatā€™s as user-friendly and as little intrusive as possible. :+1:t2:

This has been a quick oneā€¦ I wasnā€™t comfortable implementing anything like this for all users without any options, but Iā€™ve found a convenient way to add this in an optional manner. If one wishes to let the skin adjust the masking aspect ratio during playback automatically, it will be possible to enable this via a skin setting and a couple of filename tags that Iā€™ll add to the OSM Skin wiki article once implemented:

The set value above this new setting will be the fallback and whatā€™s being used while video playback is not active. Once video playback is active, the skin will look for a tag in the filename and set the masking aspect ratio accordingly. The tags will be in this format: ā€˜.scope240ā€™, ā€˜.scope235ā€™, ā€˜.scope233ā€™, ā€˜.scope200ā€™. If thereā€™s no tag, the skin will disable masking during video playback. So, tags will only be necessary for videos that are not at a 16:9 aspect ratio.

I hope, this will add exactly what you were looking for, @radschi :+1:t2:

@Chillbo: Wow, is was really fast! :+1: :+1:

I can try it out in the next few days and let you know the result.
One suggestion: There is a software availiable, called ā€œAspect Ratio Detectorā€, which can scan all movies to find out the correct ratio and add it to the file name like ā€œ_AR240ā€, ā€œ_AR233ā€ā€¦ automatically.

You can find it here: Aspect Ratio Detector: SeitenverhƤltnis erkennen, jetzt auch mit Tiny Media Manager - HTPC & Mediaplayer - Heimkinoverein
Unfortunately, its a german website, but maybe you can understand it (I am from Austria, so its my first language too).

I want to use this tool to tag all movies with the ratio and then it should be possible to use your new feature without much fiddling with the filenames manually, means if you can change your tag to the same format then this is perfect :wink:

Thank you again for your fast effort.
:+1:

You could use a renaming utility to change any ā€œ_AR240ā€ to ā€œ.scope240ā€ quite easily.

I can have a look at that and see what works best. Will also check out how the other rare CIH/scope skins are doing this. Maybe this would be a good approach for other users as well.

Iā€™ve checked the very few other scope skins around and the .AR240. format tag is indeed the most common. If either .AR178., .AR200., .AR233., .AR235. or .AR240. (surrounded by any combination of -, .or _) are present in the file or folder name (and if the automatic masking aspect ratio feature is enabled) the masking aspect ratio will be set automatically. If none of these five tags are present, the masking aspect ratio will rely on the custom value set in the skin settings. After video playback has stopped, the aspect ratio will also fall back to that value.

Iā€™ll push the changes later today. Then youā€™ll be able to test :slightly_smiling_face:

@Chillbo

Renaming is not good because i use another tool which relay also on this naming schema to adjust the lens on my beamer automatically.

Please donā€™t forget also AR133, i have some older TV-Shows in this old ratio. :flushed:

About testing, it will take some time, because i need to rename all movies with the scanning tool.

This new feature has now been pushed to Git: GitHub - osmc/skin.osmc at archive/matrix-scope

Iā€™m confused now as Iā€™ve adopted the exact format you suggested now. See here. Why would you need renaming now?

The above listed aspect ratios are the ones we support atm - we canā€™t support all aspect ratios possibly out there, tbh. 1.33:1 is a format which doesnā€™t need masking, but rather pillar boxing and can otherwise be treated as 16:9 (alias 1.78:1). As it wonā€™t be detected, you simply have to select 1.78:1 masking manually during playback for this aspect ratio. Or you tag it as AR178 which would make a lot more sense IMHO.

@Chillbo

Sorry for confusing you, but @darwindesign suggested to use a renaming tool. It was my fault :slightly_frowning_face: to reply to you instead of him.

Your naming schema is allready ok :slight_smile:

And yes, you are right, 1.33:1 has the same height as 16:9 :point_up:

1 Like

Iā€™ve slightly reworked this feature again, so please pull the scope skin zip again, if you have downloaded it already. :+1:t2:

@radschi, just asking for a followupā€¦ Have you been able to test the feature? Would like to make sure itā€™s working as intended for release in a next update :slightly_smiling_face:

@Chillbo, sorry for my late reply, but I was on vacation and other things came up, but now:

I did a few tests with my movies. Basically it is working as it should be :+1:, but i am missing some aspect ratios, which are detected with the ā€œAspect Ratio Detectorā€ tool: AR133, AR167, AR185, AR222, AR276

I know that AR133 and AR167 has the same like AR178 but maybe you can make an ā€œorā€ logic (AR133 or AR167 or AR178 =>AR178) otherwise i need to rename all files with the ā€œwrongā€ AR178.
In the future i want to control two motorized curtains on the left and right side to mask the projection screen width, depending from the tags AR133/AR167 or other tags, so i need the correct tags.

The other missing aspect ratios have a different height, so please can you add them too?

So you could support all aspect ratioā€™s which can be dedected by this tool (1.33 1.67 1.78 1.85 2.00 2.22 2.35 2.40 2.76). This tool can also round up/down to the next aspect ratio like AR233 ā†’ AR235.

And it will be also a nice feature to get the AR shown in the OSD instead of the word ā€œAutoā€

And thank you again for your skin :+1: :+1:

Good!

Unfortunately, this is gonna be a quick one: Iā€™m not gonna add any more aspect ratios for a single setup that is using a very specific tool that is only to be found on a German home cinema forum thatā€™s not very much known in the first place.
Sorry, but this is too much to ask. The scope skin is a feature Iā€™m happy to offer as it wasnā€™t too much work, but itā€™s just one feature used by a couple of users in very custom environments from what I can see.

1.33:1 canā€™t be supported - as I said before - because it would mean adding vertical masking (including having to limit controls to an area smaller vertically as well) - the same applies to 1.67:1. Everything between 1.78:1 (16:9) and 2.40:1 (1920x800 pixel window that all of the UI controls sit in - meaning that 2.76:1 is not possible) is technically possible, but not reasonable to add and maintain as thereā€™s basically an infinite amout of aspect ratios out there. What the scope skin supports are reasonable aspect ratios a fixed scope screen would come in. What I suggest here are two things:

  • avoid vertical masking as thereā€™s no skin out there supporting this (and there probably wonā€™t be as itā€™s hard to implement AND the Kodi skin engine is not made for any of this)
  • rely on the tags supported now and automatically convert the ones not supported (or too specific/custom) with an automatic renaming tool (search for e.g. ā€˜AR133ā€™ in your media folders and replace by ā€˜AR178ā€™)

Thatā€™s all I can advise here as I canā€™t add all possible aspect ratios for technical and maintenance reasons. The logic of the supported aspect ratios currently is what a project screen would likely cover and not which possible aspect ratios movies/TV shows out there have. That wonā€™t change. :slightly_smiling_face:

I hope, you can live with this approach and adjust your setup to work with this.

The logic here is that the OSD should reflect what the skin currently does. As long as the skin is in automatic mode (file name tag detection), it should show that it actually is picking up a tag. If the file played back doesnā€™t have a proper tag, the skin will fall back to the aspect ratio currently set - this means the ā€˜Autoā€™ label will be replaced by the aspect ratio set. I canā€™t add both, a hint to the automatic aspect ratio switching AND the aspect ratio set/used, to this small button, so one approach has to be chosen. Showing that the skin does something automatically outweighs the need to show what the current automatic aspect ratio is. Iā€™ll see whether I can add a hint somewhere else that shows which aspect ratio is being picked up from the file name while automatic mode is active. But this is just a small gimmick, so donā€™t get your hopes up. :wink:

Will the scope skin be updated for Kodi 19? Thanks