Java API or 3rdparty for getting duration of movie

thebelll190

New Member
I've many video files. All the types are different (mkv, avi, mp4, flv, etc.).I want to iterate these files and get the duration of the movies.Currently I use vlcj which is OK, but the code is a little bit confusing me.I have to play the media before I can get the length. Then stop the media. This is weird, isn't it.Can I do that better somehow? I've heard about xuggler, but the development has stopped.I need an API or 3rdparty component that is still alive. And I don't want to play the media before I play :)
 
Back
Top