Mac OS X has the command
afinfo to fetch audio file info. Is there a similar command to fetch video file info for videos (
.m4v) other than the
None that comes with OS X itself.
Sample terminal usage:
For a video, it'll produce something like the following output:
You can get much information using the mdls builtin command, which is a general purpose file metadata utility. It works not only for video files, but for all types of files. It is the utility used by the finder when you use the "get info" menu command.
Here's part of the output I get when with the command on an mp4 file named forest.mp4
Furthermore, you can specify which attribute you want listed. For example, to only get the duration of the movie:
If it's helpful, here's a little script to output the filename and length for all the MP4s in a specific directory:
Doesn't work if there are spaces in filenames. If your videos > 1hr just adjust the REGEXP to suit.