From efccdac254713a8eb5f9603a7df5cdbda371b2e8 Mon Sep 17 00:00:00 2001 From: Persivan Date: Tue, 30 Jul 2024 19:58:29 +0300 Subject: [PATCH] Update FfmpegHelper.cs --- USM_Builder/USM_builder/FfmpegHelper.cs | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/USM_Builder/USM_builder/FfmpegHelper.cs b/USM_Builder/USM_builder/FfmpegHelper.cs index 00023be..914cf30 100644 --- a/USM_Builder/USM_builder/FfmpegHelper.cs +++ b/USM_Builder/USM_builder/FfmpegHelper.cs @@ -110,7 +110,7 @@ public float GetVideoFrameRate(string videoFilePath) public void ConvertInFfmpeg(string videoFilePath, string audioFilePath, string outputVideoFilePath, string outputAudioFilePath, float framerate) { - string command = $"-i \"{videoFilePath}\" -i \"{audioFilePath}\" -c:v rawvideo -pix_fmt yuv420p -r {framerate} \"{outputVideoFilePath}\" \"{outputAudioFilePath}\" -y"; + string command = $"-i \"{videoFilePath}\" -i \"{audioFilePath}\" -c:v copy -pix_fmt yuv420p -r {framerate} \"{outputVideoFilePath}\" \"{outputAudioFilePath}\" -y"; RunFFmpegCommand(command); // @todo если output вернул ошибку, надо кидать исключение //string output = "pepega";