INTERACT FORUM

More => Old Versions => JRiver Media Center 30 for Windows => Topic started by: jmone on November 16, 2022, 04:08:04 am

Title: View Expression for Videos over 1920x1080?
Post by: jmone on November 16, 2022, 04:08:04 am
My existing expression is:

Code: [Select]
[Dimensions]=[3840 x 2160]
, and I'd like to make something more generic buy I'm an MC Expression noob.  I'm after something that will show items that are "> 1920" and have tried a few expression but they don't work, such as:

Code: [Select]
Compare(Left([Dimensions],4), >, 1920)&datatype=[integer]
Thanks
Nathan
Title: Re: View Expression for Videos over 1920x1080?
Post by: lepa on November 16, 2022, 04:47:17 am
So are you after something like this:
Code: [Select]
If(Compare([Width],>,1920),4K,)prints 4K if width > 1920. otherwise prints nothing

or are you after filter?
Title: Re: View Expression for Videos over 1920x1080?
Post by: lepa on November 16, 2022, 04:54:21 am
Filter solution with panes
Title: Re: View Expression for Videos over 1920x1080?
Post by: zybex on November 16, 2022, 09:28:07 am
I've been fine tuning my [Resolution] label over time. This works well for my collection:

Code: [Select]
FirstNotEmpty(
ifcase([height],2,2160,4K,1440,QHD,1080,FHD,720,HD,576,PAL,480,NTSC),
ifcase([width],2,3840,4K,2560,QHD,1920,FHD,1280,HD,768,PAL,720,NTSC),
ifcase([height],6,2400,4K+,1500,4K*,1200,QHD*,750,FHD*,600,HD*,550,PAL*,460,NTSC*,0,SD))

It uses both Height and Width. The labels with an asterisk (FHD*) indicate when the resolution is not exact.
Title: Re: View Expression for Videos over 1920x1080?
Post by: atreides on November 16, 2022, 11:44:39 am
I've been fine tuning my [Resolution] label over time. This works well for my collection:

Code: [Select]
FirstNotEmpty(
ifcase([height],2,2160,4K,1440,QHD,1080,FHD,720,HD,576,PAL,480,NTSC),
ifcase([width],2,3840,4K,2560,QHD,1920,FHD,1280,HD,768,PAL,720,NTSC),
ifcase([height],6,2400,4K+,1500,4K*,1200,QHD*,750,FHD*,600,HD*,550,PAL*,460,NTSC*,0,SD))

It uses both Height and Width. The labels with an asterisk (FHD*) indicate when the resolution is not exact.

This is awesome and works great.  Thank you.
Title: Re: View Expression for Videos over 1920x1080?
Post by: jmone on November 16, 2022, 01:56:29 pm
Thanks lepa and zybex, looks great!  Did not know we had a 'width' field so "[Width]=>1920" is all I needed for my view.