#include "stdafx.h"
#include <iostream>
#include <iomanip>
#include "MediaInfoDLL.h" //Dynamicly-loaded library (.dll or .so)
using namespace MediaInfoDLL;
using namespace std;
MediaInfo MI;
String all;
String strFile = L"a.mp4";String strComplete = L"Complete";
MI.Open(strFile);
MI.Option(strComplete);
all = MI.Inform();
//时间戳
String duration = MI.Get(Stream_General, 0, _T("Duration"));
DWORD nsecondtime = _wtol(duration.c_str());
String fileSize = MI.Get(Stream_General, 0, _T("FileSize"));
String AudioCount = MI.Get(Stream_General, 0, _T("AudioCount"));
String StreamCount = MI.Get(Stream_General, 0, _T("StreamCount"));
MI.Close();