简体   繁体   English

如何提取音频/视频文件的持续时间?

[英]How to extract audio/video file duration?

I need to find the duration of numerous formats of audio and video files, in milliseconds. 我需要找到多种音频和视频文件格式的持续时间(以毫秒为单位)。 I've been searching around for a while, but I can't find anything that will let me do this. 我已经搜索了一段时间,但是找不到任何可以执行此操作的内容。 I'm using C/++ in Linux. 我在Linux中使用C / ++。 Thanks in advance. 提前致谢。

There is a MediaInfo SourceFourge project that shows this info. 有一个MediaInfo SourceFourge项目显示此信息。 You can look in its code for that. 您可以在其代码中查找。

声明:本站的技术帖子网页,遵循CC BY-SA 4.0协议,如果您需要转载,请注明本站网址或者原文地址。任何问题请咨询:yoyou2525@163.com.

 
粤ICP备18138465号  © 2020-2024 STACKOOM.COM