代码如下: string ffmpgefilePaht = AppDomain.CurrentDomain.BaseDirectory + "ffmpeg.exe"; ProcessStartInfo startInfo = new ProcessStartInfo { FileName = ffmpgefilePaht, Arguments = " -y -i " + filePath + ".wav " + filePath + ".mp3", WindowStyle = ProcessWindowStyle.Hidden, UseShellExecute = false, CreateNoWindow = true, RedirectStandardInput = true, RedirectStandardOutput = true, RedirectStandardError = true }; Process process = new Process { StartInfo = startInfo }; try { process.Start(); process.WaitForExit(); File.Delete(filePath + ".wav "); return true; } catch (Exception ex) { return false; } finally { process.Close(); }
- 粉丝: 0
- 资源: 3
- 我的内容管理 展开
- 我的资源 快来上传第一个资源
- 我的收益 登录查看自己的收益
- 我的积分 登录查看自己的积分
- 我的C币 登录后查看C币余额
- 我的收藏
- 我的下载
- 下载帮助