How to get flv time

Im gonna stream a flv-movie into my flash-file and was wondering if theres anyway to retrieve (or calculate) the length (in seconds) of the movie before its completly loaded.

// joakim