/// <summary> /// Cut video method for BackgroundWorker /// </summary> private void Worker_Cut_Video(object sender, DoWorkEventArgs e) { List <object> arguments = e.Argument as List <object>; string input = (string)arguments[0]; string output = (string)arguments[1]; string startTime = (string)arguments[2]; string endTime = (string)arguments[3]; FFMpegHelper.CutVideo(input, output, startTime, endTime); }
/// <summary> /// Shared code for updating the VideoCutter UI after a video is selected. /// Used by both Select_Video() and HandleDrop(). /// </summary> /// <param name="path"></param> private void UpdateUIAfterVideoSelected(string path) { Input_Video.Text = path; Autofill_Suggested_Name(Output_Video_Name, path); End_Time.Text = FFMpegHelper.GetVideoDuration(path); }
public Settings() { InitializeComponent(); FFMpeg_Location.Text = FFMpegHelper.GetFFMpegPath(); }