Get video's duration
I have tried, in vain,开发者_如何学JAVA to fetch the duration of a video file using c++. I'm on a Linux platform. How do I go about it? Is there some file on my native file system where this information is stored, or does it move with the video file? Google gives me every method on ruby, c# etc etc, but I haven't found any libraries for c++.
Give libavcodec a shot.
You can try to look at midentify source code. It's a tool that come with mplayer (http://www.mplayerhq.hu/). If you're too lazy, you can take it's output and parse it in your c++ application
精彩评论