开发者

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

0

上一篇:

下一篇:

精彩评论

暂无评论...
验证码 换一张
取 消

最新问答

问答排行榜