Menu

#1040 Incorrect Language Result from DLL

Incorrect_result
closed-invalid
None
5
2017-04-05
2017-04-05
No

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.

Discussion

  • Jerome Martinez

    Jerome Martinez - 2017-04-05

    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).

     
  • Jerome Martinez

    Jerome Martinez - 2017-04-05
    • status: open --> closed-invalid
     
  • ibakhmoutski

    ibakhmoutski - 2017-04-05

    OK. Thx.

    Makes it a bit harder for me, but that's the spec.

     

Log in to post a comment.