I am working with ffmpeg and I want to execute the commands from a form (vb.net) but I would like to know how I can know when that process has finished. I am currently using:
Dim Proc As New System.Diagnostics.Process
Proc.StartInfo = New ProcessStartInfo("C:\Windows\System32\cmd.exe")
Proc.StartInfo.Arguments = "ffmpeg -i video.mp4 -ss 00:00:14.435 -vframes 1 out.png"
Proc.StartInfo.RedirectStandardInput = True
Proc.StartInfo.RedirectStandardOutput = False
Proc.StartInfo.UseShellExecute = False
Proc.StartInfo.CreateNoWindow = True
Proc.Start()
How do I know when the process is over?