Skip to content

Commit

Permalink
Update FfmpegHelper.cs
Browse files Browse the repository at this point in the history
  • Loading branch information
Persivan committed Jul 30, 2024
1 parent da303d8 commit efccdac
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion USM_Builder/USM_builder/FfmpegHelper.cs
Original file line number Diff line number Diff line change
Expand Up @@ -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";
Expand Down

0 comments on commit efccdac

Please sign in to comment.