Please add "Bits per Pixel Frame" as an indexable property

Discussion related to "Everything" 1.5.
santilli
Posts: 30
Joined: Tue Apr 30, 2024 7:05 am

Please add "Bits per Pixel Frame" as an indexable property

Post by santilli »

Currently I am indexing the properties Dimension, Video Bitrate and Frame Rate. With the result of those I have created a filter macro:

Code: Select all

add-column:a a:=$video-bitrate:/($width:*$height:*$frame-rate:) a-format:number.000 a-label:BPP
This way, when I type bpp: I get a new column with the BPP value of my video files, which I use to assess which ones could benefit from a re-encode to save space.

It would be extremely helpful if it was indexed as a standalone property so that i would not be required to use a filter macro, which also means I currently cannot have it indexed into a local database, and require me to go through the entire list of results to populate the column. Despite that, it works exactly as I need:
BPP.png
On the same note, it would also be really neat if we could format the values of each column based on its content, like different font weights or color depending on file size, or length, etc.
You do not have the required permissions to view the files attached to this post.
void
Developer
Posts: 20110
Joined: Fri Oct 16, 2009 11:31 pm

Re: Please add "Bits per Pixel Frame" as an indexable property

Post by void »

I have put on my TODO list to add Bits Per Pixel Frame.

bpp:
is an alias for bits-per-pixel:


On the same note, it would also be really neat if we could format the values of each column based on its content, like different font weights or color depending on file size, or length, etc.
Color filters are on my TODO list.
Thank you for the suggestions.

edit: use
a-format:0.000
for formatting.
santilli
Posts: 30
Joined: Tue Apr 30, 2024 7:05 am

Re: Please add "Bits per Pixel Frame" as an indexable property

Post by santilli »

void wrote: Sun Jul 26, 2026 5:20 am I have put on my TODO list to add Bits Per Pixel Frame.

bpp:
is an alias for bits-per-pixel:


On the same note, it would also be really neat if we could format the values of each column based on its content, like different font weights or color depending on file size, or length, etc.
Color filters are on my TODO list.
Thank you for the suggestions.

edit: use
a-format:0.000
for formatting.
Thanks for the reply, I have a follow up question about the formula I mentioned in my post (and your a-format suggestion):
When sorting the column, I get a wacky order, because the sorting seems to consider the unformatted values.

When sorting the column without a-format:0.000 I get:

Code: Select all

0.0162687007652556
0.027484092755646
0.024383679005283
0.024212093368044
0.04107096027764
0.03896875
When I add the format formula a-format:0.000:

Code: Select all

0.016
0.027
0.024
0.024
0.041
0.039
void
Developer
Posts: 20110
Joined: Fri Oct 16, 2009 11:31 pm

Re: Please add "Bits per Pixel Frame" as an indexable property

Post by void »

Everything uses a natural sort and treats column-a as text.
Sorting is done on the raw text value before the value is formatted for display.
I have put on my TODO list improve sorting for column-a.
I also have on my TODO list to add type support to column-a.

For now, please format column-a when it is defined.

add-column:a a:=TEXT($video-bitrate:/($width:*$height:*$frame-rate:),"0.000") a-label:BPP
void
Developer
Posts: 20110
Joined: Fri Oct 16, 2009 11:31 pm

Re: Please add "Bits per Pixel Frame" as an indexable property

Post by void »

Everything 1.5.0.1419b improves sorting custom column values.

Negative values are now shown first and values with decimals will now sort correctly.