![]() Private static extern IntPtr MediaInfo_Option(IntPtr Handle, string option, string Value) Ĭreate function for that: public string Option(string option, string Value = "") I forgot to include in my last post that you also need to set the Inform option through the MediaInfo_Option API, this is important step to define the returned data: ![]() Var objMediaInfo = new result = objMediaInfo.Inform() Then in your implementation, you must pass the full path of the media file not just its name: static void Main(string args) Private static extern void MediaInfo_Delete(IntPtr Handle) Return Marshal.PtrToStringUni(MediaInfo_Inform(Handle, (UIntPtr)0)) ĭon't forget to delete the pointer (Handle) that created by _MediaInfo_New_. Public System.UIntPtr Open(string FileName) Private static extern IntPtr MediaInfo_Inform(IntPtr Handle, UIntPtr Reserved) Private static extern UIntPtr MediaInfo_Open(IntPtr Handle, string FileName) I am aware there is already a fully developed wrapper for this, but I would like to keep this simple and lightweight.Ĭhanges I have tried a few different media files. However, I am only getting a blank string in return. Return Marshal.PtrToStringUni(MediaInfo_Inform(Handle)) Īnd I am calling this class using the below console app: static void Main(string args) Private static extern void MediaInfo_Close(IntPtr Handle) Private static extern IntPtr MediaInfo_Inform(IntPtr Handle) Private static extern void MediaInfo_Open(string FileName) Private static extern IntPtr MediaInfo_New() To wrap the dll, I have created a MediaInfo class, based on my (limited) understanding from the quickstart guide. Now there will be no problem to convert such video files in Nero MKV Converter.Using MediaInfo DLL (64-bit), I am attempting to get the standard text output providing information about an mp4 file. ![]() If the video files get sound in system players now, then it means the audio issue is fixed.Play the video files in system players.Install the package if you found the extension.Search this audio codec in Microsoft Store to find if there is any extension available.Let’s find if there is any extension available in Microsoft Store.You can switch to Tree or HTML video mode, if you would like to see detail information clearly. Please check audio codec information of this video file. ![]() You can download and install ‘MediaInfo’ from here. If you don’t know what app you should use, I recommend to use ‘MediaInfo’. Please open this video file in some ‘media info’ application to check the detail information.We need to find out what audio is included in your video file.Most of cases, these video files include some object-oriented audio formats.ĭon’t worry, let’s dig out the problem and fix it step by step: This means that your system lacks some audio decoders. Generally, if you play such video files in the system players (Windows Media Player, Movies & TV), they are also no sound. When adding some MKV video files to Nero MKV Converter, you may see an error message about ‘Audio track not supported by your system’ as the screenshot below. Nero MediaHome WiFi Sync / WiFi+Transfer App (12).1001 TVs screen mirroring and file transfer –Nero Knowhow (75). ![]()
0 Comments
Leave a Reply. |