Check duration from videotag

Fixes #631