FFMPEG je prasácky napsané opensource, které nefunguje tak jak má. Pokud zkusím zachytávat výstup např. z ipconfig, funguje bez problémů:
Module Module1
Sub Main()
Dim newProcess As New Process
AddHandler newProcess.OutputDataReceived, AddressOf Process_OutputDataReceived
newProcess.StartInfo.RedirectStandardOutput = True
newProcess.StartInfo.UseShellExecute = False
newProcess.StartInfo.FileName = "C:\Windows\System32\ipconfig.exe"
newProcess.Start()
newProcess.BeginOutputReadLine()
Console.ReadLine()
End Sub
Private Sub Process_OutputDataReceived(sender As Object, e As DataReceivedEventArgs)
Console.WriteLine(e.Data)
End Sub
End Module
|