News:

2023-08-10 - ExifTool version 12.65 released

Main Menu

Duration of MOV

Started by Jay, September 06, 2018, 03:30:39 AM

Previous topic - Next topic

Jay

Hi, I've been looking for a similar question but haven't found one, so apologies in advance if this has been asked before.

When I pull the duration tag from a mov file, I get this kind of output –
if the file is under a minute – 10.92 s
if the file is over a minute  – 0:02:43 (h:mm:ss) – no hundredths of a second

Is there a way I can get the hundredths of a second for the longer files?
And possibly get both cases reported in same format, eg as hh:mm:ss.00 ?

Thanks

StarGeek

You could try using exiftool -duration# FILE.  That will always give you the fractional time, but on the down side it will only give you total number of seconds.  For example, one file I tested on (3 min, 6 seconds) returned 186.182577777778 with that command. 

It might be possible if you're only extracting limited data.  For example, you might use -api Filter with sprintf in the filter, but if you're extracting other numbered data, those results would also be affected.
* Did you read FAQ #3 and use the command listed there?
* Please use the Code button for exiftool code/output.
 
* Please include your OS, Exiftool version, and type of file you're processing (MP4, JPG, etc).

Jay

Thanks for that info, I'll try those suggestion.