Sign in to follow this  
Followers 0
Krakatoa

How set the language of the library medianfo?

1 post in this topic

#1 ·  Posted (edited)

Example valid code without language:

#include <Array.au3>

$_InfoArray = _GetInfoArrayByMediaInfodll ( 'd:\autoit\mediainfo\video.mp4' )
_ArrayDisplay ( $_InfoArray )

Func _GetInfoArrayByMediaInfodll ( $_MediaFilePath )
    $_Dll = DllOpen ( "MediaInfo.dll" )
    $_Handle = DllCall ( $_Dll, "ptr", "MediaInfo_New" )
    DllCall ( $_Dll, "int", "MediaInfo_Open", "ptr", $_Handle[0], "wstr", $_MediaFilePath )
    DllCall ( $_Dll, "wstr", "MediaInfo_Option", "ptr", 0, "wstr", "Complete", "wstr", "" )
    $_Inform = DllCall ( $_Dll, "wstr", "MediaInfo_Inform", "ptr", $_Handle[0], "int", 0 )
    DllClose ( $_Dll )
    $_Return = StringSplit ( $_Inform[0], @lf )
    If Not @error Then
        Return $_Return
    Else
        Return 0
    EndIf
EndFunc ;==> _GetInfoArrayByMediaInfodll ( )

Example language string:

General;Hlavní
Duration;Trvání

Oficial info:

https://mediaarea.net/en/MediaInfo/Support/SDK/Doxygen/class_media_info_lib_1_1_media_info.html#a75fb33d32e1ab5ab87688e3be5598114

https://mediaarea.net/en/MediaInfo/Support/SDK/Quick_Start#Language

Please, how set the language (example string or svc file) of the library mediainfo?

Edited by Krakatoa

Share this post


Link to post
Share on other sites



Create an account or sign in to comment

You need to be a member in order to leave a comment

Create an account

Sign up for a new account in our community. It's easy!


Register a new account

Sign in

Already have an account? Sign in here.


Sign In Now
Sign in to follow this  
Followers 0