如何在我的Web主机服务器上运行FFMPEG

时间:2013-04-26 20:54:43

标签: ffmpeg sharpffmpeg

我想在我的网络主机服务器上执行一些视频处理。我不认为Web主机服务器会允许我出于安全原因执行exe文件。

我应该使用SharpFFMpeg吗?

我已经下载了SharpFFMpeg。但它缺乏适当的文档。

有人可举例说明如何执行从一种视频格式到另一种视频格式的转换吗?

我编写了我的执行程序,但编译器说它无法归档指定的文件。怎么了?

        string command = @"D:\Recorded TV\ffmpeg.exe -i ""Australia's Toughest Police_QUEST_2013_04_17_21_57_00.wtv"" -s 800x400 throughCS.mp4";
        try
        {
            ProcessStartInfo psi = new ProcessStartInfo("\"" + command + "\"");
            psi.RedirectStandardOutput = true;
            psi.UseShellExecute = false;
            psi.CreateNoWindow = true;
            Process proc = new Process();
            proc.StartInfo = psi;
            proc.Start();
            string result = proc.StandardOutput.ReadToEnd();
            tb1.Text = result;
            Debug.WriteLine(result);
        }

0 个答案:

没有答案