开发者

Start process on Mac

I want to write command in Mac equivalent to "ffmpeg -i input.avi output.avi" in Windows. My code is:

Process proc = new Process
        {
            StartInfo = new ProcessStartIn开发者_运维知识库fo
            {
                FileName = "ffmpeg.exe",
                Arguments = "-i /Users/John/Desktop/input.avi     /Users/John/Desktop/hhh.avi",
                UseShellExecute = false,
                RedirectStandardOutput = true,
                CreateNoWindow = true
            }
        };
        proc.Start();

After I write "mono previousCode.exe" in the terminal in Mac, I get "filename unknown" error. Where is my mistake?


Executables in MacOS generally don't end with a .exe suffix, so just leave off the ".exe" and see if that works. If not, you'll need to provide the full path to ffmpeg

0

上一篇:

下一篇:

精彩评论

暂无评论...
验证码 换一张
取 消

最新问答

问答排行榜