Having problems with no videoformat info after upgrading to Win10 x64 using the x64 MediaInfo.dll. Still using 32-bit AHK_H though. Anyone having a clue how to get it working again?
Code: Select all
affected_file := "F:\TV\stuff\recording properties fails\20140429_21-59-04_TV12_Casino Royale - ★★★★★★★★☆☆.ts"
Mediainfo_location := "C:\Program Files\MediaInfo\MediaInfo.dll"
DllCall( "LoadLibrary", Str, Mediainfo_location )
hnd := MediaInfo_New()
MediaInfo_Open( hnd, affected_file )
videoformat := MediaInfo_Get( hnd, 1,0, "Format", 1 )
msgbox % videoformat
MediaInfo_New() {
Return DllCall( "mediainfo\MediaInfo" ( A_IsUnicode ? "" : "A" ) "_New" )
}
MediaInfo_Open( hnd, MediaFile ) {
Return DllCall( "mediainfo.dll\MediaInfo" ( A_IsUnicode ? "" : "A" ) "_Open", UInt,hnd
, Str,MediaFile, UInt )
}
MediaInfo_Get( hnd, StrK=0, StrN=0, Comm="", InfK=0, Srch=0 ) {
Return DllCall( "mediainfo.dll\MediaInfo" ( A_IsUnicode ? "" : "A" ) "_Get", UInt,hnd
, Int,StrK, Int,StrN, Str,Comm, Int,InfK, Int,Sech, Str )
}
MediaInfo_Close( hnd ) {
Return DllCall( "mediainfo\MediaInfo" ( A_IsUnicode ? "" : "A" ) "_Close", UInt,hnd )
}