How do I list video files resolution?

10

3

I want to get a list of all my video files (mkv, mp4, avi etc) and their resolution, so I can see which SD video files need to be upgraded to HD. I mainly need a method (or a program) for windows, but OSX would be fine too.

I know Linux users can use this:

find . -name "*.mkv" -execdir mediainfo {} \; | egrep "(Complete name|Width|Height)"

Bob

Posted 2013-08-28T09:33:09.313

Reputation: 243

Answers

11

For Windows Vista (other versions can have similar features):

If you need to see it for just one file, you can see it in the Details pane at the bottom.

If you need to see it for several files, follow 1, 2, 3* in the screenshot, then choose 'Frame height' and 'Frame width' to enable these columns. (Tip: You can type the column names in the long list to scroll to them quickly.)

enter image description here

* right-click on header to get the menu

ADTC

Posted 2013-08-28T09:33:09.313

Reputation: 2 649

Thank for the greatly executed answer. This will help me out already. Is there some way I can get this exported to a list? – Bob – 2013-08-28T10:17:06.493

Unfortunately there is no easy way to do that. Sorry, but you may look for tools online. – ADTC – 2013-08-28T10:24:57.103

Thanks for accepting my answer btw :) (Click the check mark below the vote arrows and make it green) – ADTC – 2013-08-28T10:56:50.357

I found a way to export the list. After the search is done, select all (CTRL+A), hold SHIFT and right-click the results. Click on Copy Path and paste in into a text document. Another usefull tip is to search for System.Kind:Video to get all the videos. Thanks ADTC. I accepted your answer officially. – Bob – 2013-08-28T11:01:21.173

But Copy as path only seems to give the file names and paths, not the video dimensions and other details. You only needed the file names with paths? – ADTC – 2013-08-28T11:12:32.430

It would be nicer to have the dimensions with it, but a list of the paths/file names will do for my purpose. – Bob – 2013-08-28T23:09:27.963

3

You can also install mediainfo on OS X with for example brew install mediainfo.

for f in *;do mediainfo "$f"|awk '$0~/Width|Height/{gsub(/[^0-9]/,"");printf("%s ",$0)}';echo "$f";done

Or install ffmpeg and use ffprobe:

mdfind kMDItemContentTypeTree=public.movie -onlyin .|while read f;do ffprobe -v 0 "$f" -show_streams -of csv|head -n1|cut -d, -f10,11|tr '\n' ,;echo "$f";done

You might try changing -of (output format) to flat, json, or xml. -v 0 is equivalent to -loglevel quiet.

file only displayed the dimensions for about half of the video files I tested it with. mdls displayed the dimensions for even fewer files.

Lri

Posted 2013-08-28T09:33:09.313

Reputation: 34 501