private void AddVideoEncoder(VideoEncoder encoder) { ListViewItem lvi = new ListViewItem(encoder.Name ?? ""); lvi.Tag = encoder; lvi.SubItems.Add(encoder.Path ?? ""); lvi.SubItems.Add(encoder.Args ?? ""); lvi.SubItems.Add(encoder.OutputExtension ?? ""); lvEncoders.Items.Add(lvi); }
public EncoderProgramForm(VideoEncoder encoder) { this.encoder = encoder; InitializeComponent(); txtName.Text = encoder.Name ?? ""; txtPath.Text = encoder.Path ?? ""; txtArguments.Text = encoder.Args ?? ""; txtExtension.Text = encoder.OutputExtension ?? ""; }
public void EncodeUsingCommandLine(VideoEncoder encoder, string sourceFilePath, string targetFilePath) { if (!string.IsNullOrEmpty(sourceFilePath) && File.Exists(sourceFilePath)) { encoder.Encode(sourceFilePath, targetFilePath); } }