Page 1 of 1
Custom columns and .mp4 files
Posted: 04 Mar 2015 01:31
by grindax
.
Re: Custom columns and .mp4 files
Posted: 04 Mar 2015 12:30
by grindax
.
Re: Custom columns and .mp4 files
Posted: 04 Mar 2015 14:58
by admin
grindax wrote:Any particular reason why, in the context of the configuration of Custom Columns, .mp4 files get no love by default?
I wasn't seeing Length for .mp4 files so I checked the Custom Column configuration and was surprised to find that it was necessary to add it manually.
Hmm, you mean factory defaults for Custom Columns? There is no length anymore. It's now all photo oriented defaults.

Re: Custom columns and .mp4 files
Posted: 04 Mar 2015 15:01
by grindax
.
Re: Custom columns and .mp4 files
Posted: 04 Mar 2015 15:06
by admin
OK, just saw that indeed MP3 is there by default, but MP4 is not. (I was just looking at the first 5 columns in my previous post.

)
I tested MP4 and do not experience any slowness in retrieving the length though. Might depend on the videos.
Re: Custom columns and .mp4 files
Posted: 04 Mar 2015 15:09
by grindax
.
Re: Custom columns and .mp4 files
Posted: 04 Mar 2015 15:17
by admin
Looked into it. For MP4, lacking a native method, XY uses the system canonical properties to get the info. And, the strategy here is to get all basic audio properties in one go:
System.Audio.SampleSize
System.Audio.EncodingBitrate
System.Audio.SampleRate
System.Audio.ChannelCount
System.Media.Duration
If you only need Duration, this strategy is bad, of course, since time is wasted on stuff you don't need. It pays once you have more or all audio props shown in columns.
Re: Custom columns and .mp4 files
Posted: 04 Mar 2015 15:25
by grindax
.
Re: Custom columns and .mp4 files
Posted: 04 Mar 2015 15:33
by admin
You could set Trigger to "List" or even "Click". (But I guess you know that.)
Re: Custom columns and .mp4 files
Posted: 04 Mar 2015 16:01
by grindax
.
Re: Custom columns and .mp4 files
Posted: 04 Mar 2015 16:34
by admin
If the listing is longer than what you see in the actually visible part of it, then you should note a difference. The longer, the more.
Re: Custom columns and .mp4 files
Posted: 05 Mar 2015 13:57
by admin
BTW, I have a couple of stored column layouts for audio files and photos, which I can quickly load on-demand via Catalog using this script:
Code: Select all
$cs = listfolder("<xydata>\Columns", "*.txt", 5);
$cs = replace($cs, ".txt", "");
$c = popupmenu($cs);
if ($c) {columnlayout($c)};
I just need 3 column layouts for all my needs:
- Audio
- Photo
- Normal
Create them once, takes some minutes, and you are set forever.