How to Add a "Resolution" Column, when Viewing a Videos folder?

Please check the FAQ (https://www.xyplorer.com/faq.php) before posting a question...
Post Reply
spaceman
Posts: 14
Joined: 06 Aug 2021 15:05

How to Add a "Resolution" Column, when Viewing a Videos folder?

Post by spaceman »

Hi all

I navigated to a folder that contains *.mp4 files,
and would now like to add a "Resolution" Column,
so that I can see the Resolution of each video file, in the file list columns..

Can that be done?

When I RightClick an empty part of the Column Header row,
I see various options that I can choose for a Column type, but not Resolution..

Thank you

highend
Posts: 13433
Joined: 06 Feb 2011 00:33
Location: Win Server 2022 @100%

Re: How to Add a "Resolution" Column, when Viewing a Videos folder?

Post by highend »

Use a scripted custom column?

Code: Select all

return property("System.Video.FrameWidth", <cc_item>) . "x" . property("System.Video.FrameHeight", <cc_item>);
One of my scripts helped you out? Please donate via Paypal

spaceman
Posts: 14
Joined: 06 Aug 2021 15:05

Re: How to Add a "Resolution" Column, when Viewing a Videos folder?

Post by spaceman »

Thank you very much highend

I tried it now,
but the result that I get, for all *.mp4 files, is simply "x" in each..


I entered it like this:

Image

Anything I might've done wrong, and should change?

highend
Posts: 13433
Joined: 06 Feb 2011 00:33
Location: Win Server 2022 @100%

Re: How to Add a "Resolution" Column, when Viewing a Videos folder?

Post by highend »

Either install the basic k-lite codec package or use mediainfo...

Code: Select all

$mediaInfo = "<your path to the .exe>\MediaInfo.exe";
          return regexreplace(runret("$mediaInfo --Inform=Video;%Width%x%Height% ""<cc_item>"""), "\r?\n");
Or tag them once and show the tag column...
One of my scripts helped you out? Please donate via Paypal

spaceman
Posts: 14
Joined: 06 Aug 2021 15:05

Re: How to Add a "Resolution" Column, when Viewing a Videos folder?

Post by spaceman »

I see.

Thank you.

BTW, Is that because I am on Windows XP?
On Windows 10 for example it would work with System.Video.FrameWidth and .FrameHeight?

highend
Posts: 13433
Joined: 06 Feb 2011 00:33
Location: Win Server 2022 @100%

Re: How to Add a "Resolution" Column, when Viewing a Videos folder?

Post by highend »

Your OS is missing the codecs to show that info, hence I suggested to install the k-lite package (v13.8.5 is the latest that still works on XP)
One of my scripts helped you out? Please donate via Paypal

spaceman
Posts: 14
Joined: 06 Aug 2021 15:05

Re: How to Add a "Resolution" Column, when Viewing a Videos folder?

Post by spaceman »

I understand.

Thank you.

BTW, If I can recommend the creator of XYplorer, to consider adding some Video related column types,
it would be great.

It seems that there is a very good support for Images, and for Audio,
adding Video too would be really useful.

admin
Site Admin
Posts: 61145
Joined: 22 May 2004 16:48
Location: Win8.1 @100%, Win10 @100%
Contact:

Re: How to Add a "Resolution" Column, when Viewing a Videos folder?

Post by admin »

Too codec dependent.

spaceman
Posts: 14
Joined: 06 Aug 2021 15:05

Re: How to Add a "Resolution" Column, when Viewing a Videos folder?

Post by spaceman »

I understand.

OK, thank you very much.

Post Reply