X xavier66 New Member Feb 14, 2021 #1 B4X: Copy sh.InitializeDoNotHandleQuotes("ffmpeg", File.Combine("c:\ffmpeg\bin","ffmpeg.exe"),params) sh.WorkingDirectory = "c:\ffmpeg\bin" sh.Run(-1) wait for sh_ProcessCompleted (Success As Boolean, ExitCode As Int, StdOut As String, StdErr As String) params is a list of parameters. Nor with sh.initialize. How to detect that ffmpeg has finished video processing? Thanks
B4X: Copy sh.InitializeDoNotHandleQuotes("ffmpeg", File.Combine("c:\ffmpeg\bin","ffmpeg.exe"),params) sh.WorkingDirectory = "c:\ffmpeg\bin" sh.Run(-1) wait for sh_ProcessCompleted (Success As Boolean, ExitCode As Int, StdOut As String, StdErr As String) params is a list of parameters. Nor with sh.initialize. How to detect that ffmpeg has finished video processing? Thanks
DonManfred Expert Licensed User Longtime User Feb 15, 2021 #2 xavier66 said: sh.InitializeDoNotHandleQuotes("ffmpeg", File.Combine("c:\ffmpeg\bin","ffmpeg.exe"),params) Click to expand... You did set the event-prefix to ffmpeg but you are using sh???? B4X: Copy wait for ffmpeg_ProcessCompleted (Success As Boolean, ExitCode As Int, StdOut As String, StdErr As String) Upvote 0
xavier66 said: sh.InitializeDoNotHandleQuotes("ffmpeg", File.Combine("c:\ffmpeg\bin","ffmpeg.exe"),params) Click to expand... You did set the event-prefix to ffmpeg but you are using sh???? B4X: Copy wait for ffmpeg_ProcessCompleted (Success As Boolean, ExitCode As Int, StdOut As String, StdErr As String)