CYCho Posted August 5, 2020 Share Posted August 5, 2020 (edited) I use the following code to get metadata of a media file, such as media duration and bitrates. #include <Array.au3> #include <File.au3> $sFullPath = "full path to the media file" If FileExists($sFullPath) = 0 Then MsgBox(0, "", "File does not exist!") Exit EndIf $aFileInfo = _GetProperty($sFullPath) _ArrayDisplay($aFileInfo) Func _GetProperty($sPath) $sFile = StringTrimLeft($sPath, StringInStr($sPath, "\", 0, -1)) $sDir = StringTrimRight($sPath, (StringLen($sPath) - StringInStr($sPath, "\", 0, -1))) $oShellApp = ObjCreate("shell.application") $oDir = $oShellApp.NameSpace ($sDir) $oFile = $oDir.Parsename ($sFile) Local $aProperty[500][2] For $i = 0 To 499 $aProperty[$i][0] = $oDir.GetDetailsOf ($oDir.Items, $i) ; Property names $aProperty[$i][1] = $oDir.GetDetailsOf ($oFile, $i) Next Return $aProperty EndFunc ;==>_GetProperty But this doesn't work for mkv and webM files. How can I get duration and bitrates of these file types? Edited August 6, 2020 by CYCho zPlayer - A Small Audio and Video Player Time Sync + SystemTimeAdjustment Link to comment Share on other sites More sharing options...
faustf Posted August 5, 2020 Share Posted August 5, 2020 you looked this thread ? Link to comment Share on other sites More sharing options...
CYCho Posted August 5, 2020 Author Share Posted August 5, 2020 (edited) @faustf Thanks for your attention. My code above is basically the same as @BrewManNH's code in that both utilize Shell.Application object. This works fine for most of the files like mp3, mp4 and flv, but produces no duration or bitrate value for mkv and webM files. When I right-click the file and look at file properties in file explorer, there's no duration or bitrate information either. Maybe the OS(Win 10 in my case) has some limitaion. I hope someone has a solution other than Shell.Application. Edited August 6, 2020 by CYCho zPlayer - A Small Audio and Video Player Time Sync + SystemTimeAdjustment Link to comment Share on other sites More sharing options...
mikell Posted August 5, 2020 Share Posted August 5, 2020 The most simple, easy and complete way would be (by far) to use an external tool which accepts command line, such as ffmpeg or Mediainfo CLI TheSaint 1 Link to comment Share on other sites More sharing options...
CYCho Posted August 5, 2020 Author Share Posted August 5, 2020 @mikell, Thanks for your kind suggestion. I didn't try ffmpeg or Mediainfo CLI, but I would like to find a pure AutoIt solution without dependent files, as I would like to use it in my zPlayer project. zPlayer - A Small Audio and Video Player Time Sync + SystemTimeAdjustment Link to comment Share on other sites More sharing options...
TheSaint Posted August 5, 2020 Share Posted August 5, 2020 11 minutes ago, mikell said: The most simple, easy and complete way would be (by far) to use an external tool which accepts command line, such as ffmpeg or Mediainfo CLI I was just about to post that, but you did it for me. I use both in several programs. One thing for OP to note, is that the GUI and CLI versions of MediaInfo share the same filename, but are actually different files, so make sure to grab the right one. Make sure brain is in gear before opening mouth! Remember, what is not said, can be just as important as what is said. Spoiler What is the Secret Key? Life is like a Donut If I put effort into communication, I expect you to read properly & fully, or just not comment. Ignoring those who try to divert conversation with irrelevancies. If I'm intent on insulting you or being rude, I will be obvious, not ambiguous about it. I'm only big and bad, to those who have an over-active imagination. I may have the Artistic Liesense to disagree with you. TheSaint's Toolbox (be advised many downloads are not working due to ISP screwup with my storage) Link to comment Share on other sites More sharing options...
CYCho Posted August 5, 2020 Author Share Posted August 5, 2020 @TheSaint and @mikellThanks, I will give it a try. TheSaint 1 zPlayer - A Small Audio and Video Player Time Sync + SystemTimeAdjustment Link to comment Share on other sites More sharing options...
TheSaint Posted August 5, 2020 Share Posted August 5, 2020 (edited) 13 minutes ago, CYCho said: .... but I would like to find a pure AutoIt solution without dependent files ... Wouldn't we all. I tried to do that for many years, but eventually gave up because it was either impossible or too hard, and I saw it as silly to reinvent the wheel ... which in this case would be reading bytes of a file header and converting hex values I suspect. Of the two options mentioned, both of which are free and readily available, MediaInfo CLI version is a small footprint and easy enough to include with your program, and not too different to including a DLL or even an Include file. File Properties seem to change with each OS, and they only stick to basic stuff anyway, and both MKV and WEBM are specialist container files, so not likely to provide anything without installing something. Edited August 5, 2020 by TheSaint CYCho 1 Make sure brain is in gear before opening mouth! Remember, what is not said, can be just as important as what is said. Spoiler What is the Secret Key? Life is like a Donut If I put effort into communication, I expect you to read properly & fully, or just not comment. Ignoring those who try to divert conversation with irrelevancies. If I'm intent on insulting you or being rude, I will be obvious, not ambiguous about it. I'm only big and bad, to those who have an over-active imagination. I may have the Artistic Liesense to disagree with you. TheSaint's Toolbox (be advised many downloads are not working due to ISP screwup with my storage) Link to comment Share on other sites More sharing options...
CYCho Posted August 5, 2020 Author Share Posted August 5, 2020 @TheSaint Thank you for sharing your experience and saving my time trying to do something infeasible. Even the TV & Movie software built into Windows 10 play back these files without duration information and no progress slider. TheSaint 1 zPlayer - A Small Audio and Video Player Time Sync + SystemTimeAdjustment Link to comment Share on other sites More sharing options...
CYCho Posted August 5, 2020 Author Share Posted August 5, 2020 (edited) Just for your infrmation, I tried MediaInfo on a webM file and it produced no information on duration or bitrate. expandcollapse popupGenral Count : 333 Count of stream of this kind : 1 Kind of stream : General Kind of stream : General Stream identifier : 0 Unique ID : 173042507820673035627142880817957865511 Unique ID : 173042507820673035627142880817957865511 (0x822EC655C73067535FD7F5955A648827) Count of video streams : 1 Count of audio streams : 1 Video_Format_List : VP9 Video_Format_WithHint_List : VP9 Codecs Video : VP9 Video_Language_List : English Audio_Format_List : Opus Audio_Format_WithHint_List : Opus Audio codecs : Opus Audio_Language_List : English Complete name : C:\Users\CYCho\OneDrive\zPlayer\Yanni - The Rain Must Fall.webM Folder name : C:\Users\CYCho\OneDrive\zPlayer File name extension : Yanni - The Rain Must Fall.webM File name : Yanni - The Rain Must Fall File extension : webM Format : Matroska Format : Matroska Format/Url : https://matroska.org/downloads/windows.html Format/Extensions usually used : mkv mk3d mka mks Commercial name : Matroska Format version : Version 4 File size : 54002010 File size : 51.5 MiB File size : 52 MiB File size : 52 MiB File size : 51.5 MiB File size : 51.50 MiB IsStreamable : Yes File creation date : UTC 2020-08-05 01:13:49.870 File creation date (local) : 2020-08-05 10:13:49.870 File last modification date : UTC 2020-08-05 01:14:11.215 File last modification date (local) : 2020-08-05 10:14:11.215 Writing application : Lavf56.40.101 Writing application : Lavf56.40.101 Writing library : Lavf56.40.101 Writing library : Lavf56.40.101 IsTruncated : Yes FileExtension_Invalid : mkv mk3d mka mks Video Count : 377 Count of stream of this kind : 1 Kind of stream : Video Kind of stream : Video Stream identifier : 0 StreamOrder : 0 ID : 1 ID : 1 Unique ID : 1 Format : VP9 Format : VP9 Commercial name : VP9 Codec ID : V_VP9 Codec ID/Url : http://www.webmproject.org/ Width : 1280 Width : 1 280 pixels Height : 720 Height : 720 pixels Pixel aspect ratio : 1.000 Display aspect ratio : 1.778 Display aspect ratio : 16:9 Frame rate mode : VFR Frame rate mode : Variable Language : en Language : English Language : English Language : en Language : eng Language : en Default : Yes Default : Yes Forced : No Forced : No Audio Count : 280 Count of stream of this kind : 1 Kind of stream : Audio Kind of stream : Audio Stream identifier : 0 StreamOrder : 1 ID : 2 ID : 2 Unique ID : 2 Format : Opus Format : Opus Format/Url : http://opus-codec.org/ Commercial name : Opus Internet media type : audio/opus Codec ID : A_OPUS Codec ID/Url : http://opus-codec.org Channel(s) : 2 Channel(s) : 2 channels Channel positions : Front: L R Channel positions : 2/0/0 Channel layout : L R Sampling rate : 48000 Sampling rate : 48.0 kHz Bit depth : 16 Bit depth : 16 bits Compression mode : Lossy Compression mode : Lossy Delay : 0 Delay : 00:00:00.000 Delay, origin : Container Delay, origin : Container Language : en Language : English Language : English Language : en Language : eng Language : en Default : Yes Default : Yes Forced : No Forced : No Edited August 5, 2020 by CYCho zPlayer - A Small Audio and Video Player Time Sync + SystemTimeAdjustment Link to comment Share on other sites More sharing options...
TheSaint Posted August 5, 2020 Share Posted August 5, 2020 I'll have to remember where an example of my MediaInfo code is, but for now, here is my ffmpeg version. As you can see I have two different source files, one being audio the other video and both are a webm variant. Both return duration for me. expandcollapse popup#include <File.au3> Local $duration, $file, $logfle, $pid, $read, $show, $sleep, $srcefle, $video, $vidinfo, $winstate ; $logfle = @ScriptDir & "\Logged.txt" $show = 4 ;$srcefle = "D:\Video\Downloads\Sir Terry Pratchett Shaking Hands With Death (2010) Assisted Suicide Euthanasia.f251.webm" $srcefle = "D:\Video\Downloads\Sir Terry Pratchett Shaking Hands With Death (2010) Assisted Suicide Euthanasia.webm.f136" $vidinfo = @ScriptDir & "\Vidinfo.txt" _FileCreate($vidinfo) Sleep(1000) If $show = 1 Then $winstate = @SW_HIDE Else $winstate = @SW_MINIMIZE EndIf $pid = RunWait(@ComSpec & ' /c ffmpeg.exe -i "' & $srcefle & '" 2>"' & $vidinfo & '"', "", $winstate) ProcessWaitClose($pid, 15) ;Sleep($sleep) $file = FileOpen($vidinfo, 0) $read = FileRead($file) FileClose($file) $duration = StringSplit($read, 'Duration:', 1) If $duration[0] > 1 Then $duration = $duration[2] $video = $duration $duration = StringSplit($duration, ',', 1) If $duration[0] > 1 Then $duration = StringStripWS($duration[1], 3) $video = StringSplit($video, 'yuv', 1) If $video[0] > 1 Then $video = $video[2] $video = StringSplit($video, '[', 1) $video = StringStripWS($video[1], 3) Else $video = "" EndIf Else $duration = "" $video = "" EndIf Else $duration = "" $video = "" EndIf If $duration = "" Then $video = "unknown." Else If $video = "" Then $video = $duration Else $video = $duration & " (" & $video & ")." EndIf EndIf _FileWriteLog($logfle, $srcefle & ". Duration = " & $video & @CRLF, 1) ShellExecute($vidinfo) ShellExecute($logfle) Exit I extracted this code from one of my programs and then quickly modified it to work for you. You need ffmpeg.exe to exist in the script folder or in the system PATH. You may also need ffprobe.exe as well, which should come in the same package. You of course need to provide your own source file(s). CYCho 1 Make sure brain is in gear before opening mouth! Remember, what is not said, can be just as important as what is said. Spoiler What is the Secret Key? Life is like a Donut If I put effort into communication, I expect you to read properly & fully, or just not comment. Ignoring those who try to divert conversation with irrelevancies. If I'm intent on insulting you or being rude, I will be obvious, not ambiguous about it. I'm only big and bad, to those who have an over-active imagination. I may have the Artistic Liesense to disagree with you. TheSaint's Toolbox (be advised many downloads are not working due to ISP screwup with my storage) Link to comment Share on other sites More sharing options...
CYCho Posted August 5, 2020 Author Share Posted August 5, 2020 3 minutes ago, TheSaint said: I extracted this code from one of my programs and then quickly modified it to work for you. I really appreciate your kindness. Thanks a lot. TheSaint 1 zPlayer - A Small Audio and Video Player Time Sync + SystemTimeAdjustment Link to comment Share on other sites More sharing options...
TheSaint Posted August 5, 2020 Share Posted August 5, 2020 (edited) And for completeness, here is my quickly cobbled together extraction from another program of mine that uses either the DLL or EXE file of the CLI version of MediaInfo. Please note that I wasn't able to test the EXE version as I only had the DLL at hand. It also only returns duration, so you would need to use other parameters for more detail. I am fairly certain there is a list of parameters somewhere here at the forum, but a google search might be better. expandcollapse popupLocal $audlog, $dur, $fldpth, $handle, $medfle, $mediainfo, $medinfdll, $medll, $runtime, $srcfle, $time, $usemed $medfle = @ScriptDir & "\Medlog.txt" $mediainfo = @ScriptDir & "\MediaInfo_CLI\MediaInfo.exe" $medinfdll = @ScriptDir & "\MediaInfo_CLI\MediaInfo.dll" $usemed = 1 If $usemed = 1 Then If FileExists($medinfdll) Then $medll = DllOpen($medinfdll) If Not @error Then $handle = DllCall($medll, "ptr", "MediaInfo_New") $handle = $handle[0] Else $usemed = "" EndIf ElseIf FileExists($mediainfo) Then $usemed = 2 Else $usemed = "" EndIf ElseIf $usemed = 2 Then If Not FileExists($mediainfo) Then $usemed = "" EndIf If $usemed <> "" Then $fldpth = "D:\Video\Downloads\" $srcfle = $fldpth & "Sir Terry Pratchett Shaking Hands With Death (2010) Assisted Suicide Euthanasia.webm.f136" ;$srcfle = $fldpth & "Sir Terry Pratchett Shaking Hands With Death (2010) Assisted Suicide Euthanasia.f251.webm" If FileExists($srcfle) Then $dur = "" If $usemed = 1 Then DllCall($medll, "dword", "MediaInfo_Open", "ptr", $handle, "wstr", $srcfle) $runtime = DllCall($medll, "wstr", "MediaInfo_Get", "ptr", $handle, _ "int", 0, "int", 0, "wstr", "Duration_String3", "int", 1, "int", 0) ; $dur = $runtime[0] $time = StringSplit($dur, ":") If $time[0] > 2 Then If $time[1] < 1 Then $dur = $time[2] & ":" & $time[3] EndIf $dur = StringSplit($dur, ".") $dur = $dur[1] Else $dur = "" EndIf ;$runtime = _ArrayToString($runtime) ;MsgBox(262208, "$runtime", $runtime, 0) DllCall($medll, "none", "MediaInfo_Close", "ptr", $handle) MsgBox(262208, "Duration", $dur, 0) ElseIf $usemed = 2 Then RunWait($mediainfo & ' "--Inform=Audio;Duration is: %Duration/String3%" --LogFile="' & $medfle & '" "' & $srcfle & '"', "", @SW_HIDE) Sleep(100) _FileReadToArray($medfle, $audlog) If @error = 0 Then ;_ArrayDisplay($audlog) $dur = StringReplace($audlog[1], "Duration is:", "") ;MsgBox(262208, "$dur", $dur, 0) $dur = StringStripWS($dur, 8) $dur = StringMid($dur, 4, 5) Else $dur = "" EndIf If $dur <> "" Then $time = StringSplit($dur, ":") If Not @error Then If $time[0] = 3 Then If $time[1] < 1 Then $dur = ($time[2] * 60) + $time[3] Else $dur = (($time[1] * 60) * 60) + ($time[2] * 60) + $time[3] EndIf ElseIf $time[0] = 2 Then If $time[1] < 1 Then $dur = $time[2] Else $dur = ($time[1] * 60) + $time[2] EndIf Else $dur = "" EndIf Else $dur = "" EndIf EndIf ShellExecute($medfle) MsgBox(262208, "Duration", $dur, 0) EndIf EndIf If $usemed = 1 Then DllClose($medll) EndIf EndIf Exit Edited August 5, 2020 by TheSaint CYCho 1 Make sure brain is in gear before opening mouth! Remember, what is not said, can be just as important as what is said. Spoiler What is the Secret Key? Life is like a Donut If I put effort into communication, I expect you to read properly & fully, or just not comment. Ignoring those who try to divert conversation with irrelevancies. If I'm intent on insulting you or being rude, I will be obvious, not ambiguous about it. I'm only big and bad, to those who have an over-active imagination. I may have the Artistic Liesense to disagree with you. TheSaint's Toolbox (be advised many downloads are not working due to ISP screwup with my storage) Link to comment Share on other sites More sharing options...
mikell Posted August 5, 2020 Share Posted August 5, 2020 3 hours ago, TheSaint said: it was either impossible or too hard, and I saw it as silly to reinvent the wheel ... and a huge amount of work to do through long nights trying to make error checking as clean and thorough as possible TheSaint and CYCho 2 Link to comment Share on other sites More sharing options...
Shark007 Posted August 5, 2020 Share Posted August 5, 2020 I use mediainfo as presented in the function below, Func Misc_btn2() ; make use of the MediaInfo.dll Local $hDLL = DllOpen("MediaInfo.dll") Local $aMediaInfo = DllCall($hDLL, "ptr", "MediaInfo_New") Local $hMediaInfo = $aMediaInfo[0] Local $file = FileOpenDialog("Select a media file to analyze", "", "All files (*.*)") If @error Then Return FileChangeDir(@ScriptDir) DllCall($hDLL, "dword", "MediaInfo_Open", "ptr", $hMediaInfo, "wstr", $file) Local $aMediaInfoInform = DllCall($hDLL, "wstr", "MediaInfo_Inform", "ptr", $hMediaInfo, "int", 0) Local $sMediaInfoInform = $aMediaInfoInform[0] ClipPut($sMediaInfoInform) Run("notepad.exe", @SystemDir) Sleep(300) Send("^v") Sleep(100) ClipPut("") DllCall($hDLL, "none", "MediaInfo_Close", "ptr", $hMediaInfo) DllClose($hDLL) EndFunc ;==>Misc_btn2 and the results are presented in notepad as such, Quote General Unique ID : 18190914987478227462339271999830230604 (0xDAF715A9F024ABD1F61622C2C76064C) Complete name : C:\Users\Thomas\Desktop\test vids\4K UHD HDR X265 PGS.mkv Format : Matroska Format version : Version 4 File size : 1 000 MiB Duration : 2 min 14 s Overall bit rate mode : Variable Overall bit rate : 62.6 Mb/s Encoded date : UTC 2019-03-18 20:41:12 Writing application : mkvmerge v32.0.0 ('Astral Progressions') 64-bit Writing library : libebml v1.3.7 + libmatroska v1.5.0 Video ID : 1 Format : HEVC Format/Info : High Efficiency Video Coding Format profile : Main 10@L5.1@High HDR format : SMPTE ST 2086, HDR10 compatible Codec ID : V_MPEGH/ISO/HEVC Duration : 2 min 14 s Bit rate : 52.2 Mb/s Width : 3 840 pixels Height : 2 160 pixels Display aspect ratio : 16:9 Frame rate mode : Constant Frame rate : 23.976 (24000/1001) FPS Color space : YUV Chroma subsampling : 4:2:0 (Type 2) Bit depth : 10 bits Bits/(Pixel*Frame) : 0.263 Stream size : 834 MiB (83%) Language : English Default : Yes Forced : No Color range : Limited Color primaries : BT.2020 Transfer characteristics : PQ Matrix coefficients : BT.2020 non-constant Mastering display color primaries : Display P3 Mastering display luminance : min: 0.0020 cd/m2, max: 1000 cd/m2 Audio #1 ID : 2 Format : MLP FBA 16-ch Format/Info : Meridian Lossless Packing FBA with 16-channel presentation Commercial name : Dolby TrueHD with Dolby Atmos Codec ID : A_TRUEHD Duration : 2 min 14 s Bit rate mode : Variable Bit rate : 4 381 kb/s Maximum bit rate : 5 742 kb/s Channel(s) : 8 channels Channel layout : L R C LFE Ls Rs Lb Rb Sampling rate : 48.0 kHz Frame rate : 1 200.000 FPS (40 SPF) Compression mode : Lossless Stream size : 70.0 MiB (7%) Language : English Default : No Forced : No Number of dynamic objects : 13 Bed channel count : 1 channel Bed channel configuration : LFE Audio #2 ID : 3 Format : DTS XLL Format/Info : Digital Theater Systems Commercial name : DTS-HD Master Audio Codec ID : A_DTS Duration : 2 min 14 s Bit rate mode : Variable Bit rate : 5 224 kb/s Channel(s) : 8 channels Channel layout : C L R LFE Lb Rb Lss Rss Sampling rate : 48.0 kHz Frame rate : 93.750 FPS (512 SPF) Bit depth : 24 bits Compression mode : Lossless Delay relative to video : 8 ms Stream size : 83.5 MiB (8%) Language : English Default : No Forced : No Audio #3 ID : 4 Format : AC-3 Format/Info : Audio Coding 3 Commercial name : Dolby Digital Codec ID : A_AC3 Duration : 2 min 14 s Bit rate mode : Constant Bit rate : 640 kb/s Channel(s) : 6 channels Channel layout : L R C LFE Ls Rs Sampling rate : 48.0 kHz Frame rate : 31.250 FPS (1536 SPF) Compression mode : Lossy Delay relative to video : 18 ms Stream size : 10.2 MiB (1%) Title : VFQ Language : French Service kind : Complete Main Default : Yes Forced : No Text #1 ID : 5 Format : PGS Codec ID : S_HDMV/PGS Codec ID/Info : Picture based subtitle format used on BDs/HD-DVDs Duration : 2 min 2 s Bit rate : 49.6 kb/s Count of elements : 76 Stream size : 740 KiB (0%) Title : Full Language : English Default : No Forced : No Text #2 ID : 6 Format : PGS Codec ID : S_HDMV/PGS Codec ID/Info : Picture based subtitle format used on BDs/HD-DVDs Duration : 1 min 56 s Bit rate : 39.7 kb/s Count of elements : 66 Stream size : 563 KiB (0%) Title : Full Language : French Default : No Forced : No Text #3 ID : 7 Format : PGS Codec ID : S_HDMV/PGS Codec ID/Info : Picture based subtitle format used on BDs/HD-DVDs Bit rate : 0 b/s Count of elements : 0 Stream size : 0.00 Byte (0%) Title : FORCED Language : French Default : Yes Forced : Yes I hope some of this is useful for you. CYCho and TheSaint 1 1 Link to comment Share on other sites More sharing options...
CYCho Posted August 6, 2020 Author Share Posted August 6, 2020 @TheSaint and @Shark007, Thanks for your helping hands. It seems that there are some mismatches somewhere between my OS(Windows 10), MediaInfo.exe(Version 20.3.0.0 by MediaArea.net), MediaInfo.dll(Version 0.7.53.0 by MediaArea.net) and my webM file which was downloaded as an example from YouTube using online service by https://en.savefrom.net/102-youtube-music-downloader.html. I tried both of your codes: TheSaint's code resulted in an empty message box and Shark007's code produced following result. General Unique ID : 173042507820673035627142880817957865511 (0x822EC655C73067535FD7F5955A648827) Complete name : C:\Users\CYCho\OneDrive\zPlayer\Yanni - The Rain Must Fall.webM Format : Matroska Format version : Version 4 / Version 2 File size : 51.5 MiB Writing application : Lavf56.40.101 Writing library : Lavf56.40.101 Video ID : 1 Format : V_VP9 Codec ID : V_VP9 Width : 1 280 pixels Height : 720 pixels Display aspect ratio : 16:9 Frame rate : 23.976 fps Language : English Default : Yes Forced : No Audio ID : 2 Format : A_OPUS Codec ID : A_OPUS Channel(s) : 2 channels Sampling rate : 48.0 KHz Bit depth : 16 bits Language : English Default : Yes Forced : No zPlayer - A Small Audio and Video Player Time Sync + SystemTimeAdjustment Link to comment Share on other sites More sharing options...
Shark007 Posted August 6, 2020 Share Posted August 6, 2020 (edited) On the programs download page are specific links to just get the 20.03 DLL (without installer) pay attention to bitness - 32 vs 64it https://mediaarea.net/en/MediaInfo/Download/Windows Quote General Unique ID : 40327878960213777338523179975100732928 (0x1E56DDF1A299FD3733D9DFF884221600) Complete name : G:\Video\phfx_4KHD_VP9TestFootage.webm Format : WebM Format version : Version 4 File size : 188 MiB Duration : 1 min 55 s Overall bit rate : 13.7 Mb/s Writing application : Lavf55.22.102 Writing library : Lavf55.22.102 Video ID : 1 Format : VP9 Codec ID : V_VP9 Duration : 1 min 55 s Bit rate : 13.2 Mb/s Width : 3 840 pixels Height : 2 160 pixels Display aspect ratio : 16:9 Frame rate mode : Constant Frame rate : 25.000 FPS Bits/(Pixel*Frame) : 0.063 Stream size : 181 MiB (96%) Default : Yes Forced : No Duration_Source : General_Duration Edited August 6, 2020 by Shark007 TheSaint 1 Link to comment Share on other sites More sharing options...
CYCho Posted August 6, 2020 Author Share Posted August 6, 2020 I downloaded version 20.03 DLL and the result was the same. One thing I can think of is my OS is 64 bit and I use 32 bit AutoIt, because my program is sometimes used in 32 bit computers. zPlayer - A Small Audio and Video Player Time Sync + SystemTimeAdjustment Link to comment Share on other sites More sharing options...
Shark007 Posted August 6, 2020 Share Posted August 6, 2020 I produce both 32bit and 64bit AutoIt exe's using the corresponding bitness of the mediainfo DLL giving me identical results in either bitness. My current assumption is that your testfile simply lacks the information as the information you seek is presented with my webm testfile. CYCho 1 Link to comment Share on other sites More sharing options...
CYCho Posted August 6, 2020 Author Share Posted August 6, 2020 (edited) On 8/6/2020 at 10:26 AM, Shark007 said: My current assumption is that your testfile simply lacks the information as the information you seek is presented with my webm testfile. You were correct. I downloaded a sample webM file from https://www.webmfiles.org/ and even my Shell.Application object could get duration and bitrate data of this file. I would consider my question SOLVED. Thanks everyone for your kind inputs. Edited August 7, 2020 by CYCho TheSaint 1 zPlayer - A Small Audio and Video Player Time Sync + SystemTimeAdjustment Link to comment Share on other sites More sharing options...
Recommended Posts
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 accountSign in
Already have an account? Sign in here.
Sign In Now