Page 1 of 1
Aspect ratio column for video files
Posted: 05 Jun 2022 08:18
by kiwichick
Is it possible to have a column to display the aspect ratio for video files? I have the latest XY beta, MediaInfo Lite and K-Lite Codec Pack installed.
I tried adding a column as follows but the column is empty:
1. Right-click a column header and select "Add column".
2. Right-click the added column header and select "Select Special Property".
3. Choose "Aspect ratio".
I also created a custom column as follows but the column is still empty:
Format: Text Right-Aligned
Trigger: Browse
Item type: Files
Item filter: mp4;mkv;avi;flv;mpg;mpeg;m4v
Re: Aspect ratio column for video files
Posted: 06 Jun 2022 12:13
by admin
Currently not supported. The problem here is that extracting the dimensions for videos is usually much slower than for images (because for most image formats I have learned to do it myself over the years, whereas for videos I have to rely on 3rd party shell extensions).
Re: Aspect ratio column for video files
Posted: 06 Jun 2022 12:16
by highend
Ofc you could do it with a scripted custom column (but it would be slow...)
Re: Aspect ratio column for video files
Posted: 07 Jun 2022 03:36
by kiwichick
admin wrote: ↑06 Jun 2022 12:13
Currently not supported. The problem here is that extracting the dimensions for videos is usually much slower than for images (because for most image formats I have learned to do it myself over the years, whereas for videos I have to rely on 3rd party shell extensions).
Thanks Don, I do apologise. Perhaps I should have read the Help file first (insert pace palm emoji here) and I would have known that aspect ratio is for images not videos.
Re: Aspect ratio column for video files
Posted: 07 Jun 2022 03:38
by kiwichick
highend wrote: ↑06 Jun 2022 12:16
Ofc you could do it with a scripted custom column (but it would be slow...)
Thanks, it's not the type of column I would have visible by default. It's just that sometimes it would be handy to have a column to show instead of bringing up MediaInfo for each file.
Re: Aspect ratio column for video files
Posted: 09 Jun 2022 09:52
by kiwichick
admin wrote: ↑06 Jun 2022 12:13
Currently not supported. The problem here is that extracting the dimensions for videos is usually much slower than for images (because for most image formats I have learned to do it myself over the years, whereas for videos I have to rely on 3rd party shell extensions).
Hi Don, just wondering if there's any way to display the video aspect ratio (and dimensions) as part of the Status Bar Template? That way it would only be required to extract the info for one file at a time so, presumably, nowhere near as slow as displaying that info for all files in a column.
Re: Aspect ratio column for video files
Posted: 09 Jun 2022 10:40
by admin
OK, in the next beta you can use a status bar template like this (note:
2 spaces between dimensions and "%w% x %h% [%a%]":
Code: Select all
ic||* - <get dimensions "%w% x %h% [%a%]">
It will work for images and videos.
Re: Aspect ratio column for video files
Posted: 10 Jun 2022 02:47
by kiwichick
admin wrote: ↑09 Jun 2022 10:40
OK, in the next beta you can use a status bar template like this (note:
2 spaces between dimensions and "%w% x %h% [%a%]":
Code: Select all
ic||* - <get dimensions "%w% x %h% [%a%]">
It will work for images and videos.
Fantastic, Don, thanks. I'll be sure to check it out.
UPDATE: Wow, that new Beta works great!!! Perfect

Re: Aspect ratio column for video files
Posted: 12 Jun 2022 05:22
by jupe
This isn't a request, it's just a suggestion, but since you are already recently working on this, it might be an idea to have a variable for Area too, it would allow access to it in places scripting isn't possible, and save manual calculation where scripting is available.
If you were to implement it, I realize %a% is already taken, but since its a new feature not doc'd yet, you could possibly change that to %r% and have %a% for Area.
Re: Aspect ratio column for video files
Posted: 12 Jun 2022 10:52
by admin
Love it.

Re: Aspect ratio column for video files
Posted: 22 Jun 2022 10:38
by kiwichick
admin wrote: ↑09 Jun 2022 10:40
OK, in the next beta you can use a status bar template like this (note:
2 spaces between dimensions and "%w% x %h% [%a%]":
Code: Select all
ic||* - <get dimensions "%w% x %h% [%a%]">
It will work for images and videos.
Don, I just had to come back and comment on this again. Thank you, thank you, thank you so much for this. In the relatively short time it's been since you added it, you wouldn't believe how many times I've used it as a quick reference in my status bar!
