1 2 3 4 5 6 7 8 9 10 11 12 | Private proc As New Process Private Sub Button1_Click(ByVal sender As System.Object, ByVal e As System.EventArgs) Handles Button1.Click proc.StartInfo.FileName = Application.StartupPath & "\ffmpeg.exe" proc.StartInfo.Arguments = "ffmpeg -i video.mp4 -i logo.png -filter_complex \""[0:v][1:v]overlay=10:10:enable=between(t\,0\,30)"" -codec:a copy out.mp4" proc.StartInfo.UseShellExecute = False proc.StartInfo.WindowStyle = ProcessWindowStyle.Hidden proc.StartInfo.RedirectStandardInput = True proc.StartInfo.RedirectStandardOutput = True proc.StartInfo.CreateNoWindow = True proc.Start() End Sub |
2020年8月4日 星期二
vb.net 啟動新的程序(arg, Style 等等) [Active new process and put argument]
訂閱:
張貼留言 (Atom)
沒有留言:
張貼留言