Asher Gruber
Asher Gruber

Reputation: 11

Apache Tika MP4 metadata keys

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.

Upvotes: 0

Views: 1103

Answers (1)

SANN3
SANN3

Reputation: 10099

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

So we can use this method to get the keys.

Upvotes: 1

Related Questions