0
votes

I have a m4v video file.

I want to get the width and height values of the movie.

I tried to grab it with "org.apache.tika" library which i succeed to get other metadata from the movie but not the width and height.

Any suggestions (Java) ?

Thanks.

Or.

1

1 Answers

0
votes

I've been doing this in MediaManager using the mediainfo command. The java code that wraps the command line program can be seen here MediaFileInfoFetcher.java. The good think about the command is that it can output media info as XML. So it's easy to use from Java.