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";