INTERACT FORUM

Please login or register.

Login with username, password and session length
Advanced search  
Pages: [1]   Go Down

Author Topic: View Expression for Videos over 1920x1080?  (Read 639 times)

jmone

  • Administrator
  • Citizen of the Universe
  • *****
  • Posts: 14463
  • I won! I won!
View Expression for Videos over 1920x1080?
« 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
Logged
JRiver CEO Elect

lepa

  • MC Beta Team
  • Citizen of the Universe
  • *****
  • Posts: 2033
Re: View Expression for Videos over 1920x1080?
« Reply #1 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?
Logged

lepa

  • MC Beta Team
  • Citizen of the Universe
  • *****
  • Posts: 2033
Re: View Expression for Videos over 1920x1080?
« Reply #2 on: November 16, 2022, 04:54:21 am »

Filter solution with panes
Logged

zybex

  • MC Beta Team
  • Citizen of the Universe
  • *****
  • Posts: 2618
Re: View Expression for Videos over 1920x1080?
« Reply #3 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.
Logged

atreides

  • Junior Woodchuck
  • **
  • Posts: 82
Re: View Expression for Videos over 1920x1080?
« Reply #4 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.
Logged

jmone

  • Administrator
  • Citizen of the Universe
  • *****
  • Posts: 14463
  • I won! I won!
Re: View Expression for Videos over 1920x1080?
« Reply #5 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.
Logged
JRiver CEO Elect
Pages: [1]   Go Up