How to list movies with a certain resolution in finder?

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

  1. tinoman macrumors newbie

    Apr 1, 2004
    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


    Jan 11, 2002
    Los Angeles
    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

    Mar 17, 2012
    Try this :

    Attached Files:

  4. ChrisA macrumors G4

    Jan 5, 2006
    Redondo Beach, California
    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

    Nov 28, 2011
    Stuttgart, Germany
    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):

    mdfind "kMDItemContentTypeTree == && 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", where 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:

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

Share This Page