Skip to content
This repository has been archived by the owner on Jan 21, 2024. It is now read-only.

Commit

Permalink
v4.3.1
Browse files Browse the repository at this point in the history
  • Loading branch information
januwA committed Oct 27, 2020
1 parent 473efe4 commit a0cc79e
Showing 1 changed file with 4 additions and 4 deletions.
8 changes: 4 additions & 4 deletions MainWindow.xaml.cs
Original file line number Diff line number Diff line change
Expand Up @@ -282,8 +282,8 @@ private void Button_Click_9(object sender, RoutedEventArgs e)
if (checkNotInputFile()) return;
string output = getOutputFilepath();

// ffmpeg -i input.mp4 -ss 00:00:00 -t 10 1.mp3
string command = "-i \"" + input + "\" -ss " + c_1_0.Text + " -t " + c_1_1.Text + " \"" + output + "\"";
// ffmpeg -i input.mp4 -ss 00:00:00 -t 10 -c copy 1.mp4
string command = $"-i \"{input}\" -ss {c_1_0.Text} -t {c_1_1.Text} -c copy \"{output}\"";
execute(command);
}

Expand All @@ -306,8 +306,8 @@ private void Button_Click_10(object sender, RoutedEventArgs e)
MessageBox.Show("切割时间不能为负!!!");
return;
}
// ffmpeg -i input.mp4 -ss 00:00:00 -t 10 1.mp3
string command = "-i \"" + input + "\" -ss " + c_2_0.Text + " -t " + t.ToString() + " \"" + output + "\"";
// ffmpeg -i input.mp4 -ss 00:00:00 -t 10 -c copy 1.mp3
string command = $"-i \"{input}\" -ss {c_2_0.Text} -t {t} -c copy \"{output}\"";
execute(command);
}

Expand Down

0 comments on commit a0cc79e

Please sign in to comment.