Incorrect Language Result from DLL
A unified display of relevant technical and tag data for A/V files
Brought to you by:
guillaumeroques,
zenitram
Hi,
I'm using AutoIt and getting an incorrect result when working with the DLL.
The code I use is:
$media_info_dll = DllOpen(@ScriptDir & "\MediaInfo.dll")
$media_info_handle = DllCall($media_info_dll, "ptr", "MediaInfo_New")
DllCall($media_info_dll, "wstr", "MediaInfo_Option", "ptr", 0, "wstr", "Inform", "wstr", "General;%Audio_Language_List%")
$return = DllCall($media_info_dll, "wstr", "MediaInfo_Inform", "ptr", $media_info_handle, "int", 0)
$return[0] is always English if no language is specified in the container for that track. It should be "undetermined" or empty.
I only work with mkv and webm files.
Please separate API usage (looks like you don't have issues with it) and format support.
Do I rephrase correctly if I say that you complain that MediaInfo reports "English" in the case the Matroska/WebM file has no language is specified in the container?
If this is the case, you should read the spec:
"Language" line, "Default" column (it is set to "eng", meaning that the track is with English language if no language is specified in the container for that track).
OK. Thx.
Makes it a bit harder for me, but that's the spec.