From 4c3c54f41c8be5b61ffe96c1bf6b815678dd3497 Mon Sep 17 00:00:00 2001 From: Conrad Zelck <git@simpel.cc> Date: Wed, 4 Dec 2019 20:22:59 +0100 Subject: [PATCH] add splash info at start before analyzing file close #1 Signed-off-by: Conrad Zelck <git@simpel.cc> --- R128.au3 | 4 ++++ 1 file changed, 4 insertions(+) diff --git a/R128.au3 b/R128.au3 index bfef7ed..94162e4 100644 --- a/R128.au3 +++ b/R128.au3 @@ -43,6 +43,8 @@ Else EndIf EndIf +SplashTextOn("Be patient", "R128 is analysing file ...", 300, 50) + ; how many video streams to increase stream counter Local $sCommand = '-i "' & $sFile & '" -v 0 -show_entries stream=codec_type -of default=nw=1:nk=1' Local $sCodecs = _runFFprobe('ffprobe ' & $sCommand, $sPathFFprobe) @@ -54,6 +56,7 @@ ConsoleWrite("Counter video: " & $iCounterVideo & @CRLF) ; is audio inside? StringReplace($sCodecs, "audio", "audio") ; just to get the count If @extended = 0 Then + SplashOff() MsgBox($MB_TOPMOST, "Error", "No audio channels found.") Exit EndIf @@ -61,6 +64,7 @@ EndIf ; channel layout for all audio streams $sCommand = '-i "' & $sFile & '" -v 0 -select_streams a -show_entries stream=channels -of default=nw=1:nk=1' Local $sChannels = _runFFprobe('ffprobe ' & $sCommand, $sPathFFprobe) +SplashOff() Local $aChannels = StringSplit($sChannels, @CRLF, $STR_ENTIRESPLIT) If Not IsArray($aChannels) Then MsgBox($MB_TOPMOST, "Error", "No audio channels found.") -- GitLab