Add an option to compute duration of files.

I have added a way to automatically compute duration of files when resolving metadata. Even though it is not recommended to use it (it uses quite a lot of time), it can be convenient for some people to quickly get the duration of tiles without having to retag all their library...