diff --git a/ReencodeFfmpeg.pb b/ReencodeFfmpeg.pb
index 45200c6..dac4347 100644
--- a/ReencodeFfmpeg.pb
+++ b/ReencodeFfmpeg.pb
@@ -309,7 +309,7 @@ Procedure EnsureFFmpeg(Event)
Debug(res2)
If res = -1 Or res2 = -1
Debug("Doesn't exist, trying to download")
- result = MessageRequester("Error", ~"FFmpeg couldn't be found. Download it automatically?\nA small 7zip executable will be downloaded alongside it to extract the 7z archive.\n\nIt will be saved to\n" + ffpath$, #PB_MessageRequester_Warning | #PB_MessageRequester_YesNo)
+ result = MessageRequester("Error", ~"FFmpeg couldn't be found, but is required for this program to work. Download it automatically?\nA small 7zip executable will be downloaded alongside it to extract the 7z archive.\n\nIt will be saved to\n" + ffpath$, #PB_MessageRequester_Warning | #PB_MessageRequester_YesNo)
RemoveFFmpeg(-1)
If result = #PB_MessageRequester_No
ProcedureReturn #False
@@ -333,6 +333,7 @@ Procedure EnsureFFmpeg(Event)
SetGadgetText(download_text, "Please wait for 7zip to finish extracting.")
args$ = "e ffmpeg.7z ffmpeg.exe ffprobe.exe -r"
sevenzzip = RunProgram(ffpath$ + "7zr.exe", args$, ffpath$, #PB_Program_Wait)
+ Debug(sevenzip)
Output$ = ""
Error$ = ""
If sevenzip
@@ -1003,6 +1004,9 @@ SaveConfigFile(ConfigFile)
If GetConfigValue("autoCheckUpdate", "0") = "1"
CheckUpdate(-1)
EndIf
+
+EnsureFFmpeg(-1)
+
;GetResolution()
;GetDuration()
; The main event loop as usual
@@ -1017,7 +1021,8 @@ Repeat
Until Event = #PB_Event_CloseWindow ; Quit on any window close
; IDE Options = PureBasic 6.20 (Windows - x64)
-; CursorPosition = 2
-; Folding = Beug0
+; CursorPosition = 335
+; FirstLine = 219
+; Folding = he+g0
; EnableXP
; DPIAware
\ No newline at end of file
diff --git a/ReencodeFfmpeg.pbp b/ReencodeFfmpeg.pbp
index 8a30b64..6c2fe9d 100644
--- a/ReencodeFfmpeg.pbp
+++ b/ReencodeFfmpeg.pbp
@@ -7,7 +7,7 @@