How to get flv duration in java?

Given the flv file , how to get the duration of a video in java code? That is, how to parse the FLV header to get the duration of the video?

Note: I found this other question , but the answer is to get the contents of the file header from the given URL, and not about parsing this header.

0
source share
1 answer

The Red5 project has a class FLVReaderthat does what you want. This is an LGPL license.

+1
source

All Articles