ExifTool Forum

ExifTool => Newbies => Topic started by: lddd on March 25, 2017, 08:03:16 PM

Title: Getting File Informations in redable formats
Post by: lddd on March 25, 2017, 08:03:16 PM
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
Title: Re: Getting File Informations in redable formats
Post by: Stephen Marsh on March 25, 2017, 08:17:34 PM
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
Title: Re: Getting File Informations in redable formats
Post by: lddd on March 25, 2017, 08:33:00 PM
exiftool -a  -T  -Duration -ImageSize -FileSize Stasy.mp4
0:22:23 854x480 146 MB


This is pretty near to what i need.
Title: Re: Getting File Informations in redable formats
Post by: Phil Harvey on March 25, 2017, 10:16:56 PM
Try this:

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

- Phil