Getting File Informations in redable formats

Started by lddd, March 25, 2017, 08:03:16 PM

Previous topic - Next topic

lddd

Hi there,

i am new to exifTool and would like to use it to extract one-liner video file information of File Size, Duration and Resolution in a human readable format like

Size: 100 MB - Duration: 30:20:21 Resolution: 1280x720

Now for video resolution seems to be no problem at all but file size and duration. Are there options to format those?

thanks in advance

Stephen Marsh

Use the following to find out which tags your target files have, so that they can be included in a -T, -csv or output to file:

exiftool -a -G1 -s DIR-or-FILE

lddd

#2
exiftool -a  -T  -Duration -ImageSize -FileSize Stasy.mp4
0:22:23 854x480 146 MB


This is pretty near to what i need.

Phil Harvey

Try this:

exiftool -p "Size: $filesize - Duration: $duration Resolution: $imagesize" Stasy.mp4

- Phil
...where DIR is the name of a directory/folder containing the images.  On Mac/Linux/PowerShell, use single quotes (') instead of double quotes (") around arguments containing a dollar sign ($).