How to list movies with a certain resolution in finder?

Discussion in 'Digital Video' started by tinoman, Nov 26, 2013.

  1. tinoman macrumors newbie

    Joined:
    Apr 1, 2004
    #1
    I want to search in my movie library which videos have over 720p in resolution. How do I do that? Is there a search criteria i can use? - I went through them and none seemed appropriate.

    Thank you – :)
     
  2. LethalWolfe macrumors G3

    LethalWolfe

    Joined:
    Jan 11, 2002
    Location:
    Los Angeles
    #2
    Nothing like this exists in Finder. The quickest way is to open up the movie in QT and hit command + i to 'get info'.
     
  3. kryten2 macrumors 6502a

    Joined:
    Mar 17, 2012
    Location:
    Belgium
    #3
    Try this :
     

    Attached Files:

  4. ChrisA macrumors G4

    Joined:
    Jan 5, 2006
    Location:
    Redondo Beach, California
    #4
    An approximation of that is to sort by size. IT's not accurate as the longer movies are larger too.

    In now that we have "tags" in finder you cold add tags for the revolution, like 480, 720, 1080 and then after manually tagging each movie it would be easy.
     
  5. floh, Nov 28, 2013
    Last edited: Nov 28, 2013

    floh macrumors 6502

    Joined:
    Nov 28, 2011
    Location:
    Stuttgart, Germany
    #5
    Spotlight on its own to my knowledge does not provide this search criteria, but the Spotlight metadata index contains the necessary information. I'm afraid you will have to consult the terminal to get a very simple way to find all matching video files.

    To do this, just open the "Terminal" app and type in (or copy-paste):

    Code:
    mdfind "kMDItemContentTypeTree == public.movie && kMDItemPixelHeight >= 720"
    As you can probably tell, this is a very powerful tool. Do you kind of understand what the different options do? The most important things are:

    1. The command "mdfind" is exactly what Spotlight does in the background. :)
    2. The relation "==" means the value needs to be exactly this, ">=" means equal or larger.
    3. The "&&" in the middle of the quotes means that both conditions, left and right of this logic combination, need to be true. The other important one would be "||" for a logical "or".
    4. The metadata fields "kMDItemContentTypeTree" and "kMDItemPixelHeight" are what you are actually searching for. If you need further options, the easiest way to find them is to execute "mdls File.mov", where File.mov is some movie file, and look at the output.

    Hope that helps.

    EDIT: Two more remarks:

    1. If you only want to search a certain folder, e.g. "Movies" in you home directory, you can add the option "-onlyin <folder>" to the command.

    2. The "kMDItemContentTypeTree" condition is necessary because otherwise, all pictures on your hard drive with a resolution of more than 720p will be listed as well. So if you are only searching within a movie library folder, you can skip this.

    An example would then be:

    Code:
    mdfind -onlyin ~/Movies/ "kMDItemPixelHeight >= 720"
     

Share This Page