Calculates duration of a theora stream.

The calculation is slightly off and needs to be fixed,
but it's close enough (within a second) for now.