Inconsistent time formats for movie duration

Started by adampwsmith, January 03, 2014, 12:47:13 AM

Previous topic - Next topic

adampwsmith

It would seem that EXIFtool reports the duration of a movie as HH:MM:SS if the movie is longer than 60 seconds, but as "Xs Xms" if it is less. Is there a way to force the output to use a consistent format, or is this something weird about how the time is written into the metadata?

Thanks
Adam

Phil Harvey

...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 ($).

adampwsmith

That looks good. I'm presuming that's in seconds, yes?

Thanks Phil.

Phil Harvey

Yes, seconds.

In general, the default ExifTool output is designed to be human readable.  -n is used for machine-readable output.

- 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 ($).