INTERACT FORUM

Please login or register.

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

Author Topic: Only show version with highest bitrate?  (Read 1561 times)

BartMan01

  • MC Beta Team
  • Citizen of the Universe
  • *****
  • Posts: 1513
Only show version with highest bitrate?
« on: November 30, 2011, 12:15:49 pm »

Setting up a view for my surround sound tracks.  These are currently kept stacked below a 2 channel version of the track.  For example: 
From the DVD 'Go Home' by U2 I have the following versions of the song 'One':
One (Live).flac - top of stack
One (Live).ac3
One (Live).dts
One (Live).mp3

From the DVD 'Cunning Stunts' by Metallica I have the following versions of the song 'Fuel':
Fuel (Live).ac3 - 2 channel version, top of stack
Fuel (Live) (5.1).ac3
Fuel (Live).mp3

What I want to see in my view for these two songs is:
One (Live).dts
Fuel (Live) (5.1).ac3

I know I could set up a new library field to indicate the preferred version, just trying to see if there is a way to filter the list so that only the one with the highest bit-rate shows.
Logged

MrC

  • Citizen of the Universe
  • *****
  • Posts: 10462
  • Your life is short. Give me your money.
Re: Only show version with highest bitrate?
« Reply #1 on: November 30, 2011, 12:25:37 pm »

If you're using panes, how about this: Create a pick that outputs the suffix of the file, and a sort order number:

Format-o-Matic
  1. DTS
  2. AC3
  3. FLAC
  4. MP3

If you don't care about how they are sorted, skip the number.  Then you can select the format you want.
Logged
The opinions I express represent my own folly.

BartMan01

  • MC Beta Team
  • Citizen of the Universe
  • *****
  • Posts: 1513
Re: Only show version with highest bitrate?
« Reply #2 on: November 30, 2011, 01:23:29 pm »

Don't think that solves the issue that in the example above I want to see the .ac3 file of one track and at the same time the .dts file of another.

This is what I have so far, but it needs a lot more refinement.  Is the sort/sequence/sort/nodup all required, or is there a slicker way to make this work?  Once I get the basic concept down I can start worrying about final sort orders and duplicate removal logic.  FYI: 'Name (Base)' is a custom field with the base name of the track without any extra stuff like '(Live)' or '(5.1)' on the end.

[Channels]=>2 (tracks with more than 2 channels)
~d=a (include all files to see inside of stacks)
~sort=[Name (Base)]-d,[Bitrate]-d (first sort by bitrate)
~seq ~sort=[Sequence] (next add a sequence and sort by that)
~nodup=[Name /(Base/)] (finally remove duplicates)
Logged

Lasse_Lus

  • Citizen of the Universe
  • *****
  • Posts: 999
Re: Only show version with highest bitrate?
« Reply #3 on: November 30, 2011, 02:23:33 pm »

would it not be sort by bitrate then limit advanced 1 per [name]

~sort=[Bitrate]-d ~limit=-1,1,[Name]
Logged
MT5FR

MrC

  • Citizen of the Universe
  • *****
  • Posts: 10462
  • Your life is short. Give me your money.
Re: Only show version with highest bitrate?
« Reply #4 on: November 30, 2011, 03:36:07 pm »

Don't think that solves the issue that in the example above I want to see the .ac3 file of one track and at the same time the .dts file of another.

Sorry, I misunderstood the goal.
Logged
The opinions I express represent my own folly.
Pages: [1]   Go Up