Exemple #1
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 ?? "";
 }
 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);
 }
Exemple #3
0
 public void EncodeUsingCommandLine(VideoEncoder encoder, string targetFilePath)
 {
     if (!string.IsNullOrEmpty(CachePath) && File.Exists(CachePath))
     {
         OnEncodingProgressChanged(-1);
         encoder.Encode(CachePath, targetFilePath);
         OnEncodingProgressChanged(100);
     }
 }