tags:

views:

77

answers:

2

I need to get the aspect ratio from a multitude of video formats (flv, wmv, mp4, mov, etc). What would you guys recommend as a relatively slim JAR that has the tools to inspect the video's header and get this data out. I don't need anything too beefy as this is the sole operation that it's going to perform.

FFMPEG is not an option, btw.... so... I need other alternatives.

+1  A: 

What comes into my mind is the Java Media Framework, but I admit, I don't know where to look for metadata info within the framework.

The Wotsit site has links to various video format descriptions - if you want to do it yourself.

There is also an open source C++ media analyzer called MediaInfo. If you can read C++ code you can recognize how it reads metadata.

kd304
A: 

You can also use Xuggler to get information about video files, and to decode and encode them to and from raw images and audio if you want.

Xuggle