INTERACT FORUM

More => Old Versions => Media Center 17 => Topic started by: BartMan01 on November 30, 2011, 12:15:49 pm

Title: Only show version with highest bitrate?
Post by: BartMan01 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.
Title: Re: Only show version with highest bitrate?
Post by: MrC 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.
Title: Re: Only show version with highest bitrate?
Post by: BartMan01 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)
Title: Re: Only show version with highest bitrate?
Post by: Lasse_Lus 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]
Title: Re: Only show version with highest bitrate?
Post by: MrC 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.