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);
 }
Ejemplo n.º 2
0
 public EncoderProgramForm(VideoEncoder encoder)
 {
     this.encoder = encoder;
     InitializeComponent();
     txtName.Text = encoder.Name ?? "";
     txtPath.Text = encoder.Path ?? "";
     txtArguments.Text = encoder.Args ?? "";
     txtExtension.Text = encoder.OutputExtension ?? "";
 }
Ejemplo n.º 3
0
 public void EncodeUsingCommandLine(VideoEncoder encoder, string sourceFilePath, string targetFilePath)
 {
     if (!string.IsNullOrEmpty(sourceFilePath) && File.Exists(sourceFilePath))
     {
         encoder.Encode(sourceFilePath, targetFilePath);
     }
 }