Apache Tika MP4 metadata keys

1k Views Asked by At

I'm using Apache Tika v 1.4 to parse video files in the following way.

Metadata metadata = new Metadata();
String content = new Tika().parseToString(file.getInputStream(), metadata);
metadata.get(KEY)

The problem is that I don't know which keys to use in some cases. For example the MP4 keys: Duration. Frame Rate.

Where key I find these keys?

Thanks.

1

There are 1 best solutions below

0
On

metadata.names() method return an array of the names contained in the metadata.

So we can use this method to get the keys.