Page 1 of 3
Customized columns
Posted: 02 Nov 2014 13:33
by Calade
Hi all,
One rare good thing in the native Windows explorer is customized folder.
I mean, for exemple, add a column "Dimensions" for a folder but not others. Same thing for the type of view (view thumbs for a folder but not others).
Of course I mean set the view/columns manually folder by folder.
Thanks for your answer.
Calade
Re: Customed Folder
Posted: 02 Nov 2014 14:35
by highend
Hey,
and you get the same possibilities with XY.
You just need to use the menu - View - Folder View Settings options (e.g. Save). Don't forget to save your settings after you've saved view settings for specific folders.
Re: Customed Folder
Posted: 02 Nov 2014 14:53
by Calade
Thanks, it's exactly what I was looking for.
By the way, do you know how display the lenght of a video (not the file length by itself).
Calade
Re: Customed Folder
Posted: 02 Nov 2014 15:32
by highend
View - Columns - New Column
Right click the newly created column "New"
-> Select property
Nr. 27 should be called "Video length" or "Length". Select it, click "OK"
Not all video file types support this property. If this isn't enough you'd need to create a custom column with a script that uses e.g. ffmpeg / mediainfo to get the length of a video file but you should be careful, this could be a slow process...
Re: Customed Folder
Posted: 02 Nov 2014 15:47
by Calade
Thanks again, it works fine for AVI video.
As numbers are MP4 video, I'll try with the second solution you've given.
Re: Customed Folder
Posted: 02 Nov 2014 15:57
by highend
To get it for all videos:
- Download MediaInfo (
http://mediaarea.net/de/MediaInfo/Download/Windows)
- Choose the
CLI version (32bit works also on x64 bit machines)
- Extract that .zip archive and remember the path for that folder
XY side:
View - Colums - New Column
Right click the "New" column -> Configure Custom Columns...
Click on a free entry (e.g. the first with the name "(Undefined)"), click "Edit..."
Caption: Video length
Type: Script
Script content box:
Code: Select all
$mediaInfo = "D:\Users\Highend\Downloads\MediaInfo_CLI_0.7.70_Windows_i386\MediaInfo.exe";
$length = regexreplace(runret("$mediaInfo --Inform=General;%Duration/String3% ""<cc_item>"""), "\.\d*\r?\n");
return $length;
Format: Text
Trigger: Browse
Item type: Files
Maybe you should use the filter as well (if you have more non video files in those folders). E.g.: avi;mkv;mp4
Ofc you can enter additional extensions (separated by ;) as well
Regarding the script content box:
1. Replace the path to your MediaInfo.exe file with the one on your system
2. Make sure all three lines are indented with at least one space
Click "OK".
The <xx> entry should look like this now: Video length; Script (avi;mkv;mp4)
Click "OK".
Now right click the "New" column again -> Select Custom Column...
Choose the newly created entry, click "OK".
Now you should see the correct video length for all file types that you entered for that custom column...
Re: Customed Folder
Posted: 02 Nov 2014 16:01
by Calade
Thanks very luch. I'll try that tomorrow and I get you rid of the results.
Thans again.
Calade
Re: Customed Folder
Posted: 02 Nov 2014 16:32
by highend
A slightly changed script for a prettier output (changed in the last post as well):
Code: Select all
$mediaInfo = "D:\Users\Highend\Downloads\MediaInfo_CLI_0.7.70_Windows_i386\MediaInfo.exe";
$length = regexreplace(runret("$mediaInfo --Inform=General;%Duration/String3% ""<cc_item>"""), "\.\d*\r?\n");
return $length;
Re: Customized folders
Posted: 04 Nov 2014 13:37
by Calade
Thanks very mich for all thse stuff.
It works fine.
Thanls again
Calade
Re: Customed Folder
Posted: 04 Nov 2014 17:24
by yusef88
highend wrote:A slightly changed script for a prettier output (changed in the last post as well):
Code: Select all
$mediaInfo = "D:\Users\Highend\Downloads\MediaInfo_CLI_0.7.70_Windows_i386\MediaInfo.exe";
$length = regexreplace(runret("$mediaInfo --Inform=General;%Duration/String3% ""<cc_item>"""), "\.\d*\r?\n");
return $length;
Hi highend
it doesn't work for me
Re: Customized columns
Posted: 04 Nov 2014 17:39
by highend
Show me the exact script that you've used and a screenshot of the path and content of the MediaInfo folder...
Re: Customized columns
Posted: 04 Nov 2014 17:48
by yusef88
Code: Select all
$mediaInfo = "%programfiles%\K-Lite Codec Pack\Tools\mediainfo.exe";
$length = regexreplace(runret("$mediaInfo --Inform=General;%Duration/String3% ""<cc_item>"""), "\.\d*\r?\n");
return $length;
the trigger is : Browse and still not working
Re: Customized columns
Posted: 04 Nov 2014 19:09
by highend
And the mediainfo.exe is REALLY the version from the CLI package?
Re: Customized columns
Posted: 04 Nov 2014 19:20
by yusef88
actually no

it's a part of K-Lite Codec Pack; I thought it doesn't matter because they're same version v0.7.70..so I'll try yours.
Re: Customized columns
Posted: 04 Nov 2014 19:21
by highend