ExifTool Forum

General => Metadata => Topic started by: adampwsmith on January 03, 2014, 12:47:13 AM

Title: Inconsistent time formats for movie duration
Post by: adampwsmith on January 03, 2014, 12:47:13 AM
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
Title: Re: Inconsistent time formats for movie duration
Post by: Phil Harvey on January 03, 2014, 07:22:38 AM
Hi Adam,

Try the -n option.

- Phil
Title: Re: Inconsistent time formats for movie duration
Post by: adampwsmith on January 03, 2014, 01:19:52 PM
That looks good. I'm presuming that's in seconds, yes?

Thanks Phil.
Title: Re: Inconsistent time formats for movie duration
Post by: Phil Harvey on January 03, 2014, 01:25:59 PM
Yes, seconds.

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

- Phil