Custom columns and .mp4 files
-
grindax
Custom columns and .mp4 files
.
Last edited by grindax on 24 Jan 2016 14:03, edited 1 time in total.
-
grindax
Re: Custom columns and .mp4 files
.
Last edited by grindax on 24 Jan 2016 14:03, edited 1 time in total.
-
admin
- Site Admin
- Posts: 66305
- Joined: 22 May 2004 16:48
- Location: Win8.1, Win10, Win11, all @100%
- Contact:
Re: Custom columns and .mp4 files
Hmm, you mean factory defaults for Custom Columns? There is no length anymore. It's now all photo oriented defaults.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.
FAQ | XY News RSS | XY X
-
grindax
Re: Custom columns and .mp4 files
.
Last edited by grindax on 24 Jan 2016 14:04, edited 1 time in total.
-
admin
- Site Admin
- Posts: 66305
- Joined: 22 May 2004 16:48
- Location: Win8.1, Win10, Win11, all @100%
- Contact:
Re: Custom columns and .mp4 files
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.
I tested MP4 and do not experience any slowness in retrieving the length though. Might depend on the videos.
FAQ | XY News RSS | XY X
-
grindax
Re: Custom columns and .mp4 files
.
Last edited by grindax on 24 Jan 2016 14:04, edited 1 time in total.
-
admin
- Site Admin
- Posts: 66305
- Joined: 22 May 2004 16:48
- Location: Win8.1, Win10, Win11, all @100%
- Contact:
Re: Custom columns and .mp4 files
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.
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.
FAQ | XY News RSS | XY X
-
grindax
Re: Custom columns and .mp4 files
.
Last edited by grindax on 24 Jan 2016 14:04, edited 1 time in total.
-
admin
- Site Admin
- Posts: 66305
- Joined: 22 May 2004 16:48
- Location: Win8.1, Win10, Win11, all @100%
- Contact:
Re: Custom columns and .mp4 files
You could set Trigger to "List" or even "Click". (But I guess you know that.)
FAQ | XY News RSS | XY X
-
grindax
Re: Custom columns and .mp4 files
.
Last edited by grindax on 24 Jan 2016 14:04, edited 1 time in total.
-
admin
- Site Admin
- Posts: 66305
- Joined: 22 May 2004 16:48
- Location: Win8.1, Win10, Win11, all @100%
- Contact:
Re: Custom columns and .mp4 files
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.
FAQ | XY News RSS | XY X
-
admin
- Site Admin
- Posts: 66305
- Joined: 22 May 2004 16:48
- Location: Win8.1, Win10, Win11, all @100%
- Contact:
Re: Custom columns and .mp4 files
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:
I just need 3 column layouts for all my needs:
- Audio
- Photo
- Normal
Create them once, takes some minutes, and you are set forever.
Code: Select all
$cs = listfolder("<xydata>\Columns", "*.txt", 5);
$cs = replace($cs, ".txt", "");
$c = popupmenu($cs);
if ($c) {columnlayout($c)};- Audio
- Photo
- Normal
Create them once, takes some minutes, and you are set forever.
FAQ | XY News RSS | XY X
XYplorer Beta Club