Getting length of video

后端 未结 7 2022
忘掉有多难
忘掉有多难 2020-12-01 12:36

I am having trouble finding a simple example of how to get the video length of a file programmatically. Many people say, oh use this library/wrapper or whatever, but do not

7条回答
  •  予麋鹿
    予麋鹿 (楼主)
    2020-12-01 13:38

    The open-source tool MediaInfo provides comprehensive meta-data for media files and can be used easily from your own application in DLL form:

    void* Hande=MediaInfo::OpenQuick("**FILENAME**", "**VERSION**;**APP_NAME**;**APP_VERSION**")
    MediaInfo::Inform()
    

提交回复
热议问题